refactor(server): unify the two metadata override mechanisms into one (#22417)
## Unify the two metadata override mechanisms into one Twenty had **two** override mechanisms: - **`standardOverrides`** — a bespoke JSONB column on `objectMetadata`/`fieldMetadata` with typed DTOs and a per-locale `translations` map, resolved by two i18n-aware resolvers. - **`OverridableEntity.overrides`** — a flat, registry-driven JSONB blob on view / view-field / view-field-group / command-menu-item / page-layout-tab / page-layout-widget, resolved by a plain spread. This PR collapses them into **one** concept: a single `overrides` blob, one registry-driven overridable set, one i18n-aware read path, and one write path (`computeMetadataOverridesBlob`, extracted in #22404). Object/field **stay on `SyncableEntity`** (not reparented to `OverridableEntity`) so their `isActive` default stays **FALSE** — this sidesteps the `isActive` default conflict entirely. ### GraphQL breaking change (accepted) The `standardOverrides` field is **removed** with no deprecation alias — `overrides` (a `JSON` scalar) is exposed instead on `Object` and `Field`. Product confirmed negligible external usage; the front-end has no hand-written consumer (only generated types), which are regenerated here. ### Commit structure (reviewable commit-by-commit) 1. **Unified resolver + parity harness** — `resolveEffectiveEntityProperty` is a strict superset of the three legacy resolvers; a corpus parity spec compares it against a *frozen reference* of the old logic across every locale, `isStandardApp` branch and override shape. 2. **Registry-driven** — object/field presentation props tagged `isOverridable` + `translatable`; the overridable/translatable sets are derived from the registry (a test asserts they equal the legacy hardcoded lists). 3. **Rename + swap + delete** — `standardOverrides` → `overrides` across entities, DTOs, flat/universal types, producers, the ~12 resolve/write/create/sync call sites, mocks and specs; the reconciler's two compare entries collapse to one; the three legacy resolvers, both DTOs and the hardcoded constants/types are deleted. 4. **Migration (zero-downtime, two-phase)** — split across two releases so a rolling deploy never drops a column a previous-release pod still `SELECT`s: - **2.19 fast** — add the `overrides` column (schema only). - **2.19 slow** — backfill `overrides` from `standardOverrides` in `runDataMigration` (kept out of the schema transaction so the bulk write doesn't hold the ACCESS EXCLUSIVE lock; skipped on fresh installs, which have no data to copy). - **2.20 fast** — drop the legacy `standardOverrides` column (gated by `TWENTY_NEXT_VERSIONS`, so it stays dormant until the instance reaches 2.20). 5. **Front/client-SDK regen** — regenerated metadata GraphQL types. 6. **Integration specs + i18n** — updated the standard object/field update integration specs + snapshots, and the reworded validator message catalog entry. ### Rolling-deploy safety `standardOverrides` is retained through 2.19 and only dropped in 2.20, mirroring the codebase's deferred-drop convention (`isUIReadOnly`/`isCustom`). During the 2.19 rollout both columns exist, so old and new pods coexist without "column does not exist" errors. The backfill lives in a slow `runDataMigration` (per the `no-data-mutation-in-fast-instance-command` rule) so it doesn't stall reads. ### `isActive` guard The migration never reads or writes `isActive`; the backfill asserts the active-row count is unchanged and aborts otherwise. Verified on a real DB: apply + revert preserves the blob **and** the nested `translations` map, with `isActive` counts identical before/after. ### Verification (local) - `nx typecheck twenty-server` + `nx typecheck twenty-front` — green - `nx lint:diff-with-main twenty-server` (oxlint `--type-aware` + oxfmt) — green - `nx test twenty-server` — green (unit + parity + registry + migration tests) - `nx run twenty-server:test:integration:with-db-reset` — green - `database:reset` applies the 2.19 phases and leaves **both** columns present (2.20 drop stays dormant); backfill + revert round-trip verified on a real DB - Metadata integration suites (standard object/field update, application sync) pass end-to-end against the two-column schema - Metadata GraphQL types regenerated against a booted server; zero `standardOverrides` references remain in application code (only the migration commands + the legacy schema baseline) --------- Co-authored-by: prastoin <paul@twenty.com>
This commit is contained in:
+16
-16
@@ -19,7 +19,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: 'Attachment name',
|
||||
icon: 'IconFileUpload',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -41,7 +41,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: 'Attachment full path',
|
||||
icon: 'IconLink',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -63,7 +63,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: 'Attachment type',
|
||||
icon: 'IconList',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -85,7 +85,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'uuid',
|
||||
description: 'Id',
|
||||
icon: 'Icon123',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -107,7 +107,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -129,7 +129,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Last time the record was changed',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -151,7 +151,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Date when the record was deleted',
|
||||
icon: 'IconCalendarMinus',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -173,7 +173,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachment author',
|
||||
icon: 'IconCircleUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -199,7 +199,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachment task',
|
||||
icon: 'IconNotes',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -225,7 +225,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachment note',
|
||||
icon: 'IconNotes',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -251,7 +251,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachment person',
|
||||
icon: 'IconUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -277,7 +277,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachment company',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -303,7 +303,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachment opportunity',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -329,7 +329,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachments Rocket',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -355,7 +355,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachments Pet',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -381,7 +381,7 @@ export const ATTACHMENT_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachments Survey result',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
|
||||
+23
-23
@@ -19,7 +19,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: 'The company name',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -46,7 +46,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
description:
|
||||
'The company website URL. We use this url to fetch the company icon',
|
||||
icon: 'IconLink',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -72,7 +72,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: 'The company Linkedin account',
|
||||
icon: 'IconBrandLinkedin',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -94,7 +94,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: { amountMicros: null, currencyCode: "''" },
|
||||
description: "The company's total annual revenue",
|
||||
icon: 'IconMoneybag',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -125,7 +125,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: 'Address of the company',
|
||||
icon: 'IconMap',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -147,7 +147,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 0,
|
||||
description: 'Company record position',
|
||||
icon: 'IconHierarchy2',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -173,7 +173,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: 'The creator of the record',
|
||||
icon: 'IconCreativeCommonsSa',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -195,7 +195,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Field used for full-text search',
|
||||
icon: 'IconUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -217,7 +217,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'uuid',
|
||||
description: 'Id',
|
||||
icon: 'Icon123',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -239,7 +239,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -261,7 +261,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Last time the record was changed',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -283,7 +283,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Date when the record was deleted',
|
||||
icon: 'IconCalendarMinus',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -305,7 +305,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'People linked to the company.',
|
||||
icon: 'IconUsers',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -328,7 +328,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
description:
|
||||
'Your team member responsible for managing the company account',
|
||||
icon: 'IconUserCircle',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -354,7 +354,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Tasks tied to the company',
|
||||
icon: 'IconCheckbox',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -376,7 +376,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Notes tied to the company',
|
||||
icon: 'IconNotes',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -398,7 +398,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Opportunities linked to the company.',
|
||||
icon: 'IconTargetArrow',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -420,7 +420,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachments linked to the company',
|
||||
icon: 'IconFileImport',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -442,7 +442,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Timeline Activities linked to the company',
|
||||
icon: 'IconTimelineEvent',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -464,7 +464,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: null,
|
||||
icon: 'IconAdCircle',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -490,7 +490,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: null,
|
||||
icon: 'IconVideo',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -512,7 +512,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: null,
|
||||
icon: 'IconHome',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: [
|
||||
{
|
||||
id: '325240d6-8c67-4fb2-bb02-51e9de4cd6be',
|
||||
@@ -556,7 +556,7 @@ export const COMPANY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: false,
|
||||
description: null,
|
||||
icon: 'IconBrandVisa',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
|
||||
+2
-2
@@ -40,7 +40,7 @@ export const getFlatFieldMetadataMock = <T extends FieldMetadataType>(
|
||||
isUIEditable: true,
|
||||
isLabelSyncedWithName: false,
|
||||
isSystem: false,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
workspaceId: faker.string.uuid(),
|
||||
applicationId: faker.string.uuid(),
|
||||
relationTargetFieldMetadataId: null,
|
||||
@@ -68,7 +68,7 @@ export const getStandardFlatFieldMetadataMock = (
|
||||
overrides: Omit<FlatFieldMetadataOverrides, 'isCustom' | 'isSystem'>,
|
||||
) => {
|
||||
return getFlatFieldMetadataMock({
|
||||
standardOverrides: {},
|
||||
overrides: {},
|
||||
isSystem: true,
|
||||
...overrides,
|
||||
});
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ export const getRelationTargetFlatFieldMetadataMock = ({
|
||||
isUIEditable: true,
|
||||
isLabelSyncedWithName: false,
|
||||
isSystem: false,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
workspaceId: faker.string.uuid(),
|
||||
objectMetadataId,
|
||||
type,
|
||||
|
||||
+12
-12
@@ -15,7 +15,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 0,
|
||||
description: 'Note record position',
|
||||
icon: 'IconHierarchy2',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -37,7 +37,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: 'Note title',
|
||||
icon: 'IconNotes',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -59,7 +59,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Note body',
|
||||
icon: 'IconFilePencil',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -85,7 +85,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: 'The creator of the record',
|
||||
icon: 'IconCreativeCommonsSa',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -107,7 +107,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Field used for full-text search',
|
||||
icon: 'IconUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -129,7 +129,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'uuid',
|
||||
description: 'Id',
|
||||
icon: 'Icon123',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -151,7 +151,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -173,7 +173,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Last time the record was changed',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -195,7 +195,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Date when the record was deleted',
|
||||
icon: 'IconCalendarMinus',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -217,7 +217,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Note targets',
|
||||
icon: 'IconArrowUpRight',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -239,7 +239,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Note attachments',
|
||||
icon: 'IconFileImport',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -261,7 +261,7 @@ export const NOTE_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Timeline Activities linked to the note.',
|
||||
icon: 'IconTimelineEvent',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
|
||||
+11
-11
@@ -19,7 +19,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'uuid',
|
||||
description: 'Id',
|
||||
icon: 'Icon123',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -41,7 +41,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -63,7 +63,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Last time the record was changed',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -85,7 +85,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Date when the record was deleted',
|
||||
icon: 'IconCalendarMinus',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -107,7 +107,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'NoteTarget note',
|
||||
icon: 'IconNotes',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -133,7 +133,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'NoteTarget person',
|
||||
icon: 'IconUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -159,7 +159,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'NoteTarget company',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -185,7 +185,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'NoteTarget opportunity',
|
||||
icon: 'IconTargetArrow',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -211,7 +211,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'NoteTargets Rocket',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -237,7 +237,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'NoteTargets Pet',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -263,7 +263,7 @@ export const NOTETARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'NoteTargets Survey result',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
|
||||
+17
-17
@@ -19,7 +19,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: 'The opportunity name',
|
||||
icon: 'IconTargetArrow',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -41,7 +41,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: { amountMicros: null, currencyCode: "''" },
|
||||
description: 'Opportunity amount',
|
||||
icon: 'IconCurrencyDollar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -63,7 +63,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Opportunity close date',
|
||||
icon: 'IconCalendarEvent',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -85,7 +85,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "'NEW'",
|
||||
description: 'Opportunity stage',
|
||||
icon: 'IconProgressCheck',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: [
|
||||
{
|
||||
id: 'fdf5cede-2b0e-44d0-adbe-3bc7e613efc9',
|
||||
@@ -143,7 +143,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 0,
|
||||
description: 'Opportunity record position',
|
||||
icon: 'IconHierarchy2',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -169,7 +169,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: 'The creator of the record',
|
||||
icon: 'IconCreativeCommonsSa',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -191,7 +191,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Field used for full-text search',
|
||||
icon: 'IconUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -213,7 +213,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'uuid',
|
||||
description: 'Id',
|
||||
icon: 'Icon123',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -235,7 +235,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -257,7 +257,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Last time the record was changed',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -279,7 +279,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Date when the record was deleted',
|
||||
icon: 'IconCalendarMinus',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -301,7 +301,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Opportunity point of contact',
|
||||
icon: 'IconUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -327,7 +327,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Opportunity company',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -353,7 +353,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Tasks tied to the opportunity',
|
||||
icon: 'IconCheckbox',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -375,7 +375,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Notes tied to the opportunity',
|
||||
icon: 'IconNotes',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -397,7 +397,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachments linked to the opportunity',
|
||||
icon: 'IconFileImport',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -419,7 +419,7 @@ export const OPPORTUNITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Timeline Activities linked to the opportunity.',
|
||||
icon: 'IconTimelineEvent',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
|
||||
+25
-25
@@ -19,7 +19,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: { lastName: "''", firstName: "''" },
|
||||
description: 'Contact’s name',
|
||||
icon: 'IconUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -41,7 +41,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: { primaryEmail: "''", additionalEmails: null },
|
||||
description: 'Contact’s Emails',
|
||||
icon: 'IconMail',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -67,7 +67,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: 'Contact’s Linkedin account',
|
||||
icon: 'IconBrandLinkedin',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -89,7 +89,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: 'Contact’s job title',
|
||||
icon: 'IconBriefcase',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -116,7 +116,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: 'Contact’s phone numbers',
|
||||
icon: 'IconPhone',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -138,7 +138,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: 'Contact’s avatar',
|
||||
icon: 'IconFileUpload',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -160,7 +160,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 0,
|
||||
description: 'Person record Position',
|
||||
icon: 'IconHierarchy2',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -186,7 +186,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: 'The creator of the record',
|
||||
icon: 'IconCreativeCommonsSa',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -208,7 +208,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Field used for full-text search',
|
||||
icon: 'IconUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -230,7 +230,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'uuid',
|
||||
description: 'Id',
|
||||
icon: 'Icon123',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -252,7 +252,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -274,7 +274,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Last time the record was changed',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -296,7 +296,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Date when the record was deleted',
|
||||
icon: 'IconCalendarMinus',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -318,7 +318,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Contact’s company',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -345,7 +345,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
description:
|
||||
'List of opportunities for which that person is the point of contact',
|
||||
icon: 'IconTargetArrow',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -367,7 +367,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Tasks tied to the contact',
|
||||
icon: 'IconCheckbox',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -389,7 +389,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Notes tied to the contact',
|
||||
icon: 'IconNotes',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -411,7 +411,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachments linked to the contact.',
|
||||
icon: 'IconFileImport',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -433,7 +433,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Message Participants',
|
||||
icon: 'IconUserCircle',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -455,7 +455,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Calendar Event Participants',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -477,7 +477,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Events linked to the person',
|
||||
icon: 'IconTimelineEvent',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -499,7 +499,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: null,
|
||||
icon: 'IconNote',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -526,7 +526,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: null,
|
||||
icon: 'IconBrandWhatsapp',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -548,7 +548,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: null,
|
||||
icon: 'IconHome',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: [
|
||||
{
|
||||
id: 'c33d02fd-0bd9-4769-bd32-036d9ff645a5',
|
||||
@@ -592,7 +592,7 @@ export const PERSON_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: null,
|
||||
icon: 'IconStars',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: [
|
||||
{
|
||||
id: 'e6b4b1bb-c707-41cb-8f30-418a81ae3299',
|
||||
|
||||
+28
-28
@@ -15,7 +15,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'NoteTargets tied to the Pet',
|
||||
icon: 'IconCheckbox',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -37,7 +37,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'uuid',
|
||||
description: 'Id',
|
||||
icon: 'Icon123',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -59,7 +59,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "'Untitled'",
|
||||
description: 'Name',
|
||||
icon: 'IconAbc',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -81,7 +81,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -103,7 +103,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Last time the record was changed',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -125,7 +125,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Deletion date',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -147,7 +147,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: { name: "''", source: "'MANUAL'" },
|
||||
description: 'The creator of the record',
|
||||
icon: 'IconCreativeCommonsSa',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -169,7 +169,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 0,
|
||||
description: 'Position',
|
||||
icon: 'IconHierarchy2',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -191,7 +191,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TimelineActivities tied to the Pet',
|
||||
icon: 'IconTimelineEvent',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -213,7 +213,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachments tied to the Pet',
|
||||
icon: 'IconFileImport',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -235,7 +235,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TaskTargets tied to the Pet',
|
||||
icon: 'IconCheckbox',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -257,7 +257,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Field used for full-text search',
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: false,
|
||||
@@ -279,7 +279,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: [
|
||||
{
|
||||
id: '23a75463-ca50-4b33-bfd8-701e2944c76c',
|
||||
@@ -344,7 +344,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: [
|
||||
{
|
||||
id: '5bb37088-b364-44c5-a984-54b01aa241ce',
|
||||
@@ -409,7 +409,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -431,7 +431,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -462,7 +462,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -489,7 +489,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -511,7 +511,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: { primaryEmail: "''", additionalEmails: null },
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -533,7 +533,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -555,7 +555,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -581,7 +581,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -603,7 +603,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: { amountMicros: null, currencyCode: "''" },
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -625,7 +625,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: { lastName: "''", firstName: "''" },
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -647,7 +647,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: [
|
||||
{
|
||||
id: '4a3ed94d-30db-4231-8c2e-5893d55df860',
|
||||
@@ -700,7 +700,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -722,7 +722,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -744,7 +744,7 @@ export const PET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: null,
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
|
||||
+12
-12
@@ -15,7 +15,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'uuid',
|
||||
description: 'Id',
|
||||
icon: 'Icon123',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -37,7 +37,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "'Untitled'",
|
||||
description: 'Name',
|
||||
icon: 'IconAbc',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -59,7 +59,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -81,7 +81,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Last time the record was changed',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -103,7 +103,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Deletion date',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -125,7 +125,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: { name: "''", source: "'MANUAL'" },
|
||||
description: 'The creator of the record',
|
||||
icon: 'IconCreativeCommonsSa',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -147,7 +147,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 0,
|
||||
description: 'Position',
|
||||
icon: 'IconHierarchy2',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -169,7 +169,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TimelineActivities tied to the Rocket',
|
||||
icon: 'IconTimelineEvent',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -191,7 +191,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Attachments tied to the Rocket',
|
||||
icon: 'IconFileImport',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -213,7 +213,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'NoteTargets tied to the Rocket',
|
||||
icon: 'IconCheckbox',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -235,7 +235,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TaskTargets tied to the Rocket',
|
||||
icon: 'IconCheckbox',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -257,7 +257,7 @@ export const ROCKET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Field used for full-text search',
|
||||
icon: null,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: false,
|
||||
|
||||
+15
-15
@@ -19,7 +19,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 0,
|
||||
description: 'Task record position',
|
||||
icon: 'IconHierarchy2',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -41,7 +41,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: 'Task title',
|
||||
icon: 'IconNotes',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -63,7 +63,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Task body',
|
||||
icon: 'IconFilePencil',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -85,7 +85,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Task due date',
|
||||
icon: 'IconCalendarEvent',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -107,7 +107,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "'TODO'",
|
||||
description: 'Task status',
|
||||
icon: 'IconCheck',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: [
|
||||
{
|
||||
id: '178a8a6f-6411-4731-a417-36e85e5526a3',
|
||||
@@ -155,7 +155,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
},
|
||||
description: 'The creator of the record',
|
||||
icon: 'IconCreativeCommonsSa',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -177,7 +177,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Field used for full-text search',
|
||||
icon: 'IconUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -199,7 +199,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'uuid',
|
||||
description: 'Id',
|
||||
icon: 'Icon123',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -221,7 +221,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -243,7 +243,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Last time the record was changed',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -265,7 +265,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Date when the record was deleted',
|
||||
icon: 'IconCalendarMinus',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -287,7 +287,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Task targets',
|
||||
icon: 'IconArrowUpRight',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -309,7 +309,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Task attachments',
|
||||
icon: 'IconFileImport',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
@@ -331,7 +331,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Task assignee',
|
||||
icon: 'IconUserCircle',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -357,7 +357,7 @@ export const TASK_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Timeline Activities linked to the task.',
|
||||
icon: 'IconTimelineEvent',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { relationType: RelationType.ONE_TO_MANY },
|
||||
isActive: true,
|
||||
|
||||
+11
-11
@@ -19,7 +19,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'uuid',
|
||||
description: 'Id',
|
||||
icon: 'Icon123',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -41,7 +41,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -63,7 +63,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Last time the record was changed',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -85,7 +85,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Date when the record was deleted',
|
||||
icon: 'IconCalendarMinus',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -107,7 +107,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TaskTarget task',
|
||||
icon: 'IconCheckbox',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -133,7 +133,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TaskTarget person',
|
||||
icon: 'IconUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -159,7 +159,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TaskTarget company',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -185,7 +185,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TaskTarget opportunity',
|
||||
icon: 'IconTargetArrow',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -211,7 +211,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TaskTargets Rocket',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -237,7 +237,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TaskTargets Pet',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -263,7 +263,7 @@ export const TASKTARGET_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TaskTargets Survey result',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
|
||||
+22
-22
@@ -19,7 +19,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -41,7 +41,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: 'Event name',
|
||||
icon: 'IconAbc',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -63,7 +63,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Json value for event details',
|
||||
icon: 'IconListDetails',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -85,7 +85,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: "''",
|
||||
description: 'Cached record name',
|
||||
icon: 'IconAbc',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -107,7 +107,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Linked Record id',
|
||||
icon: 'IconAbc',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -129,7 +129,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Linked Object Metadata Id',
|
||||
icon: 'IconAbc',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -151,7 +151,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'uuid',
|
||||
description: 'Id',
|
||||
icon: 'Icon123',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: null,
|
||||
isActive: true,
|
||||
@@ -173,7 +173,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -195,7 +195,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: 'now',
|
||||
description: 'Last time the record was changed',
|
||||
icon: 'IconCalendarClock',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -217,7 +217,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Date when the record was deleted',
|
||||
icon: 'IconCalendarMinus',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: { displayFormat: DateDisplayFormat.RELATIVE },
|
||||
isActive: true,
|
||||
@@ -239,7 +239,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Event workspace member',
|
||||
icon: 'IconCircleUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -265,7 +265,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Event person',
|
||||
icon: 'IconUser',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -291,7 +291,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Event company',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -317,7 +317,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Event opportunity',
|
||||
icon: 'IconTargetArrow',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -343,7 +343,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Event note',
|
||||
icon: 'IconTargetArrow',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -369,7 +369,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Event task',
|
||||
icon: 'IconTargetArrow',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.SET_NULL,
|
||||
@@ -395,7 +395,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Event workflow',
|
||||
icon: 'IconTargetArrow',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -421,7 +421,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Event workflow version',
|
||||
icon: 'IconTargetArrow',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -447,7 +447,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'Event workflow run',
|
||||
icon: 'IconTargetArrow',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -473,7 +473,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TimelineActivities Rocket',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -499,7 +499,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TimelineActivities Pet',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
@@ -525,7 +525,7 @@ export const TIMELINEACTIVITY_FLAT_FIELDS_MOCK = {
|
||||
defaultValue: null,
|
||||
description: 'TimelineActivities Survey result',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
options: null,
|
||||
settings: {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
|
||||
+4
-4
@@ -137,10 +137,10 @@ exports[`fromCreateFieldInputToFlatFieldMetadatasToCreate MORPH_RELATION test su
|
||||
"name": "newFieldPets",
|
||||
"objectMetadataUniversalIdentifier": Any<String>,
|
||||
"options": null,
|
||||
"overrides": null,
|
||||
"relationTargetFieldMetadataUniversalIdentifier": Any<String>,
|
||||
"relationTargetObjectMetadataUniversalIdentifier": Any<String>,
|
||||
"searchFieldMetadataUniversalIdentifiers": [],
|
||||
"standardOverrides": null,
|
||||
"type": "MORPH_RELATION",
|
||||
"universalIdentifier": Any<String>,
|
||||
"universalSettings": {
|
||||
@@ -173,10 +173,10 @@ exports[`fromCreateFieldInputToFlatFieldMetadatasToCreate MORPH_RELATION test su
|
||||
"name": "pet",
|
||||
"objectMetadataUniversalIdentifier": Any<String>,
|
||||
"options": null,
|
||||
"overrides": null,
|
||||
"relationTargetFieldMetadataUniversalIdentifier": Any<String>,
|
||||
"relationTargetObjectMetadataUniversalIdentifier": Any<String>,
|
||||
"searchFieldMetadataUniversalIdentifiers": [],
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"universalIdentifier": Any<String>,
|
||||
"universalSettings": {
|
||||
@@ -211,10 +211,10 @@ exports[`fromCreateFieldInputToFlatFieldMetadatasToCreate MORPH_RELATION test su
|
||||
"name": "newFieldCompanies",
|
||||
"objectMetadataUniversalIdentifier": Any<String>,
|
||||
"options": null,
|
||||
"overrides": null,
|
||||
"relationTargetFieldMetadataUniversalIdentifier": Any<String>,
|
||||
"relationTargetObjectMetadataUniversalIdentifier": Any<String>,
|
||||
"searchFieldMetadataUniversalIdentifiers": [],
|
||||
"standardOverrides": null,
|
||||
"type": "MORPH_RELATION",
|
||||
"universalIdentifier": Any<String>,
|
||||
"universalSettings": {
|
||||
@@ -247,10 +247,10 @@ exports[`fromCreateFieldInputToFlatFieldMetadatasToCreate MORPH_RELATION test su
|
||||
"name": "company",
|
||||
"objectMetadataUniversalIdentifier": Any<String>,
|
||||
"options": null,
|
||||
"overrides": null,
|
||||
"relationTargetFieldMetadataUniversalIdentifier": Any<String>,
|
||||
"relationTargetObjectMetadataUniversalIdentifier": Any<String>,
|
||||
"searchFieldMetadataUniversalIdentifiers": [],
|
||||
"standardOverrides": null,
|
||||
"type": "RELATION",
|
||||
"universalIdentifier": Any<String>,
|
||||
"universalSettings": {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ export const FLAT_FIELD_METADATA_RELATION_PROPERTIES_TO_COMPARE = [
|
||||
'label',
|
||||
'description',
|
||||
'isActive',
|
||||
'standardOverrides',
|
||||
'overrides',
|
||||
'icon',
|
||||
'name',
|
||||
'universalSettings',
|
||||
|
||||
+3
-3
@@ -44,7 +44,7 @@ export const computeFlatFieldToUpdateAndRelatedFlatFieldToUpdate = ({
|
||||
flatObjectMetadata,
|
||||
isSystemBuild,
|
||||
}: ComputeFlatFieldToUpdateAndRelatedFlatFieldToUpdateArgs): ComputeFlatFieldToUpdateAndRelatedFlatFieldToUpdateReturnType => {
|
||||
const { standardOverrides, updatedEditableFieldProperties } =
|
||||
const { overrides, updatedEditableFieldProperties } =
|
||||
sanitizeRawUpdateFieldInput({
|
||||
existingFlatFieldMetadata: fromFlatFieldMetadata,
|
||||
rawUpdateFieldInput,
|
||||
@@ -62,7 +62,7 @@ export const computeFlatFieldToUpdateAndRelatedFlatFieldToUpdate = ({
|
||||
],
|
||||
update: updatedEditableFieldProperties,
|
||||
}),
|
||||
standardOverrides,
|
||||
overrides,
|
||||
};
|
||||
|
||||
if (updatedEditableFieldProperties.settings !== undefined) {
|
||||
@@ -161,7 +161,7 @@ export const computeFlatFieldToUpdateAndRelatedFlatFieldToUpdate = ({
|
||||
properties: relatedMorphPropertiesToUpdateTo,
|
||||
update: updatedEditableFieldProperties,
|
||||
}),
|
||||
standardOverrides,
|
||||
overrides,
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@ export const fromFlatFieldMetadataToFieldMetadataDto = (
|
||||
updatedAt,
|
||||
description,
|
||||
icon,
|
||||
standardOverrides,
|
||||
overrides,
|
||||
isNullable,
|
||||
isUnique,
|
||||
settings,
|
||||
@@ -49,7 +49,7 @@ export const fromFlatFieldMetadataToFieldMetadataDto = (
|
||||
updatedAt: new Date(updatedAt),
|
||||
description: description ?? undefined,
|
||||
icon: icon ?? undefined,
|
||||
standardOverrides: standardOverrides ?? undefined,
|
||||
overrides: overrides ?? undefined,
|
||||
isNullable: isNullable ?? false,
|
||||
isUnique: isUnique ?? false,
|
||||
settings: settings ?? undefined,
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ export const getDefaultFlatFieldMetadata = ({
|
||||
isUnique: createFieldInput.isUnique ?? false,
|
||||
label: createFieldInput.label,
|
||||
name: createFieldInput.name,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
type: createFieldInput.type,
|
||||
universalIdentifier: createFieldInput.universalIdentifier ?? v4(),
|
||||
options: createFieldInput.options ?? null,
|
||||
|
||||
+10
-10
@@ -4,12 +4,12 @@ import {
|
||||
} from 'twenty-shared/utils';
|
||||
import { v4 } from 'uuid';
|
||||
|
||||
import { FIELD_METADATA_STANDARD_OVERRIDES_PROPERTIES } from 'src/engine/metadata-modules/field-metadata/constants/field-metadata-standard-overrides-properties.constant';
|
||||
import { type UpdateFieldInput } from 'src/engine/metadata-modules/field-metadata/dtos/update-field.input';
|
||||
import {
|
||||
FieldMetadataException,
|
||||
FieldMetadataExceptionCode,
|
||||
} from 'src/engine/metadata-modules/field-metadata/field-metadata.exception';
|
||||
import { ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME } from 'src/engine/metadata-modules/flat-entity/constant/all-overridable-properties-by-metadata-name.constant';
|
||||
import { FLAT_FIELD_METADATA_EDITABLE_PROPERTIES } from 'src/engine/metadata-modules/flat-field-metadata/constants/flat-field-metadata-editable-properties.constant';
|
||||
import { type FlatFieldMetadataEditableProperties } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata-editable-properties.constant';
|
||||
import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';
|
||||
@@ -62,7 +62,7 @@ export const sanitizeRawUpdateFieldInput = ({
|
||||
if (!isStandardField || isSystemBuild) {
|
||||
return {
|
||||
updatedEditableFieldProperties,
|
||||
standardOverrides: null,
|
||||
overrides: null,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -82,16 +82,16 @@ export const sanitizeRawUpdateFieldInput = ({
|
||||
);
|
||||
}
|
||||
|
||||
const { overrides: standardOverrides, remainingProperties } =
|
||||
computeMetadataOverridesBlob({
|
||||
overridableProperties: FIELD_METADATA_STANDARD_OVERRIDES_PROPERTIES,
|
||||
updatedProperties: updatedEditableFieldProperties,
|
||||
existingEntity: existingFlatFieldMetadata,
|
||||
existingOverrides: existingFlatFieldMetadata.standardOverrides,
|
||||
});
|
||||
const { overrides, remainingProperties } = computeMetadataOverridesBlob({
|
||||
overridableProperties:
|
||||
ALL_OVERRIDABLE_PROPERTIES_BY_METADATA_NAME.fieldMetadata,
|
||||
updatedProperties: updatedEditableFieldProperties,
|
||||
existingEntity: existingFlatFieldMetadata,
|
||||
existingOverrides: existingFlatFieldMetadata.overrides,
|
||||
});
|
||||
|
||||
return {
|
||||
standardOverrides,
|
||||
overrides,
|
||||
updatedEditableFieldProperties: remainingProperties,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user