@flatfile/plugin-record-hook
Advanced tools
Comparing version 1.11.2 to 2.0.0
@@ -9,3 +9,3 @@ import { FlatfileRecord } from '@flatfile/hooks'; | ||
} | ||
declare const RecordHook: (event: FlatfileEvent, handler: (record: FlatfileRecord, event?: FlatfileEvent) => any | Promise<any>, options?: RecordHookOptions) => Promise<void>; | ||
declare const RecordHook: (event: FlatfileEvent, handler: (record: FlatfileRecord, event: FlatfileEvent) => any | Promise<any>, options?: RecordHookOptions) => Promise<void>; | ||
interface BulkRecordHookOptions { | ||
@@ -16,7 +16,7 @@ chunkSize?: number; | ||
} | ||
declare const BulkRecordHook: (event: FlatfileEvent, handler: (records: FlatfileRecord[], event?: FlatfileEvent) => any | Promise<any>, options?: BulkRecordHookOptions) => Promise<void>; | ||
declare const BulkRecordHook: (event: FlatfileEvent, handler: (records: FlatfileRecord[], event: FlatfileEvent) => any | Promise<any>, options?: BulkRecordHookOptions) => Promise<void>; | ||
declare const recordHookPlugin: (sheetSlug: string, callback: (record: FlatfileRecord, event?: FlatfileEvent) => any | Promise<any>, options?: RecordHookOptions) => (listener: FlatfileListener) => void; | ||
declare const bulkRecordHookPlugin: (sheetSlug: string, callback: (records: FlatfileRecord[], event?: FlatfileEvent) => any | Promise<any>, options?: BulkRecordHookOptions) => (listener: FlatfileListener) => void; | ||
declare const recordHookPlugin: (sheetSlug: string, callback: (record: FlatfileRecord, event: FlatfileEvent) => any | Promise<any>, options?: RecordHookOptions) => (listener: FlatfileListener) => void; | ||
declare const bulkRecordHookPlugin: (sheetSlug: string, callback: (records: FlatfileRecord[], event: FlatfileEvent) => any | Promise<any>, options?: BulkRecordHookOptions) => (listener: FlatfileListener) => void; | ||
export { BulkRecordHook, type BulkRecordHookOptions, RecordHook, type RecordHookOptions, bulkRecordHookPlugin as bulkRecordHook, bulkRecordHookPlugin, recordHookPlugin as recordHook, recordHookPlugin }; |
{ | ||
"name": "@flatfile/plugin-record-hook", | ||
"version": "1.11.2", | ||
"version": "2.0.0", | ||
"url": "https://github.com/FlatFilers/flatfile-plugins/tree/main/plugins/record-hook", | ||
@@ -5,0 +5,0 @@ "description": "A plugin for running custom logic on individual data records in Flatfile.", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
124560