(config: Record<string, string[]>, params: any)
| 248 | type WebhookListData = z.infer<typeof WebhookListDataSchema>; |
| 249 | |
| 250 | const getSpecification = (config: Record<string, string[]>, params: any): WebhookSpecification => { |
| 251 | return { |
| 252 | filters: { |
| 253 | dataTypes: config.dataTypes as WebhookDataType[], |
| 254 | changeTypes: config.changeTypes |
| 255 | ? (config.changeTypes as WebhookChangeType[]) |
| 256 | : ["add", "remove", "update"], |
| 257 | fromSources: (config.fromSources ?? [ |
| 258 | "client", |
| 259 | "anonymousUser", |
| 260 | "formSubmission", |
| 261 | ]) as WebhookFromSource[], |
| 262 | recordChangeScope: params?.tableId, |
| 263 | }, |
| 264 | }; |
| 265 | }; |
| 266 | |
| 267 | export function createWebhookSource( |
| 268 | integration: Airtable |
no outgoing calls
no test coverage detected
searching dependent graphs…