Skip to content

The open alternative to Salesforce, designed for AI.

866 B
Raw Blame
import { defineApplication, FieldType } from 'twenty-sdk/define';

import {
  BACKFILL_BATCH_SIZE_ENV_VAR_NAME,
  DEFAULT_BACKFILL_BATCH_SIZE,
} from 'src/constants/backfill';
import {
  APP_DESCRIPTION,
  APP_DISPLAY_NAME,
  APPLICATION_UNIVERSAL_IDENTIFIER,
} from 'src/constants/universal-identifiers';

export default defineApplication({
  universalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
  logo: 'public/logo.png',
  author: 'Twenty',
  category: 'Productivity',
  galleryImages: ['public/gallery/cover.png'],
  displayName: APP_DISPLAY_NAME,
  description: APP_DESCRIPTION,
  serverVariables: {
    [BACKFILL_BATCH_SIZE_ENV_VAR_NAME]: {
      description: `How many records the last-contact backfill reads and writes per batch. Defaults to ${DEFAULT_BACKFILL_BATCH_SIZE} when unset.`,
      isSecret: false,
      type: FieldType.NUMBER,
    },
  },
});