UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

29 lines (28 loc) 807 B
import type { Knex } from 'knex'; export type Webhook = { id: number; name: string; method: 'GET' | 'POST'; url: string; status: 'active' | 'inactive'; data: boolean; actions: string[]; collections: string[]; headers: WebhookHeader[]; }; export type WebhookHeader = { header: string; value: string; }; /** * 0. Identify and persist which webhooks were active before deprecation * 1. Migrate existing webhooks over to identically behaving Flows * 2. Disable existing webhooks * 3. Dont drop webhooks yet */ export declare function up(knex: Knex): Promise<void>; /** * Dont completely drop Webhooks yet. * Lets preserve the data and drop them in the next release to be extra safe with users data. */ export declare function down(knex: Knex): Promise<void>;