@nangohq/types
Version:
Types used in Nango applications
13 lines (12 loc) • 435 B
TypeScript
import type { SetOptional } from 'type-fest';
import type { Timestamps } from '../db';
import type { HTTP_METHOD } from '../nangoYaml';
export interface DBSyncEndpoint extends Timestamps {
id: number;
sync_config_id: number;
method: HTTP_METHOD;
path: string;
model: string | null;
group_name: string | null;
}
export type DBSyncEndpointCreate = SetOptional<Omit<DBSyncEndpoint, 'id'>, 'model' | 'group_name'>;