teableio/teable

View on GitHub
apps/nestjs-backend/src/features/view/constant.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ViewType } from '@teable/core';
import type { IShareViewMeta } from '@teable/core';

export const ROW_ORDER_FIELD_PREFIX = '__row';

export const defaultShareMetaMap: Record<ViewType, IShareViewMeta | undefined> = {
  [ViewType.Form]: {
    submit: {
      allow: true,
    },
  },
  [ViewType.Kanban]: {
    includeRecords: true,
  },
  [ViewType.Grid]: {
    includeRecords: true,
  },
  [ViewType.Calendar]: {
    includeRecords: true,
  },
  [ViewType.Gallery]: {
    includeRecords: true,
  },
  [ViewType.Gantt]: {
    includeRecords: true,
  },
  [ViewType.Plugin]: undefined,
};