teableio/teable

View on GitHub
apps/nestjs-backend/test/data-helpers/caces/view-default-share-meta.ts

Summary

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

export const VIEW_DEFAULT_SHARE_META: {
  viewType: ViewType;
  defaultShareMeta?: IShareViewMeta;
}[] = [
  {
    viewType: ViewType.Form,
    defaultShareMeta: {
      submit: {
        allow: true,
      },
    },
  },
  {
    viewType: ViewType.Kanban,
    defaultShareMeta: {
      includeRecords: true,
    },
  },
  {
    viewType: ViewType.Grid,
    defaultShareMeta: {
      includeRecords: true,
    },
  },
];