Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Move link.clicked into workspace-level webhook triggers

Kiran K08e94bd6339f
diff --git a/apps/web/lib/integrations/common/ui/configure-webhook.tsx b/apps/web/lib/integrations/common/ui/configure-webhook.tsx
index 9b6df7fa70..db63b9a9af 100644
--- a/apps/web/lib/integrations/common/ui/configure-webhook.tsx
+++ b/apps/web/lib/integrations/common/ui/configure-webhook.tsx
@@ -118,7 +118,6 @@ export function ConfigureWebhook({
[
...WORKSPACE_LEVEL_WEBHOOK_TRIGGERS,
...(defaultProgramId ? PROGRAM_LEVEL_WEBHOOK_TRIGGERS : []),
- LINK_CLICK_WEBHOOK_TRIGGER,
].filter((trigger) => supportedEvents.includes(trigger)),
[defaultProgramId, supportedEvents],
);
diff --git a/apps/web/lib/webhook/constants.ts b/apps/web/lib/webhook/constants.ts
index 2fe8c84e79..4040bbf31a 100644
--- a/apps/web/lib/webhook/constants.ts
+++ b/apps/web/lib/webhook/constants.ts
@@ -14,6 +14,7 @@ export const WORKSPACE_LEVEL_WEBHOOK_TRIGGERS = [
"link.created",
"link.updated",
"link.deleted",
+ "link.clicked",
"lead.created",
"sale.created",
] as const;
@@ -30,7 +31,6 @@ export const PROGRAM_LEVEL_WEBHOOK_TRIGGERS = [
export const WEBHOOK_TRIGGERS = [
...WORKSPACE_LEVEL_WEBHOOK_TRIGGERS,
...PROGRAM_LEVEL_WEBHOOK_TRIGGERS,
- LINK_CLICK_WEBHOOK_TRIGGER,
] as const;
export const WEBHOOK_TRIGGER_DESCRIPTIONS: Record<WebhookTrigger, string> = {
diff --git a/apps/web/ui/webhooks/add-edit-webhook-form.tsx b/apps/web/ui/webhooks/add-edit-webhook-form.tsx
index 39b5dfdf73..f226a56359 100644
--- a/apps/web/ui/webhooks/add-edit-webhook-form.tsx
+++ b/apps/web/ui/webhooks/add-edit-webhook-form.tsx
@@ -173,7 +173,6 @@ export default function AddEditWebhookForm({
EXTERNAL_PAYOUTS_PROGRAM_IDS.includes(defaultProgramId),
)
: []),
- LINK_CLICK_WEBHOOK_TRIGGER,
],
[defaultProgramId],
);