Translate label and descriptions for objects (#9876)

Begin server-side translations
This commit is contained in:
Félix Malfait
2025-01-28 09:54:59 +01:00
committed by GitHub
parent 4542199e5c
commit 08a0e67477
44 changed files with 1015 additions and 132 deletions

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
@ -13,9 +14,9 @@ import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.apiKey,
namePlural: 'apiKeys',
labelSingular: 'API Key',
labelPlural: 'API Keys',
description: 'An API key',
labelSingular: msg`API Key`,
labelPlural: msg`API Keys`,
description: msg`An API key`,
icon: STANDARD_OBJECT_ICONS.apiKey,
labelIdentifierStandardId: API_KEY_STANDARD_FIELD_IDS.name,
})

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -26,9 +27,9 @@ import { WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/sta
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.attachment,
namePlural: 'attachments',
labelSingular: 'Attachment',
labelPlural: 'Attachments',
description: 'An attachment',
labelSingular: msg`Attachment`,
labelPlural: msg`Attachments`,
description: msg`An attachment`,
icon: STANDARD_OBJECT_ICONS.attachment,
labelIdentifierStandardId: ATTACHMENT_STANDARD_FIELD_IDS.name,
})

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -18,9 +19,9 @@ import { WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/sta
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.blocklist,
namePlural: 'blocklists',
labelSingular: 'Blocklist',
labelPlural: 'Blocklists',
description: 'Blocklist',
labelSingular: msg`Blocklist`,
labelPlural: msg`Blocklists`,
description: msg`Blocklist`,
icon: STANDARD_OBJECT_ICONS.blocklist,
labelIdentifierStandardId: BLOCKLIST_STANDARD_FIELD_IDS.handle,
})

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -19,9 +20,9 @@ import { CalendarEventWorkspaceEntity } from 'src/modules/calendar/common/standa
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.calendarChannelEventAssociation,
namePlural: 'calendarChannelEventAssociations',
labelSingular: 'Calendar Channel Event Association',
labelPlural: 'Calendar Channel Event Associations',
description: 'Calendar Channel Event Associations',
labelSingular: msg`Calendar Channel Event Association`,
labelPlural: msg`Calendar Channel Event Associations`,
description: msg`Calendar Channel Event Associations`,
icon: STANDARD_OBJECT_ICONS.calendarChannelEventAssociation,
})
@WorkspaceIsSystem()

View File

@ -1,5 +1,6 @@
import { registerEnumType } from '@nestjs/graphql';
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -70,9 +71,9 @@ registerEnumType(CalendarChannelContactAutoCreationPolicy, {
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.calendarChannel,
namePlural: 'calendarChannels',
labelSingular: 'Calendar Channel',
labelPlural: 'Calendar Channels',
description: 'Calendar Channels',
labelSingular: msg`Calendar Channel`,
labelPlural: msg`Calendar Channels`,
description: msg`Calendar Channels`,
icon: STANDARD_OBJECT_ICONS.calendarChannel,
labelIdentifierStandardId: CALENDAR_CHANNEL_STANDARD_FIELD_IDS.handle,
})

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -28,9 +29,9 @@ export enum CalendarEventParticipantResponseStatus {
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.calendarEventParticipant,
namePlural: 'calendarEventParticipants',
labelSingular: 'Calendar event participant',
labelPlural: 'Calendar event participants',
description: 'Calendar event participants',
labelSingular: msg`Calendar event participant`,
labelPlural: msg`Calendar event participants`,
description: msg`Calendar event participants`,
icon: STANDARD_OBJECT_ICONS.calendarEventParticipant,
labelIdentifierStandardId:
CALENDAR_EVENT_PARTICIPANT_STANDARD_FIELD_IDS.handle,

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -23,9 +24,9 @@ import { CalendarEventParticipantWorkspaceEntity } from 'src/modules/calendar/co
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.calendarEvent,
namePlural: 'calendarEvents',
labelSingular: 'Calendar event',
labelPlural: 'Calendar events',
description: 'Calendar events',
labelSingular: msg`Calendar event`,
labelPlural: msg`Calendar events`,
description: msg`Calendar events`,
icon: STANDARD_OBJECT_ICONS.calendarEvent,
labelIdentifierStandardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.title,
})

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -29,9 +30,9 @@ export enum ConnectedAccountProvider {
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.connectedAccount,
namePlural: 'connectedAccounts',
labelSingular: 'Connected Account',
labelPlural: 'Connected Accounts',
description: 'A connected account',
labelSingular: msg`Connected Account`,
labelPlural: msg`Connected Accounts`,
description: msg`A connected account`,
icon: STANDARD_OBJECT_ICONS.connectedAccount,
labelIdentifierStandardId: CONNECTED_ACCOUNT_STANDARD_FIELD_IDS.handle,
})

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -18,9 +19,9 @@ import { FavoriteWorkspaceEntity } from 'src/modules/favorite/standard-objects/f
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.favoriteFolder,
namePlural: 'favoriteFolders',
labelSingular: 'Favorite Folder',
labelPlural: 'Favorite Folders',
description: 'A Folder of favorites',
labelSingular: msg`Favorite Folder`,
labelPlural: msg`Favorite Folders`,
description: msg`A Folder of favorites`,
icon: 'IconFolder',
})
@WorkspaceIsSystem()

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -31,9 +32,9 @@ import { WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/sta
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.favorite,
namePlural: 'favorites',
labelSingular: 'Favorite',
labelPlural: 'Favorites',
description: 'A favorite',
labelSingular: msg`Favorite`,
labelPlural: msg`Favorites`,
description: msg`A favorite that can be accessed from the left menu`,
icon: STANDARD_OBJECT_ICONS.favorite,
})
@WorkspaceIsNotAuditLogged()

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -24,9 +25,9 @@ import { MessageWorkspaceEntity } from 'src/modules/messaging/common/standard-ob
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.messageChannelMessageAssociation,
namePlural: 'messageChannelMessageAssociations',
labelSingular: 'Message Channel Message Association',
labelPlural: 'Message Channel Message Associations',
description: 'Message Synced with a Message Channel',
labelSingular: msg`Message Channel Message Association`,
labelPlural: msg`Message Channel Message Associations`,
description: msg`Message Synced with a Message Channel`,
icon: STANDARD_OBJECT_ICONS.messageChannelMessageAssociation,
})
@WorkspaceIsNotAuditLogged()

View File

@ -1,5 +1,6 @@
import { registerEnumType } from '@nestjs/graphql';
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -79,9 +80,9 @@ registerEnumType(MessageChannelContactAutoCreationPolicy, {
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.messageChannel,
namePlural: 'messageChannels',
labelSingular: 'Message Channel',
labelPlural: 'Message Channels',
description: 'Message Channels',
labelSingular: msg`Message Channel`,
labelPlural: msg`Message Channels`,
description: msg`Message Channels`,
icon: STANDARD_OBJECT_ICONS.messageChannel,
labelIdentifierStandardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.handle,
})

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -21,9 +22,9 @@ import { WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/sta
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.messageParticipant,
namePlural: 'messageParticipants',
labelSingular: 'Message Participant',
labelPlural: 'Message Participants',
description: 'Message Participants',
labelSingular: msg`Message Participant`,
labelPlural: msg`Message Participants`,
description: msg`Message Participants`,
icon: STANDARD_OBJECT_ICONS.messageParticipant,
labelIdentifierStandardId: MESSAGE_PARTICIPANT_STANDARD_FIELD_IDS.handle,
})

View File

@ -1,3 +1,5 @@
import { msg } from '@lingui/core/macro';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
import {
@ -18,9 +20,9 @@ import { MessageWorkspaceEntity } from 'src/modules/messaging/common/standard-ob
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.messageThread,
namePlural: 'messageThreads',
labelSingular: 'Message Thread',
labelPlural: 'Message Threads',
description: 'Message Thread',
labelSingular: msg`Message Thread`,
labelPlural: msg`Message Threads`,
description: msg`A group of related messages (e.g. email thread, chat thread)`,
icon: STANDARD_OBJECT_ICONS.messageThread,
})
@WorkspaceIsNotAuditLogged()

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -24,9 +25,9 @@ import { MessageThreadWorkspaceEntity } from 'src/modules/messaging/common/stand
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.message,
namePlural: 'messages',
labelSingular: 'Message',
labelPlural: 'Messages',
description: 'Message',
labelSingular: msg`Message`,
labelPlural: msg`Messages`,
description: msg`A message sent or received through a messaging channel (email, chat, etc.)`,
icon: STANDARD_OBJECT_ICONS.message,
labelIdentifierStandardId: MESSAGE_STANDARD_FIELD_IDS.subject,
})

View File

@ -1,3 +1,5 @@
import { msg } from '@lingui/core/macro';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
@ -20,9 +22,9 @@ import { PersonWorkspaceEntity } from 'src/modules/person/standard-objects/perso
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.noteTarget,
namePlural: 'noteTargets',
labelSingular: 'Note Target',
labelPlural: 'Note Targets',
description: 'A note target',
labelSingular: msg`Note Target`,
labelPlural: msg`Note Targets`,
description: msg`A note target`,
icon: STANDARD_OBJECT_ICONS.noteTarget,
})
@WorkspaceIsSystem()

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -42,9 +43,9 @@ export const SEARCH_FIELDS_FOR_NOTES: FieldTypeAndNameMetadata[] = [
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.note,
namePlural: 'notes',
labelSingular: 'Note',
labelPlural: 'Notes',
description: 'A note',
labelSingular: msg`Note`,
labelPlural: msg`Notes`,
description: msg`A note`,
icon: STANDARD_OBJECT_ICONS.note,
shortcut: 'N',
labelIdentifierStandardId: NOTE_STANDARD_FIELD_IDS.title,

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -47,9 +48,9 @@ export const SEARCH_FIELDS_FOR_OPPORTUNITY: FieldTypeAndNameMetadata[] = [
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.opportunity,
namePlural: 'opportunities',
labelSingular: 'Opportunity',
labelPlural: 'Opportunities',
description: 'An opportunity',
labelSingular: msg`Opportunity`,
labelPlural: msg`Opportunities`,
description: msg`An opportunity`,
icon: STANDARD_OBJECT_ICONS.opportunity,
shortcut: 'O',
labelIdentifierStandardId: OPPORTUNITY_STANDARD_FIELD_IDS.name,

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -56,9 +57,9 @@ export const SEARCH_FIELDS_FOR_PERSON: FieldTypeAndNameMetadata[] = [
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.person,
namePlural: 'people',
labelSingular: 'Person',
labelPlural: 'People',
description: 'A person',
labelSingular: msg`Person`,
labelPlural: msg`People`,
description: msg`A person`,
icon: STANDARD_OBJECT_ICONS.person,
shortcut: 'P',
labelIdentifierStandardId: PERSON_STANDARD_FIELD_IDS.name,

View File

@ -1,3 +1,5 @@
import { msg } from '@lingui/core/macro';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
@ -20,9 +22,9 @@ import { TaskWorkspaceEntity } from 'src/modules/task/standard-objects/task.work
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.taskTarget,
namePlural: 'taskTargets',
labelSingular: 'Task Target',
labelPlural: 'Task Targets',
description: 'An task target',
labelSingular: msg`Task Target`,
labelPlural: msg`Task Targets`,
description: msg`A task target`,
icon: STANDARD_OBJECT_ICONS.taskTarget,
})
@WorkspaceIsSystem()

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -44,9 +45,9 @@ export const SEARCH_FIELDS_FOR_TASK: FieldTypeAndNameMetadata[] = [
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.task,
namePlural: 'tasks',
labelSingular: 'Task',
labelPlural: 'Tasks',
description: 'A task',
labelSingular: msg`Task`,
labelPlural: msg`Tasks`,
description: msg`A task`,
icon: STANDARD_OBJECT_ICONS.task,
shortcut: 'T',
labelIdentifierStandardId: TASK_STANDARD_FIELD_IDS.title,

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -18,9 +19,9 @@ import { WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/sta
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.auditLog,
namePlural: 'auditLogs',
labelSingular: 'Audit Log',
labelPlural: 'Audit Logs',
description: 'An audit log of actions performed in the system',
labelSingular: msg`Audit Log`,
labelPlural: msg`Audit Logs`,
description: msg`An audit log of actions performed in the system`,
icon: STANDARD_OBJECT_ICONS.auditLog,
labelIdentifierStandardId: AUDIT_LOGS_STANDARD_FIELD_IDS.name,
})

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { FeatureFlagKey } from 'src/engine/core-modules/feature-flag/enums/feature-flag-key.enum';
@ -14,9 +15,9 @@ import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.behavioralEvent,
namePlural: 'behavioralEvents',
labelSingular: 'Behavioral Event',
labelPlural: 'Behavioral Events',
description: 'An event related to user behavior',
labelSingular: msg`Behavioral Event`,
labelPlural: msg`Behavioral Events`,
description: msg`An event related to user behavior`,
icon: STANDARD_OBJECT_ICONS.behavioralEvent,
})
@WorkspaceIsSystem()

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -29,9 +30,9 @@ import { WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/sta
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.timelineActivity,
namePlural: 'timelineActivities',
labelSingular: 'Timeline Activity',
labelPlural: 'Timeline Activities',
description: 'Aggregated / filtered event to be displayed on the timeline',
labelSingular: msg`Timeline Activity`,
labelPlural: msg`Timeline Activities`,
description: msg`Aggregated / filtered event to be displayed on the timeline`,
icon: STANDARD_OBJECT_ICONS.timelineActivity,
})
@WorkspaceIsSystem()

View File

@ -1,7 +1,8 @@
import { registerEnumType } from '@nestjs/graphql';
import { Relation } from 'typeorm';
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'typeorm';
import { AGGREGATE_OPERATIONS } from 'src/engine/api/graphql/graphql-query-runner/constants/aggregate-operations.constant';
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
@ -26,9 +27,9 @@ registerEnumType(AGGREGATE_OPERATIONS, {
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.viewField,
namePlural: 'viewFields',
labelSingular: 'View Field',
labelPlural: 'View Fields',
description: '(System) View Fields',
labelSingular: msg`View Field`,
labelPlural: msg`View Fields`,
description: msg`(System) View Fields`,
icon: STANDARD_OBJECT_ICONS.viewField,
})
@WorkspaceIsNotAuditLogged()

View File

@ -1,5 +1,6 @@
import { Relation } from 'typeorm';
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'typeorm';
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
@ -23,9 +24,9 @@ export enum ViewFilterGroupLogicalOperator {
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.viewFilterGroup,
namePlural: 'viewFilterGroups',
labelSingular: 'View Filter Group',
labelPlural: 'View Filter Groups',
description: '(System) View Filter Groups',
labelSingular: msg`View Filter Group`,
labelPlural: msg`View Filter Groups`,
description: msg`(System) View Filter Groups`,
icon: 'IconFilterBolt',
})
@WorkspaceIsNotAuditLogged()

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -19,9 +20,9 @@ import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.work
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.viewFilter,
namePlural: 'viewFilters',
labelSingular: 'View Filter',
labelPlural: 'View Filters',
description: '(System) View Filters',
labelSingular: msg`View Filter`,
labelPlural: msg`View Filters`,
description: msg`(System) View Filters`,
icon: STANDARD_OBJECT_ICONS.viewFilter,
})
@WorkspaceIsNotAuditLogged()

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
@ -17,9 +18,9 @@ import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.work
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.viewGroup,
namePlural: 'viewGroups',
labelSingular: 'View Group',
labelPlural: 'View Groups',
description: '(System) View Groups',
labelSingular: msg`View Group`,
labelPlural: msg`View Groups`,
description: msg`(System) View Groups`,
icon: STANDARD_OBJECT_ICONS.viewGroup,
})
@WorkspaceIsNotAuditLogged()

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -20,9 +21,9 @@ import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.work
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.viewSort,
namePlural: 'viewSorts',
labelSingular: 'View Sort',
labelPlural: 'View Sorts',
description: '(System) View Sorts',
labelSingular: msg`View Sort`,
labelPlural: msg`View Sorts`,
description: msg`(System) View Sorts`,
icon: STANDARD_OBJECT_ICONS.viewSort,
})
@WorkspaceIsNotAuditLogged()

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -27,9 +28,9 @@ import { ViewSortWorkspaceEntity } from 'src/modules/view/standard-objects/view-
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.view,
namePlural: 'views',
labelSingular: 'View',
labelPlural: 'Views',
description: '(System) Views',
labelSingular: msg`View`,
labelPlural: msg`Views`,
description: msg`(System) Views`,
icon: STANDARD_OBJECT_ICONS.view,
labelIdentifierStandardId: VIEW_STANDARD_FIELD_IDS.name,
})

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
@ -14,9 +15,9 @@ import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.webhook,
namePlural: 'webhooks',
labelSingular: 'Webhook',
labelPlural: 'Webhooks',
description: 'A webhook',
labelSingular: msg`Webhook`,
labelPlural: msg`Webhooks`,
description: msg`A webhook`,
icon: STANDARD_OBJECT_ICONS.webhook,
labelIdentifierStandardId: WEBHOOK_STANDARD_FIELD_IDS.targetUrl,
})

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -18,9 +19,9 @@ import { WorkflowWorkspaceEntity } from 'src/modules/workflow/common/standard-ob
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.workflowEventListener,
namePlural: 'workflowEventListeners',
labelSingular: 'WorkflowEventListener',
labelPlural: 'WorkflowEventListeners',
description: 'A workflow event listener',
labelSingular: msg`WorkflowEventListener`,
labelPlural: msg`WorkflowEventListeners`,
description: msg`A workflow event listener`,
icon: STANDARD_OBJECT_ICONS.workflowEventListener,
labelIdentifierStandardId:
WORKFLOW_EVENT_LISTENER_STANDARD_FIELD_IDS.eventName,

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -51,9 +52,9 @@ export type WorkflowRunOutput = {
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.workflowRun,
namePlural: 'workflowRuns',
labelSingular: 'Workflow Run',
labelPlural: 'Workflow Runs',
description: 'A workflow run',
labelSingular: msg`Workflow Run`,
labelPlural: msg`Workflow Runs`,
description: msg`A workflow run`,
labelIdentifierStandardId: WORKFLOW_RUN_STANDARD_FIELD_IDS.name,
icon: STANDARD_OBJECT_ICONS.workflowRun,
})

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -61,9 +62,9 @@ const WorkflowVersionStatusOptions: FieldMetadataComplexOption[] = [
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.workflowVersion,
namePlural: 'workflowVersions',
labelSingular: 'Workflow Version',
labelPlural: 'Workflow Versions',
description: 'A workflow version',
labelSingular: msg`Workflow Version`,
labelPlural: msg`Workflow Versions`,
description: msg`A workflow version`,
icon: STANDARD_OBJECT_ICONS.workflowVersion,
labelIdentifierStandardId: WORKFLOW_VERSION_STANDARD_FIELD_IDS.name,
})

View File

@ -1,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -56,9 +57,9 @@ const WorkflowStatusOptions: FieldMetadataComplexOption[] = [
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.workflow,
namePlural: 'workflows',
labelSingular: 'Workflow',
labelPlural: 'Workflows',
description: 'A workflow',
labelSingular: msg`Workflow`,
labelPlural: msg`Workflows`,
description: msg`A workflow`,
icon: STANDARD_OBJECT_ICONS.workflow,
shortcut: 'W',
labelIdentifierStandardId: WORKFLOW_STANDARD_FIELD_IDS.name,

View File

@ -1,5 +1,6 @@
import { registerEnumType } from '@nestjs/graphql';
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
@ -72,9 +73,9 @@ export const SEARCH_FIELDS_FOR_WORKSPACE_MEMBER: FieldTypeAndNameMetadata[] = [
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.workspaceMember,
namePlural: 'workspaceMembers',
labelSingular: 'Workspace Member',
labelPlural: 'Workspace Members',
description: 'A workspace member',
labelSingular: msg`Workspace Member`,
labelPlural: msg`Workspace Members`,
description: msg`A workspace member`,
icon: STANDARD_OBJECT_ICONS.workspaceMember,
labelIdentifierStandardId: WORKSPACE_MEMBER_STANDARD_FIELD_IDS.name,
})