* Parses the cursor format: "offset: "
(cursor?: string)
| 67 | * Parses the cursor format: "offset:<airtable_offset>" |
| 68 | */ |
| 69 | function parseCursor(cursor?: string): string | undefined { |
| 70 | if (!cursor) return undefined |
| 71 | if (cursor.startsWith('offset:')) return cursor.slice(7) |
| 72 | return cursor |
| 73 | } |
| 74 | |
| 75 | export const airtableConnector: ConnectorConfig = { |
| 76 | ...airtableConnectorMeta, |