MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / getSpecification

Function getSpecification

integrations/airtable/src/webhooks.ts:250–265  ·  view source on GitHub ↗
(config: Record<string, string[]>, params: any)

Source from the content-addressed store, hash-verified

248type WebhookListData = z.infer<typeof WebhookListDataSchema>;
249
250const 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
267export function createWebhookSource(
268 integration: Airtable

Callers 1

createWebhookSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…