teableio/teable

View on GitHub
packages/core/src/models/notification/action-trigger.schema.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { z } from 'zod';

export const tableActionKeys = z.enum([
  'addRecord',
  'setRecord',
  'deleteRecord',
  'addField',
  'setField',
]);

export const viewActionKeys = z.enum([
  'applyViewFilter',
  'applyViewGroup',
  'applyViewStatisticFunc',
  'showViewField',
]);

export const actionTriggerBufferSchema = tableActionKeys;

export type ITableActionKey = z.infer<typeof actionTriggerBufferSchema>;

export type IViewActionKey = z.infer<typeof viewActionKeys>;