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.

Update webhook sample events

Steven Tey9cd0b3232dff
diff --git a/apps/web/lib/webhook/sample-events/lead.json b/apps/web/lib/webhook/sample-events/lead-created.json
similarity index 100%
rename from apps/web/lib/webhook/sample-events/lead.json
rename to apps/web/lib/webhook/sample-events/lead-created.json
diff --git a/apps/web/lib/webhook/sample-events/click.json b/apps/web/lib/webhook/sample-events/link-clicked.json
similarity index 100%
rename from apps/web/lib/webhook/sample-events/click.json
rename to apps/web/lib/webhook/sample-events/link-clicked.json
diff --git a/apps/web/lib/webhook/sample-events/payload.ts b/apps/web/lib/webhook/sample-events/payload.ts
index 23f5ceff90..190a7398f2 100644
--- a/apps/web/lib/webhook/sample-events/payload.ts
+++ b/apps/web/lib/webhook/sample-events/payload.ts
@@ -1,15 +1,15 @@
-import click from "./click.json";
-import lead from "./lead.json";
+import leadCreated from "./lead-created.json";
+import linkClicked from "./link-clicked.json";
import linkCreated from "./link-created.json";
import linkDeleted from "./link-deleted.json";
import linkUpdated from "./link-updated.json";
-import sale from "./sale.json";
+import saleCreated from "./sale-created.json";
export const samplePayload = {
"link.created": linkCreated,
"link.updated": linkUpdated,
"link.deleted": linkDeleted,
- "link.clicked": click,
- "lead.created": lead,
- "sale.created": sale,
+ "link.clicked": linkClicked,
+ "lead.created": leadCreated,
+ "sale.created": saleCreated,
};
diff --git a/apps/web/lib/webhook/sample-events/sale.json b/apps/web/lib/webhook/sample-events/sale-created.json
similarity index 100%
rename from apps/web/lib/webhook/sample-events/sale.json
rename to apps/web/lib/webhook/sample-events/sale-created.json