The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { msg } from '@lingui/core/macro';
import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
import { EngineComponentKey } from 'src/engine/metadata-modules/command-menu-item/enums/engine-component-key.enum';
import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';
import { CommandMenuItemAvailabilityType } from 'twenty-shared/types';
export const STANDARD_COMMAND_MENU_ITEMS = {
navigateToNextRecord: {
universalIdentifier: '3db2457d-8e96-4b8e-94c9-ed95d3f95738',
label: i18nLabel(
msg({
message: `Navigate to next {objectLabelSingular}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconChevronDown',
isPinned: true,
position: 1,
shortLabel: null,
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'pageType == "RECORD_PAGE" and not isInSidePanel and objectMetadataItem.nameSingular != "messageCampaign" and objectMetadataItem.nameSingular != "agentChatThread"',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATE_TO_NEXT_RECORD,
hotKeys: null,
},
navigateToPreviousRecord: {
universalIdentifier: 'ec10f871-415b-420b-8150-7e09f6f04833',
label: i18nLabel(
msg({
message: `Navigate to previous {objectLabelSingular}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconChevronUp',
isPinned: true,
position: 2,
shortLabel: null,
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'pageType == "RECORD_PAGE" and not isInSidePanel and objectMetadataItem.nameSingular != "messageCampaign" and objectMetadataItem.nameSingular != "agentChatThread"',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATE_TO_PREVIOUS_RECORD,
hotKeys: null,
},
createNewRecord: {
universalIdentifier: '08d255bf-58cd-47a5-bd82-78c5c58592f1',
label: i18nLabel(
msg({
message: `Create {objectLabelSingular}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconPlus',
isPinned: true,
position: 3,
shortLabel: i18nLabel(
msg({
message: `Create`,
context: 'commandMenuItem.shortLabel',
}),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL_OBJECT_CONTEXT,
conditionalAvailabilityExpression:
'pageType == "INDEX_PAGE" and objectPermissions.canUpdateObjectRecords and not hasAnySoftDeleteFilterOnView and objectMetadataItem.isUICreatable and objectMetadataItem.isUIEditable and not objectMetadataItem.isRemote',
conditionalPinnedExpression: 'numberOfSelectedRecords == 0',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.CREATE_NEW_RECORD,
hotKeys: null,
},
deleteRecords: {
universalIdentifier: 'd5a55d57-ed1d-4791-89b8-53b7e121d69d',
label: i18nLabel(
msg({
message: `Delete {objectLabel}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconTrash',
isPinned: false,
position: 4,
shortLabel: i18nLabel(
msg({ message: `Delete`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and not hasAnySoftDeleteFilterOnView and objectPermissions.canSoftDeleteObjectRecords and (isSelectAll or noneDefined(selectedRecords, "deletedAt")) and (isSelectAll or noneEquals(selectedRecords, "recordPermissions.canSoftDelete", false))',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.DELETE_RECORDS,
hotKeys: null,
},
restoreRecords: {
universalIdentifier: '2d733846-8cc5-4314-ab79-916ae0801baa',
label: i18nLabel(
msg({
message: `Restore {objectLabel}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconRefresh',
isPinned: true,
position: 5,
shortLabel: i18nLabel(
msg({ message: `Restore`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and (isSelectAll or everyDefined(selectedRecords, "deletedAt")) and objectPermissions.canSoftDeleteObjectRecords and (pageType == "RECORD_PAGE" or hasAnySoftDeleteFilterOnView) and (isSelectAll or noneEquals(selectedRecords, "recordPermissions.canSoftDelete", false))',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.RESTORE_RECORDS,
hotKeys: null,
},
destroyRecords: {
universalIdentifier: '0ea2ebc4-02ca-4d15-b424-5352b9e487df',
label: i18nLabel(
msg({
message: `Permanently destroy {objectLabel}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconTrashX',
isPinned: false,
position: 6,
shortLabel: i18nLabel(
msg({ message: `Destroy`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and objectPermissions.canDestroyObjectRecords and (isSelectAll or everyDefined(selectedRecords, "deletedAt")) and (pageType == "RECORD_PAGE" or hasAnySoftDeleteFilterOnView) and (isSelectAll or noneEquals(selectedRecords, "recordPermissions.canDelete", false))',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.DESTROY_RECORDS,
hotKeys: null,
},
addToFavorites: {
universalIdentifier: '38bf80c3-bd55-4753-80ba-38aa66429a03',
label: i18nLabel(
msg({ message: `Add to Favorites`, context: 'commandMenuItem.label' }),
),
icon: 'IconHeart',
isPinned: true,
position: 7,
shortLabel: null,
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'arrayLength(favoriteRecordIds) < numberOfSelectedRecords and noneDefined(selectedRecords, "deletedAt") and not hasAnySoftDeleteFilterOnView and objectMetadataItem.nameSingular != "messageCampaign" and objectMetadataItem.nameSingular != "workflow"',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.ADD_TO_FAVORITES,
hotKeys: null,
},
removeFromFavorites: {
universalIdentifier: '3ea42507-44fa-4895-a36d-cbfef7355a50',
label: i18nLabel(
msg({
message: `Remove from Favorites`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconHeartOff',
isPinned: true,
position: 8,
shortLabel: null,
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'arrayLength(favoriteRecordIds) == numberOfSelectedRecords and noneDefined(selectedRecords, "deletedAt") and not hasAnySoftDeleteFilterOnView and objectMetadataItem.nameSingular != "messageCampaign" and objectMetadataItem.nameSingular != "workflow"',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.REMOVE_FROM_FAVORITES,
hotKeys: null,
},
exportRecords: {
universalIdentifier: 'c6f5c54d-d52b-4e75-8188-2190d77126f2',
label: i18nLabel(
msg({
message: `Export {objectLabel}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconFileExport',
isPinned: false,
position: 10,
shortLabel: i18nLabel(
msg({ message: `Export`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'pageType == "INDEX_PAGE" and permissionFlags.EXPORT_CSV',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.EXPORT_RECORDS,
hotKeys: null,
},
updateMultipleRecords: {
universalIdentifier: '2e080651-f098-4a78-bea9-7a70002dc57c',
label: i18nLabel(
msg({
message: `Update {objectLabelPlural}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconEdit',
isPinned: true,
position: 11,
shortLabel: i18nLabel(
msg({ message: `Update`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 2 and objectPermissions.canUpdateObjectRecords',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.UPDATE_MULTIPLE_RECORDS,
hotKeys: null,
},
mergeMultipleRecords: {
universalIdentifier: '6c14eb04-8e7e-4d47-93c0-8ec4834e2e60',
label: i18nLabel(
msg({
message: `Merge {objectLabelPlural}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconArrowMerge',
isPinned: false,
position: 12,
shortLabel: i18nLabel(
msg({ message: `Merge`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'not isSelectAll and numberOfSelectedRecords >= 2 and not objectMetadataItem.isSystem and objectMetadataItem.nameSingular != "workflow" and objectMetadataItem.nameSingular != "dashboard" and objectPermissions.canUpdateObjectRecords and objectPermissions.canDestroyObjectRecords and numberOfSelectedRecords <= 9 and noneEquals(selectedRecords, "recordPermissions.canUpdate", false) and noneEquals(selectedRecords, "recordPermissions.canDelete", false)',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.MERGE_MULTIPLE_RECORDS,
hotKeys: null,
},
mergeWithRecord: {
universalIdentifier: 'eb8acbd6-b285-466b-a172-7a643d8d5e3f',
label: i18nLabel(
msg({
message: `Merge with Another {objectLabelSingular}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconArrowMerge',
isPinned: false,
position: 12,
shortLabel: i18nLabel(
msg({ message: `Merge`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'pageType == "RECORD_PAGE" and numberOfSelectedRecords == 1 and noneDefined(selectedRecords, "deletedAt") and not objectMetadataItem.isSystem and objectMetadataItem.nameSingular != "workflow" and objectMetadataItem.nameSingular != "dashboard" and objectPermissions.canUpdateObjectRecords and objectPermissions.canDestroyObjectRecords and noneEquals(selectedRecords, "recordPermissions.canUpdate", false) and noneEquals(selectedRecords, "recordPermissions.canDelete", false)',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.MERGE_WITH_RECORD,
hotKeys: null,
},
importRecords: {
universalIdentifier: 'a2dc9de7-4798-422e-bb55-bfad7b9bdbe8',
label: i18nLabel(
msg({
message: `Import {objectLabelPlural}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconFileImport',
isPinned: false,
position: 13,
shortLabel: i18nLabel(
msg({ message: `Import`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL_OBJECT_CONTEXT,
conditionalAvailabilityExpression:
'pageType == "INDEX_PAGE" and not hasAnySoftDeleteFilterOnView and permissionFlags.IMPORT_CSV',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.IMPORT_RECORDS,
hotKeys: null,
},
exportView: {
universalIdentifier: '80680f2a-c426-48b3-a839-c63a6183dc4b',
label: i18nLabel(
msg({ message: `Export View`, context: 'commandMenuItem.label' }),
),
icon: 'IconFileExport',
isPinned: false,
position: 14,
shortLabel: i18nLabel(
msg({ message: `Export`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL_OBJECT_CONTEXT,
conditionalAvailabilityExpression:
'pageType == "INDEX_PAGE" and permissionFlags.EXPORT_CSV',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.EXPORT_VIEW,
hotKeys: null,
},
seeDeletedRecords: {
universalIdentifier: 'd63c21c3-9785-4750-be87-5f36269b8e0d',
label: i18nLabel(
msg({
message: `See deleted {objectLabelPlural}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconRotate2',
isPinned: false,
position: 15,
shortLabel: i18nLabel(
msg({
message: `Deleted {objectLabelPlural}`,
context: 'commandMenuItem.shortLabel',
}),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL_OBJECT_CONTEXT,
conditionalAvailabilityExpression:
'pageType == "INDEX_PAGE" and not hasAnySoftDeleteFilterOnView',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SEE_DELETED_RECORDS,
hotKeys: null,
},
createNewView: {
universalIdentifier: '6ec7c339-e167-431d-bec6-d1c737df677c',
label: i18nLabel(
msg({ message: `Create View`, context: 'commandMenuItem.label' }),
),
icon: 'IconLayout',
isPinned: false,
position: 16,
shortLabel: i18nLabel(
msg({ message: `Create View`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL_OBJECT_CONTEXT,
conditionalAvailabilityExpression:
'pageType == "INDEX_PAGE" and not hasAnySoftDeleteFilterOnView',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.CREATE_NEW_VIEW,
hotKeys: null,
},
hideDeletedRecords: {
universalIdentifier: '1420db7f-0fba-49e2-b23e-4b7caa0fafa0',
label: i18nLabel(
msg({
message: `Hide deleted {objectLabelPlural}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconEyeOff',
isPinned: false,
position: 17,
shortLabel: i18nLabel(
msg({ message: `Hide deleted`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL_OBJECT_CONTEXT,
conditionalAvailabilityExpression:
'pageType == "INDEX_PAGE" and hasAnySoftDeleteFilterOnView',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.HIDE_DELETED_RECORDS,
hotKeys: null,
},
editRecordPageLayout: {
universalIdentifier: 'd9794c67-1799-424f-8871-5ea771dd4a6d',
label: i18nLabel(
msg({ message: `Edit Layout`, context: 'commandMenuItem.label' }),
),
icon: 'IconPencil',
isPinned: false,
position: 18,
shortLabel: i18nLabel(
msg({ message: `Edit Layout`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression:
'pageType != "SETTINGS_PAGE" and not isLayoutCustomizationModeEnabled and permissionFlags.LAYOUTS',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.EDIT_RECORD_PAGE_LAYOUT,
hotKeys: null,
},
editDashboardLayout: {
universalIdentifier: 'b9b53bbc-3129-4eb9-8344-c3f9628ffa7d',
label: i18nLabel(
msg({ message: `Edit Dashboard`, context: 'commandMenuItem.label' }),
),
icon: 'IconPencil',
isPinned: true,
position: 19,
shortLabel: i18nLabel(
msg({ message: `Edit`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'pageType == "RECORD_PAGE" and not isDashboardPageLayoutInEditMode and not isLayoutCustomizationModeEnabled and noneDefined(selectedRecords, "deletedAt") and everyDefined(selectedRecords, "pageLayoutId") and objectPermissions.canUpdateObjectRecords',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.dashboard.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.EDIT_DASHBOARD_LAYOUT,
hotKeys: null,
},
saveDashboardLayout: {
universalIdentifier: '18b23908-f816-42ab-bc0a-eb5fae29c695',
label: i18nLabel(
msg({ message: `Save Dashboard`, context: 'commandMenuItem.label' }),
),
icon: 'IconDeviceFloppy',
isPinned: true,
position: 20,
shortLabel: i18nLabel(
msg({ message: `Save`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'pageType == "RECORD_PAGE" and isDashboardPageLayoutInEditMode and noneDefined(selectedRecords, "deletedAt") and everyDefined(selectedRecords, "pageLayoutId") and objectPermissions.canUpdateObjectRecords',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.dashboard.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SAVE_DASHBOARD_LAYOUT,
hotKeys: null,
},
cancelDashboardLayout: {
universalIdentifier: '030ecd01-0aaf-4e6d-8400-105996548887',
label: i18nLabel(
msg({ message: `Cancel Edition`, context: 'commandMenuItem.label' }),
),
icon: 'IconCancel',
isPinned: true,
position: 21,
shortLabel: i18nLabel(
msg({ message: `Cancel`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'pageType == "RECORD_PAGE" and isDashboardPageLayoutInEditMode and noneDefined(selectedRecords, "deletedAt") and everyDefined(selectedRecords, "pageLayoutId") and objectPermissions.canUpdateObjectRecords',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.dashboard.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.CANCEL_DASHBOARD_LAYOUT,
hotKeys: null,
},
duplicateDashboard: {
universalIdentifier: '2ee07307-60ce-41ef-bfee-7c718f67557e',
label: i18nLabel(
msg({ message: `Duplicate Dashboard`, context: 'commandMenuItem.label' }),
),
icon: 'IconCopyPlus',
isPinned: false,
position: 22,
shortLabel: i18nLabel(
msg({ message: `Duplicate`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'noneDefined(selectedRecords, "deletedAt") and objectPermissions.canUpdateObjectRecords',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.dashboard.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.DUPLICATE_DASHBOARD,
hotKeys: null,
},
activateWorkflow: {
universalIdentifier: '44f19c85-0fd0-482f-a14e-da513c60b1b3',
label: i18nLabel(
msg({ message: `Activate Workflow`, context: 'commandMenuItem.label' }),
),
icon: 'IconPower',
isPinned: true,
position: 23,
shortLabel: i18nLabel(
msg({ message: `Activate`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and everyDefined(selectedRecords, "currentVersion.trigger") and everyDefined(selectedRecords, "currentVersion.steps") and every(selectedRecords, "currentVersion.steps.length") and (everyEquals(selectedRecords, "currentVersion.status", "DRAFT") or includesNone(selectedRecords, "statuses", "ACTIVE")) and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflow.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.ACTIVATE_WORKFLOW,
hotKeys: null,
},
deactivateWorkflow: {
universalIdentifier: '57f21a06-a17a-47b1-a123-90d90dbdf0b7',
label: i18nLabel(
msg({ message: `Deactivate Workflow`, context: 'commandMenuItem.label' }),
),
icon: 'IconPlayerPause',
isPinned: true,
position: 24,
shortLabel: i18nLabel(
msg({ message: `Deactivate`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and (everyEquals(selectedRecords, "currentVersion.status", "ACTIVE") or includesEvery(selectedRecords, "statuses", "ACTIVE")) and noneDefined(selectedRecords, "deletedAt") and noneEquals(selectedRecords, "recordPermissions.canUpdate", false)',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflow.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.DEACTIVATE_WORKFLOW,
hotKeys: null,
},
discardDraftWorkflow: {
universalIdentifier: '4c227f2e-03bb-4a66-9b13-49f263264f4a',
label: i18nLabel(
msg({ message: `Discard Draft`, context: 'commandMenuItem.label' }),
),
icon: 'IconNoteOff',
isPinned: true,
position: 25,
shortLabel: i18nLabel(
msg({ message: `Discard Draft`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'every(selectedRecords, "lastPublishedVersionId") and everyEquals(selectedRecords, "currentVersion.status", "DRAFT") and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflow.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.DISCARD_DRAFT_WORKFLOW,
hotKeys: null,
},
testWorkflow: {
universalIdentifier: 'f85d552a-87a3-4667-99f7-71b47917539c',
label: i18nLabel(
msg({ message: `Test Workflow`, context: 'commandMenuItem.label' }),
),
icon: 'IconPlayerPlay',
isPinned: true,
position: 26,
shortLabel: i18nLabel(
msg({ message: `Test`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and everyDefined(selectedRecords, "currentVersion.trigger") and everyDefined(selectedRecords, "currentVersion.steps") and every(selectedRecords, "currentVersion.steps.length") and ((everyEquals(selectedRecords, "currentVersion.trigger.type", "MANUAL") and noneDefined(selectedRecords, "currentVersion.trigger.settings.objectType")) or everyEquals(selectedRecords, "currentVersion.trigger.type", "WEBHOOK") or everyEquals(selectedRecords, "currentVersion.trigger.type", "CRON")) and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflow.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.TEST_WORKFLOW,
hotKeys: null,
},
seeRunsWorkflow: {
universalIdentifier: 'e57efc2d-00a2-493a-b76c-f2dabd23a5eb',
label: i18nLabel(
msg({ message: `See Runs`, context: 'commandMenuItem.label' }),
),
icon: 'IconHistoryToggle',
isPinned: true,
position: 28,
shortLabel: i18nLabel(
msg({ message: `See Runs`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflow.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SEE_RUNS_WORKFLOW,
hotKeys: null,
},
seeVersionsWorkflow: {
universalIdentifier: '92781d24-b875-4282-8cdb-d127f04a5c7d',
label: i18nLabel(
msg({
message: `See Versions History`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconVersions',
isPinned: false,
position: 29,
shortLabel: i18nLabel(
msg({ message: `See Versions`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflow.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SEE_VERSIONS_WORKFLOW,
hotKeys: null,
},
tidyUpWorkflow: {
universalIdentifier: '1f3a3cab-161a-4775-af47-11be4d0bf411',
label: i18nLabel(
msg({ message: `Tidy up Workflow`, context: 'commandMenuItem.label' }),
),
icon: 'IconReorder',
isPinned: false,
position: 31,
shortLabel: i18nLabel(
msg({ message: `Tidy up`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'pageType == "RECORD_PAGE" and everyDefined(selectedRecords, "currentVersion.trigger") and everyDefined(selectedRecords, "currentVersion.steps") and every(selectedRecords, "currentVersion.steps.length") and noneDefined(selectedRecords, "deletedAt") and noneEquals(selectedRecords, "recordPermissions.canUpdate", false)',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflow.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.TIDY_UP_WORKFLOW,
hotKeys: null,
},
duplicateWorkflow: {
universalIdentifier: '91094438-b4c2-46ad-a23b-8af4b23ba514',
label: i18nLabel(
msg({ message: `Duplicate Workflow`, context: 'commandMenuItem.label' }),
),
icon: 'IconCopy',
isPinned: false,
position: 32,
shortLabel: i18nLabel(
msg({ message: `Duplicate`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'everyDefined(selectedRecords, "currentVersion") and noneDefined(selectedRecords, "deletedAt") and noneEquals(selectedRecords, "recordPermissions.canUpdate", false)',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflow.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.DUPLICATE_WORKFLOW,
hotKeys: null,
},
makeWorkflowPrivate: {
universalIdentifier: '26f98606-8b6e-42f2-bc97-2cfc4359bada',
label: i18nLabel(
msg({
message: `Make Workflow Private`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconCircleDashed',
isPinned: false,
position: 33,
shortLabel: i18nLabel(
msg({ message: `Make Private`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and everyEquals(selectedRecords, "visibility", "WORKSPACE") and every(selectedRecords, "canChangeVisibility") and noneDefined(selectedRecords, "deletedAt") and noneEquals(selectedRecords, "recordPermissions.canUpdate", false)',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflow.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.TOGGLE_WORKFLOW_VISIBILITY,
hotKeys: null,
},
shareWorkflowWithWorkspace: {
universalIdentifier: '37745922-ba18-4bea-a1da-8625ad22d233',
label: i18nLabel(
msg({
message: `Share Workflow with Workspace`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconCircle',
isPinned: false,
position: 33,
shortLabel: i18nLabel(
msg({
message: `Share with Workspace`,
context: 'commandMenuItem.shortLabel',
}),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and everyEquals(selectedRecords, "visibility", "PRIVATE") and every(selectedRecords, "canChangeVisibility") and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflow.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.TOGGLE_WORKFLOW_VISIBILITY,
hotKeys: null,
},
seeWorkflowWorkflowRun: {
universalIdentifier: '9d9cc62d-3543-45c3-93f3-23d2d8979f2b',
label: i18nLabel(
msg({ message: `See Workflow`, context: 'commandMenuItem.label' }),
),
icon: 'IconSettingsAutomation',
isPinned: true,
position: 34,
shortLabel: i18nLabel(
msg({ message: `See Workflow`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression: null,
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflowRun.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SEE_WORKFLOW_WORKFLOW_RUN,
hotKeys: null,
},
stopWorkflowRun: {
universalIdentifier: '4c186606-9515-4561-a1eb-9a072b4f5e58',
label: i18nLabel(
msg({ message: `Stop`, context: 'commandMenuItem.label' }),
),
icon: 'IconPlayerStop',
isPinned: true,
position: 35,
shortLabel: i18nLabel(
msg({ message: `Stop`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'isSelectAll or someEquals(selectedRecords, "status", "NOT_STARTED") or someEquals(selectedRecords, "status", "ENQUEUED") or someEquals(selectedRecords, "status", "RUNNING")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflowRun.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.STOP_WORKFLOW_RUN,
hotKeys: null,
},
retryWorkflowRun: {
universalIdentifier: '99b97c50-b31b-411a-a532-ec05402123c0',
label: i18nLabel(
msg({ message: `Retry`, context: 'commandMenuItem.label' }),
),
icon: 'IconRefresh',
isPinned: true,
position: 36,
shortLabel: i18nLabel(
msg({ message: `Retry`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'someEquals(selectedRecords, "status", "FAILED")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflowRun.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.RETRY_WORKFLOW_RUN,
hotKeys: null,
},
seeRunsWorkflowVersion: {
universalIdentifier: '44e305c7-4f0a-45ec-803f-6471b56455cb',
label: i18nLabel(
msg({ message: `See Runs`, context: 'commandMenuItem.label' }),
),
icon: 'IconHistoryToggle',
isPinned: true,
position: 37,
shortLabel: i18nLabel(
msg({ message: `See Runs`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'everyDefined(selectedRecords, "workflow")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflowVersion.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SEE_RUNS_WORKFLOW_VERSION,
hotKeys: null,
},
seeWorkflowWorkflowVersion: {
universalIdentifier: 'b43052db-023e-4083-9b63-2c2dfbfd1320',
label: i18nLabel(
msg({ message: `See Workflow`, context: 'commandMenuItem.label' }),
),
icon: 'IconSettingsAutomation',
isPinned: true,
position: 38,
shortLabel: i18nLabel(
msg({ message: `See Workflow`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'everyDefined(selectedRecords, "workflow.id")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflowVersion.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SEE_WORKFLOW_WORKFLOW_VERSION,
hotKeys: null,
},
useAsDraftWorkflowVersion: {
universalIdentifier: '483c0c1d-ea4d-4a4d-8a59-2dcf9f8e38f6',
label: i18nLabel(
msg({ message: `Use as Draft`, context: 'commandMenuItem.label' }),
),
icon: 'IconPencil',
isPinned: true,
position: 39,
shortLabel: i18nLabel(
msg({ message: `Use as Draft`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'noneEquals(selectedRecords, "status", "DRAFT")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflowVersion.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.USE_AS_DRAFT_WORKFLOW_VERSION,
hotKeys: null,
},
seeVersionsWorkflowVersion: {
universalIdentifier: '1d4abeb7-2750-4af7-9a92-fbadd2a9e4ba',
label: i18nLabel(
msg({
message: `See Versions History`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconVersions',
isPinned: false,
position: 40,
shortLabel: i18nLabel(
msg({ message: `See Versions`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'everyDefined(selectedRecords, "workflow")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.workflowVersion.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SEE_VERSIONS_WORKFLOW_VERSION,
hotKeys: null,
},
searchRecords: {
universalIdentifier: 'fa24e25e-68f8-4548-82ff-c7b5168b7c7d',
label: i18nLabel(
msg({ message: `Search`, context: 'commandMenuItem.label' }),
),
icon: 'IconSearch',
isPinned: false,
position: 41,
shortLabel: i18nLabel(
msg({ message: `Search`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: null,
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SEARCH_RECORDS,
hotKeys: ['/'],
},
searchRecordsFallback: {
universalIdentifier: 'c659890c-7266-46c9-bfe1-75cefff8b6d0',
label: i18nLabel(
msg({ message: `Search`, context: 'commandMenuItem.label' }),
),
icon: 'IconSearch',
isPinned: false,
position: 42,
shortLabel: i18nLabel(
msg({ message: `Search`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.FALLBACK,
conditionalAvailabilityExpression: null,
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SEARCH_RECORDS_FALLBACK,
hotKeys: ['/'],
},
askAi: {
universalIdentifier: 'ce5fb54d-2b19-4dd1-b7b4-9532a1761a41',
label: i18nLabel(
msg({ message: `Ask AI`, context: 'commandMenuItem.label' }),
),
icon: 'IconMessageCirclePlus',
isPinned: true,
position: 43,
shortLabel: null,
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression:
'permissionFlags.AI and not isInSidePanel and objectMetadataItem.nameSingular != "agentChatThread"',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.ASK_AI,
hotKeys: ['@'],
},
viewPreviousAiChats: {
universalIdentifier: '3084c3c9-cc23-4dad-9e00-92025f5cba7a',
label: i18nLabel(
msg({
message: `Open chat`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconMessage',
isPinned: false,
position: 44,
shortLabel: i18nLabel(
msg({
message: `Open chat`,
context: 'commandMenuItem.shortLabel',
}),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.AI',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.VIEW_PREVIOUS_AI_CHATS,
hotKeys: null,
},
newAiChat: {
universalIdentifier: '604bc9b2-e438-4572-bd35-726fa0fb2ec7',
label: i18nLabel(
msg({ message: `New chat`, context: 'commandMenuItem.label' }),
),
icon: 'IconMessageCirclePlus',
isPinned: true,
position: 43,
shortLabel: i18nLabel(
msg({ message: `New chat`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.AI',
conditionalPinnedExpression:
'pageType == "RECORD_PAGE" and objectMetadataItem.nameSingular == "agentChatThread" and not isInSidePanel',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NEW_AI_CHAT,
hotKeys: null,
},
shareRecord: {
universalIdentifier: 'b9336f9f-d10c-42c0-b7cd-40c94ae235ef',
label: i18nLabel(
msg({
message: `Share {objectLabelSingular}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconShare',
isPinned: false,
position: 3,
shortLabel: i18nLabel(
msg({ message: `Share`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.agentChatThread.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SHARE_RECORD,
hotKeys: null,
},
markAiChatAsRead: {
universalIdentifier: '094d0b1f-91db-4e9a-ae8e-eed425b788b4',
label: i18nLabel(
msg({ message: `Mark as read`, context: 'commandMenuItem.label' }),
),
icon: 'IconEye',
isPinned: false,
position: 73,
shortLabel: i18nLabel(
msg({ message: `Mark as read`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and permissionFlags.AI and featureFlags.IS_AI_CHAT_INBOX_ENABLED and noneDefined(selectedRecords, "deletedAt") and every(selectedRecords, "inboxStatus.isUnread")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.agentChatThread.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.MARK_AI_CHAT_AS_READ,
hotKeys: null,
},
markAiChatAsUnread: {
universalIdentifier: '3a7762aa-2090-4113-85a6-f41295b9aed6',
label: i18nLabel(
msg({ message: `Mark as unread`, context: 'commandMenuItem.label' }),
),
icon: 'IconEyeOff',
isPinned: false,
position: 74,
shortLabel: i18nLabel(
msg({ message: `Mark as unread`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and permissionFlags.AI and featureFlags.IS_AI_CHAT_INBOX_ENABLED and noneDefined(selectedRecords, "deletedAt") and everyEquals(selectedRecords, "inboxStatus.isUnread", false)',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.agentChatThread.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.MARK_AI_CHAT_AS_UNREAD,
hotKeys: null,
},
markAiChatAsDone: {
universalIdentifier: 'be18e927-4873-496d-bc12-b767b995653f',
label: i18nLabel(
msg({ message: `Mark as done`, context: 'commandMenuItem.label' }),
),
icon: 'IconCheck',
isPinned: true,
position: 75,
shortLabel: i18nLabel(
msg({ message: `Done`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and permissionFlags.AI and featureFlags.IS_AI_CHAT_INBOX_ENABLED and noneDefined(selectedRecords, "deletedAt") and everyEquals(selectedRecords, "inboxStatus.scope", "INBOX")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.agentChatThread.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.MARK_AI_CHAT_AS_DONE,
hotKeys: ['E'],
},
reopenAiChat: {
universalIdentifier: 'c3166829-0e0e-4821-9851-de5cf18945f3',
label: i18nLabel(
msg({ message: `Reopen`, context: 'commandMenuItem.label' }),
),
icon: 'IconCircleDashed',
isPinned: true,
position: 76,
shortLabel: i18nLabel(
msg({ message: `Reopen`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and permissionFlags.AI and featureFlags.IS_AI_CHAT_INBOX_ENABLED and noneDefined(selectedRecords, "deletedAt") and everyEquals(selectedRecords, "inboxStatus.scope", "ARCHIVED")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.agentChatThread.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.REOPEN_AI_CHAT,
hotKeys: ['E'],
},
unsnoozeAiChat: {
universalIdentifier: '0fdab734-1e64-498d-8d3b-606e7f64d224',
label: i18nLabel(
msg({ message: `Unsnooze`, context: 'commandMenuItem.label' }),
),
icon: 'IconZzzOff',
isPinned: true,
position: 76,
shortLabel: i18nLabel(
msg({ message: `Unsnooze`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and permissionFlags.AI and featureFlags.IS_AI_CHAT_INBOX_ENABLED and noneDefined(selectedRecords, "deletedAt") and everyEquals(selectedRecords, "inboxStatus.scope", "SNOOZED")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.agentChatThread.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.REOPEN_AI_CHAT,
hotKeys: ['E'],
},
snoozeAiChat: {
universalIdentifier: '9fbb747d-2e09-4822-a1e5-6792d0a28fb7',
label: i18nLabel(
msg({ message: `Snooze`, context: 'commandMenuItem.label' }),
),
icon: 'IconZzz',
isPinned: true,
position: 77,
shortLabel: i18nLabel(
msg({ message: `Snooze`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and permissionFlags.AI and featureFlags.IS_AI_CHAT_INBOX_ENABLED and noneDefined(selectedRecords, "deletedAt") and everyDefined(selectedRecords, "inboxStatus") and noneEquals(selectedRecords, "inboxStatus.scope", "SNOOZED")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.agentChatThread.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SNOOZE_AI_CHAT,
hotKeys: ['H'],
},
subscribeToAiChat: {
universalIdentifier: 'bf5345f0-14d3-438b-ab02-1daa5386743f',
label: i18nLabel(
msg({ message: `Subscribe`, context: 'commandMenuItem.label' }),
),
icon: 'IconBell',
isPinned: false,
position: 78,
shortLabel: i18nLabel(
msg({ message: `Subscribe`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and permissionFlags.AI and featureFlags.IS_AI_CHAT_INBOX_ENABLED and noneDefined(selectedRecords, "deletedAt") and everyEquals(selectedRecords, "inboxStatus.isSubscribed", false)',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.agentChatThread.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SUBSCRIBE_TO_AI_CHAT,
hotKeys: null,
},
unsubscribeFromAiChat: {
universalIdentifier: '31dbf857-d442-447a-be76-e4eb8ef34fcf',
label: i18nLabel(
msg({ message: `Unsubscribe`, context: 'commandMenuItem.label' }),
),
icon: 'IconBellOff',
isPinned: false,
position: 79,
shortLabel: i18nLabel(
msg({ message: `Unsubscribe`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and permissionFlags.AI and featureFlags.IS_AI_CHAT_INBOX_ENABLED and noneDefined(selectedRecords, "deletedAt") and everyEquals(selectedRecords, "inboxStatus.isSubscribed", true) and noneEquals(selectedRecords, "inboxStatus.isAssignedToMe", true)',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.agentChatThread.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.UNSUBSCRIBE_FROM_AI_CHAT,
hotKeys: null,
},
assignAiChat: {
universalIdentifier: '8e5a5bf5-fc62-4fe8-a419-a01051306668',
label: i18nLabel(
msg({ message: `Assign`, context: 'commandMenuItem.label' }),
),
icon: 'IconUsers',
isPinned: true,
position: 80,
shortLabel: i18nLabel(
msg({ message: `Assign`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and permissionFlags.AI and featureFlags.IS_AI_CHAT_INBOX_ENABLED and noneDefined(selectedRecords, "deletedAt") and noneEquals(selectedRecords, "recordPermissions.canUpdate", false)',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.agentChatThread.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.ASSIGN_AI_CHAT,
hotKeys: ['A'],
},
// Chats have their own Share item; it is a system object, so this one never shows there
shareAnyRecord: {
universalIdentifier: '1e703e2c-9f3a-4a23-8448-107b01be509c',
label: i18nLabel(
msg({
message: `Share {objectLabelSingular}`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconShare',
isPinned: false,
position: 3,
shortLabel: i18nLabel(
msg({ message: `Share`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and featureFlags.IS_RECORD_LEVEL_SHARING_ENABLED and not objectMetadataItem.isSystem and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SHARE_RECORD,
hotKeys: null,
},
replyToEmailThread: {
universalIdentifier: '8f015cbd-c764-434e-a6c6-bb7581b4be44',
label: i18nLabel(
msg({ message: `Reply`, context: 'commandMenuItem.label' }),
),
icon: 'IconArrowBackUp',
isPinned: true,
position: 45,
shortLabel: i18nLabel(
msg({ message: `Reply`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression: 'numberOfSelectedRecords == 1',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.messageThread.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.REPLY_TO_EMAIL_THREAD,
hotKeys: null,
},
composeEmail: {
universalIdentifier: '96457c5a-b028-4d48-94e3-27f4c41296b8',
label: i18nLabel(
msg({ message: `Compose Email`, context: 'commandMenuItem.label' }),
),
icon: 'IconMail',
isPinned: false,
position: 46,
shortLabel: i18nLabel(
msg({ message: `Compose`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.SEND_EMAIL_TOOL',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.COMPOSE_EMAIL,
hotKeys: null,
},
composeCampaign: {
universalIdentifier: '30473656-e7cb-42e0-b198-6c4e8b906106',
label: i18nLabel(
msg({ message: `Compose Campaign`, context: 'commandMenuItem.label' }),
),
icon: 'IconSend',
isPinned: false,
position: 66,
shortLabel: i18nLabel(
msg({ message: `Campaign`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: null,
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.COMPOSE_CAMPAIGN,
hotKeys: null,
},
composeCampaignPinned: {
universalIdentifier: '7ad6f0c7-ac02-4062-b5cf-1f36e1664bc8',
label: i18nLabel(
msg({ message: `Create Campaign`, context: 'commandMenuItem.label' }),
),
icon: 'IconPlus',
isPinned: true,
position: 67,
shortLabel: i18nLabel(
msg({ message: `Create`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL_OBJECT_CONTEXT,
conditionalAvailabilityExpression: 'pageType == "INDEX_PAGE"',
conditionalPinnedExpression: 'numberOfSelectedRecords == 0',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.messageCampaign.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.COMPOSE_CAMPAIGN,
hotKeys: null,
},
sendMessageCampaign: {
universalIdentifier: 'b08f4ccd-070b-460f-a4b6-6d0c14f1c44d',
label: i18nLabel(
msg({ message: `Send Campaign`, context: 'commandMenuItem.label' }),
),
icon: 'IconSend',
isPinned: true,
position: 68,
shortLabel: i18nLabel(
msg({ message: `Send`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and (everyEquals(selectedRecords, "status", "DRAFT") or everyEquals(selectedRecords, "status", "SCHEDULED")) and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.messageCampaign.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SEND_MESSAGE_CAMPAIGN,
hotKeys: null,
},
sendMessageCampaignTest: {
universalIdentifier: 'a6e6fd08-2c75-4d43-8795-1baafbac165e',
label: i18nLabel(
msg({ message: `Send Test Email`, context: 'commandMenuItem.label' }),
),
icon: 'IconMail',
isPinned: true,
position: 69,
shortLabel: i18nLabel(
msg({ message: `Test`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and (everyEquals(selectedRecords, "status", "DRAFT") or everyEquals(selectedRecords, "status", "SCHEDULED")) and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.messageCampaign.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.SEND_MESSAGE_CAMPAIGN_TEST,
hotKeys: null,
},
cancelMessageCampaign: {
universalIdentifier: 'b266ca2d-f6bb-4c45-aace-a44d5099f6af',
label: i18nLabel(
msg({ message: `Cancel Campaign`, context: 'commandMenuItem.label' }),
),
icon: 'IconX',
isPinned: true,
position: 71,
shortLabel: i18nLabel(
msg({ message: `Cancel`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and (everyEquals(selectedRecords, "status", "SCHEDULED") or everyEquals(selectedRecords, "status", "SENDING")) and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.messageCampaign.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.CANCEL_MESSAGE_CAMPAIGN,
hotKeys: null,
},
duplicateMessageCampaign: {
universalIdentifier: 'b85e34bd-abfa-40b5-91c0-e5d64b586341',
label: i18nLabel(
msg({ message: `Duplicate Campaign`, context: 'commandMenuItem.label' }),
),
icon: 'IconCopy',
isPinned: true,
position: 72,
shortLabel: i18nLabel(
msg({ message: `Duplicate`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and noneDefined(selectedRecords, "deletedAt") and objectPermissions.canUpdateObjectRecords',
// Pinned only on sent campaigns, the ones people re-run; drafts keep it in the menu
conditionalPinnedExpression:
'everyEquals(selectedRecords, "status", "SENT")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.messageCampaign.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.DUPLICATE_MESSAGE_CAMPAIGN,
hotKeys: null,
},
emailBlockSettings: {
universalIdentifier: '5c8a2f41-97be-4f3d-9a46-2f18d17f30a2',
label: i18nLabel(
msg({ message: `Add Block`, context: 'commandMenuItem.label' }),
),
icon: 'IconPlus',
isPinned: true,
position: 70,
shortLabel: i18nLabel(
msg({ message: `Add Block`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'pageType == "RECORD_PAGE" and numberOfSelectedRecords == 1 and everyEquals(selectedRecords, "status", "DRAFT") and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.messageCampaign.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.EMAIL_BLOCK_SETTINGS,
hotKeys: null,
},
emailPageStyle: {
universalIdentifier: 'c1c2d63f-7ec3-46aa-8a79-414cefb42705',
label: i18nLabel(
msg({ message: `Email Style`, context: 'commandMenuItem.label' }),
),
icon: 'IconPaint',
isPinned: false,
position: 70.5,
shortLabel: i18nLabel(
msg({ message: `Email Style`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'pageType == "RECORD_PAGE" and numberOfSelectedRecords == 1 and everyEquals(selectedRecords, "status", "DRAFT") and noneDefined(selectedRecords, "deletedAt")',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.messageCampaign.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.EMAIL_PAGE_STYLE,
hotKeys: null,
},
goToSettings: {
universalIdentifier: 'ef9aba44-0068-453e-930a-f8c182af18ee',
label: i18nLabel(
msg({ message: `Go to Settings`, context: 'commandMenuItem.label' }),
),
icon: 'IconSettings',
isPinned: false,
position: 47,
shortLabel: i18nLabel(
msg({ message: `Settings`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: null,
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: ['G', 'S'],
payload: { path: '/settings/profile' },
},
goToSettingsExperience: {
universalIdentifier: 'bceb0328-c018-48ba-80d8-a1a97dc0a8ba',
label: i18nLabel(
msg({
message: `Go to Experience Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconColorSwatch',
isPinned: false,
position: 48,
shortLabel: i18nLabel(
msg({ message: `Experience`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: null,
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/experience' },
},
goToSettingsAccounts: {
universalIdentifier: '447a65cc-8535-408e-9c48-db24affb7530',
label: i18nLabel(
msg({
message: `Go to Accounts Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconAt',
isPinned: false,
position: 49,
shortLabel: i18nLabel(
msg({ message: `Accounts`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.CONNECTED_ACCOUNTS',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/accounts' },
},
goToSettingsAccountsEmails: {
universalIdentifier: '4feab22c-165f-4d13-81ca-c9eb6082ca50',
label: i18nLabel(
msg({
message: `Go to Emails Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconMail',
isPinned: false,
position: 50,
shortLabel: i18nLabel(
msg({ message: `Emails`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.CONNECTED_ACCOUNTS',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/accounts/emails' },
},
goToSettingsAccountsCalendars: {
universalIdentifier: '3267ec0e-9dee-4d9b-8f1b-6005bfd90202',
label: i18nLabel(
msg({
message: `Go to Calendars Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconCalendarEvent',
isPinned: false,
position: 51,
shortLabel: i18nLabel(
msg({ message: `Calendars`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.CONNECTED_ACCOUNTS',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/accounts/calendars' },
},
goToSettingsGeneral: {
universalIdentifier: 'ad68e516-96ea-455a-a838-c59788e88c23',
label: i18nLabel(
msg({
message: `Go to General Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconSettings',
isPinned: false,
position: 52,
shortLabel: i18nLabel(
msg({ message: `General`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.WORKSPACE',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/general' },
},
goToSettingsObjects: {
universalIdentifier: '9302bfeb-f6cd-4858-ab5b-5f70f4d358c4',
label: i18nLabel(
msg({
message: `Go to Data Model Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconHierarchy',
isPinned: false,
position: 53,
shortLabel: i18nLabel(
msg({ message: `Data Model`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.DATA_MODEL',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/objects' },
},
goToSettingsMembers: {
universalIdentifier: 'fb4d9f1b-5b13-49d9-8353-80041719d411',
label: i18nLabel(
msg({
message: `Go to Members Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconUsers',
isPinned: false,
position: 54,
shortLabel: i18nLabel(
msg({ message: `Members`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.WORKSPACE_MEMBERS',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/members' },
},
goToSettingsRoles: {
universalIdentifier: '4050f307-c592-4c9f-ad91-89cde330fbf7',
label: i18nLabel(
msg({
message: `Go to Roles Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconLock',
isPinned: false,
position: 55,
shortLabel: i18nLabel(
msg({ message: `Roles`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.WORKSPACE_MEMBERS',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/members#roles' },
},
goToSettingsDomains: {
universalIdentifier: '2d071684-fb5e-4222-b560-4c7ab2597fb4',
label: i18nLabel(
msg({
message: `Go to Domains Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconWorld',
isPinned: false,
position: 56,
shortLabel: i18nLabel(
msg({ message: `Domains`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.WORKSPACE',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/domains' },
},
goToSettingsBilling: {
universalIdentifier: 'f46a0fb9-14e9-4d48-801d-c33bdd543f74',
label: i18nLabel(
msg({
message: `Go to Billing Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconCreditCard',
isPinned: false,
position: 57,
shortLabel: i18nLabel(
msg({ message: `Billing`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.WORKSPACE',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/billing' },
},
goToSettingsApiWebhooks: {
universalIdentifier: 'ed2c2fde-1e7a-4a42-ba63-221eaa7c9759',
label: i18nLabel(
msg({
message: `Go to Developers Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconCode',
isPinned: false,
position: 58,
shortLabel: i18nLabel(
msg({ message: `Developers`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.API_KEYS_AND_WEBHOOKS',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/developers' },
},
goToSettingsApplications: {
universalIdentifier: '44db6d7a-79ac-485e-b3da-da8776bd7777',
label: i18nLabel(
msg({ message: `Go to Apps Settings`, context: 'commandMenuItem.label' }),
),
icon: 'IconApps',
isPinned: false,
position: 59,
shortLabel: i18nLabel(
msg({ message: `Apps`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.APPLICATIONS',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/applications' },
},
goToSettingsAI: {
universalIdentifier: '3eaec228-809d-452d-b5ef-7b777398c538',
label: i18nLabel(
msg({ message: `Go to AI Settings`, context: 'commandMenuItem.label' }),
),
icon: 'IconSparkles',
isPinned: false,
position: 60,
shortLabel: i18nLabel(
msg({ message: `AI`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.WORKSPACE',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/ai' },
},
goToSettingsSecurity: {
universalIdentifier: '358e69b2-0789-44e2-add7-bdef68413be8',
label: i18nLabel(
msg({
message: `Go to Security Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconKey',
isPinned: false,
position: 61,
shortLabel: i18nLabel(
msg({ message: `Security`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: 'permissionFlags.SECURITY',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/security' },
},
goToSettingsAdminPanel: {
universalIdentifier: 'dd22798b-fca6-42af-ba3b-0d48f263afbd',
label: i18nLabel(
msg({
message: `Go to Admin Panel Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconServer',
isPinned: false,
position: 62,
shortLabel: i18nLabel(
msg({ message: `Admin Panel`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression:
'canImpersonate or canAccessFullAdminPanel',
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/admin-panel' },
},
goToSettingsUpdates: {
universalIdentifier: '5d1ba354-0090-4a42-9a43-601461b26068',
label: i18nLabel(
msg({
message: `Go to Community Settings`,
context: 'commandMenuItem.label',
}),
),
icon: 'IconUsers',
isPinned: false,
position: 63,
shortLabel: i18nLabel(
msg({ message: `Community`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL,
conditionalAvailabilityExpression: null,
availabilityObjectMetadataUniversalIdentifier: null,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.NAVIGATION,
hotKeys: null,
payload: { path: '/settings/community' },
},
composeEmailToPerson: {
universalIdentifier: 'f01d4b8b-2b4e-4ae0-9c6f-0b9a9a3e5b21',
label: i18nLabel(
msg({ message: `Send Email`, context: 'commandMenuItem.label' }),
),
icon: 'IconMail',
isPinned: true,
position: 64,
shortLabel: i18nLabel(
msg({ message: `Send Email`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords >= 1 and permissionFlags.SEND_EMAIL_TOOL',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.person.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.COMPOSE_EMAIL,
hotKeys: null,
},
composeEmailToCompany: {
universalIdentifier: 'a76d3ab8-4c3a-4e5d-8a4a-1f5d6e7f8a90',
label: i18nLabel(
msg({ message: `Send Email`, context: 'commandMenuItem.label' }),
),
icon: 'IconMail',
isPinned: true,
position: 65,
shortLabel: i18nLabel(
msg({ message: `Send Email`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and permissionFlags.SEND_EMAIL_TOOL',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.company.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.COMPOSE_EMAIL,
hotKeys: null,
},
composeEmailToOpportunity: {
universalIdentifier: 'b3e7c9f2-5d6e-4f7a-8b9c-0d1e2f3a4b5c',
label: i18nLabel(
msg({ message: `Send Email`, context: 'commandMenuItem.label' }),
),
icon: 'IconMail',
isPinned: true,
position: 66,
shortLabel: i18nLabel(
msg({ message: `Send Email`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and permissionFlags.SEND_EMAIL_TOOL',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.opportunity.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.COMPOSE_EMAIL,
hotKeys: null,
},
duplicateMessageList: {
universalIdentifier: '19b519d4-a871-4fc2-980c-f5d6c92c6962',
label: i18nLabel(
msg({ message: `Duplicate List`, context: 'commandMenuItem.label' }),
),
icon: 'IconCopyPlus',
isPinned: true,
position: 71,
shortLabel: i18nLabel(
msg({ message: `Duplicate`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'numberOfSelectedRecords == 1 and noneDefined(selectedRecords, "deletedAt") and objectPermissions.canUpdateObjectRecords',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.messageList.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.DUPLICATE_MESSAGE_LIST,
hotKeys: null,
},
addToMessageList: {
universalIdentifier: '22bc988d-c499-43b3-a870-d62a42efc6bb',
label: i18nLabel(
msg({ message: `Add to List`, context: 'commandMenuItem.label' }),
),
icon: 'IconUserPlus',
isPinned: false,
position: 73,
shortLabel: i18nLabel(
msg({ message: `Add to List`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.RECORD_SELECTION,
conditionalAvailabilityExpression:
'targetObjectWritePermissions.messageListMember and numberOfSelectedRecords >= 1 and not hasAnySoftDeleteFilterOnView and (isSelectAll or noneDefined(selectedRecords, "deletedAt"))',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.person.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.ADD_TO_MESSAGE_LIST,
hotKeys: null,
},
addViewToMessageList: {
universalIdentifier: '679bd5df-324f-4d9c-becc-370d824f4db0',
label: i18nLabel(
msg({ message: `Add View to List`, context: 'commandMenuItem.label' }),
),
icon: 'IconUserPlus',
isPinned: false,
position: 74,
shortLabel: i18nLabel(
msg({ message: `Add to List`, context: 'commandMenuItem.shortLabel' }),
),
availabilityType: CommandMenuItemAvailabilityType.GLOBAL_OBJECT_CONTEXT,
conditionalAvailabilityExpression:
'targetObjectWritePermissions.messageListMember and pageType == "INDEX_PAGE" and not hasAnySoftDeleteFilterOnView',
availabilityObjectMetadataUniversalIdentifier:
STANDARD_OBJECTS.person.universalIdentifier,
frontComponentUniversalIdentifier: null,
engineComponentKey: EngineComponentKey.ADD_VIEW_TO_MESSAGE_LIST,
hotKeys: null,
},
} as const;