- move webhook triggers into `entity-events-to-db.listener.ts` - refactor event management - add a `@OnDatabaseEvent` decorator to manage database events - add updatedFields in updated events - update openApi webhooks docs - update zapier integration
10 lines
312 B
TypeScript
10 lines
312 B
TypeScript
import { DatabaseEventAction } from 'src/engine/api/graphql/graphql-query-runner/enums/database-event-action';
|
|
|
|
export const checkStringIsDatabaseEventAction = (
|
|
value: string,
|
|
): value is DatabaseEventAction => {
|
|
return Object.values(DatabaseEventAction).includes(
|
|
value as DatabaseEventAction,
|
|
);
|
|
};
|