The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update sample events to reflect new schema
Kiran K4ca601657e74
diff --git a/apps/web/lib/webhook/sample-events/click.json b/apps/web/lib/webhook/sample-events/click.jsonindex 88a08b7976..b4fb85c3b1 100644--- a/apps/web/lib/webhook/sample-events/click.json+++ b/apps/web/lib/webhook/sample-events/click.json@@ -1,35 +1,61 @@{- "id": "evt_0HInCovrWBDmIQBAsCcY1xZlK",+ "id": "evt_b9ywgxWqai2glUpCQjclB17kM","event": "link.clicked",- "createdAt": "2024-08-26T16:37:15.889Z",+ "createdAt": "2024-08-30T10:16:13.149Z","data": {- "clickId": "rgxOhhIKj8CEmyxn",- "aliasLinkId": "",- "url": "https://suretriggers.com/docs/how-to-set-up-webhooks-in-postmark/",+ "timestamp": "2024-08-30T10:16:12.124Z",+ "clickId": "d0UtZqE0BZuBPrJS",+ "url": "https://github.com/dubinc/dub","ip": "63.141.57.109","continent": "NA","country": "US","city": "San Francisco",- "region": "CA",- "latitude": "37.7695",- "longitude": "-122.385","device": "Desktop",- "deviceVendor": "Apple",- "deviceModel": "Macintosh","browser": "Chrome",- "browserVersion": "127.0.0.0",- "engine": "Blink",- "engineVersion": "127.0.0.0","os": "Mac OS",- "osVersion": "10.15.7",- "cpuArchitecture": "Unknown","ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36","bot": false,"qr": false,"referer": "(direct)",- "refererUrl": "(direct)",- "timestamp": "2024-08-26T16:37:14.843Z",- "identityHash": "9922ba24fa6bba66b4a7dda0a5610252e6384be8ae4a88420289e49b14c35770",- "link": { "id": "cm0aznkw30003139wxprw69nx" }+ "link": {+ "id": "cm0faqkyn0001txvfwjfeq7gl",+ "domain": "dub.sh",+ "key": "79ys3WA",+ "externalId": null,+ "url": "https://github.com/dubinc/dub",+ "trackConversion": true,+ "archived": false,+ "expiresAt": null,+ "expiredUrl": null,+ "password": null,+ "proxy": false,+ "title": null,+ "description": null,+ "image": null,+ "video": null,+ "rewrite": false,+ "doIndex": false,+ "ios": null,+ "android": null,+ "geo": null,+ "publicStats": false,+ "comments": null,+ "shortLink": "https://dub.sh/79ys3WA",+ "qrCode": "https://api.dub.co/qr?url=https://dub.sh/79ys3WA?qr=1",+ "utm_source": null,+ "utm_medium": null,+ "utm_campaign": null,+ "utm_term": null,+ "utm_content": null,+ "userId": "cm022rkcw0000ikt14mscg9sg",+ "workspaceId": "ws_cm022sis60003ikt1syy7kfhl",+ "clicks": 11,+ "lastClicked": "2024-08-30T07:45:09.000Z",+ "leads": 6,+ "sales": 10,+ "saleAmount": 200000,+ "createdAt": "2024-08-29T13:03:59.098Z",+ "updatedAt": "2024-08-30T10:16:12.126Z"+ }}}diff --git a/apps/web/lib/webhook/sample-events/lead.json b/apps/web/lib/webhook/sample-events/lead.jsonindex 2f28d1022f..459ce0c7d7 100644--- a/apps/web/lib/webhook/sample-events/lead.json+++ b/apps/web/lib/webhook/sample-events/lead.json@@ -1,44 +1,69 @@{- "id": "evt_LiTGZBn26j8XDpfbVtZyEWOtx",+ "id": "evt_P343bmyae40ALQYr5HT4vRXRd","event": "lead.created",- "createdAt": "2024-08-26T17:50:25.001Z",+ "createdAt": "2024-08-30T09:53:50.343Z","data": {"eventName": "Sign up",- "customerId": "3",- "customerName": "Determined Apricot Wombat",- "customerEmail": null,- "customerAvatar": null,+ "customer": {+ "id": "oU5P0SqI8fpwx5bxw1",+ "name": "John",+ "email": "[email protected]",+ "avatar": "https://example.com/john.jpeg"+ },"click": {- "clickId": "xCl3mETSm37wndlM",- "url": "https://github.com/pilcrowOnPaper/astro-email-password-2fa?ref=facebook",+ "clickId": "d0UtZqE0BZuBPrJS",+ "url": "https://github.com/dubinc/dub","ip": "63.141.57.109","continent": "NA","country": "US","city": "San Francisco",- "region": "CA",- "latitude": "37.7695",- "longitude": "-122.385","device": "Desktop",- "deviceVendor": "Apple",- "deviceModel": "Macintosh","browser": "Chrome",- "browserVersion": "127.0.0.0",- "engine": "Blink",- "engineVersion": "127.0.0.0","os": "Mac OS",- "osVersion": "10.15.7",- "cpuArchitecture": "Unknown","ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36","bot": false,"qr": false,- "referer": "(direct)",- "refererUrl": "(direct)"+ "referer": "(direct)"},"link": {- "id": "cm0atl8tk0001k15k4691jyga",- "externalId": null,+ "id": "cm0faqkyn0001txvfwjfeq7gl","domain": "dub.sh",- "key": "DUc7ENl"+ "key": "79ys3WA",+ "externalId": null,+ "url": "https://github.com/dubinc/dub",+ "trackConversion": true,+ "archived": false,+ "expiresAt": null,+ "expiredUrl": null,+ "password": null,+ "proxy": false,+ "title": null,+ "description": null,+ "image": null,+ "video": null,+ "rewrite": false,+ "doIndex": false,+ "ios": null,+ "android": null,+ "geo": null,+ "publicStats": false,+ "comments": null,+ "shortLink": "https://dub.sh/79ys3WA",+ "qrCode": "https://api.dub.co/qr?url=https://dub.sh/79ys3WA?qr=1",+ "utm_source": null,+ "utm_medium": null,+ "utm_campaign": null,+ "utm_term": null,+ "utm_content": null,+ "userId": "cm022rkcw0000ikt14mscg9sg",+ "workspaceId": "ws_cm022sis60003ikt1syy7kfhl",+ "clicks": 10,+ "lastClicked": "2024-08-30T07:45:09.000Z",+ "leads": 5,+ "sales": 0,+ "saleAmount": 0,+ "createdAt": "2024-08-29T13:03:59.098Z",+ "updatedAt": "2024-08-30T09:53:49.505Z"}}}diff --git a/apps/web/lib/webhook/sample-events/sale.json b/apps/web/lib/webhook/sample-events/sale.jsonindex a781f98c9e..5c8288459e 100644--- a/apps/web/lib/webhook/sample-events/sale.json+++ b/apps/web/lib/webhook/sample-events/sale.json@@ -1,48 +1,69 @@{- "id": "evt_d6QRfbCvrVFcZx2pJ3dUm8Aum",+ "id": "evt_WHjyHhqsfYOrlJOOVJSoHXysD","event": "sale.created",- "createdAt": "2024-08-26T13:30:57.703Z",+ "createdAt": "2024-08-30T09:57:51.245Z","data": {"eventName": "Purchased",- "customerId": "cm0b0xkle0001qqydqe96vaj3",- "customerName": "Empty Apricot Hawk",- "customerEmail": null,- "customerAvatar": null,- "amount": 20000,- "paymentProcessor": "stripe",- "invoiceId": null,- "currency": "usd",+ "customer": {+ "id": "cm0gjdvr20001dkbha2n9gt2b",+ "name": "John",+ "email": "[email protected]",+ "avatar": "https://example.com/john.jpeg"+ },"click": {- "clickId": "woQlFnkMQxUyROL3",- "url": "https://suretriggers.com/docs/how-to-set-up-webhooks-in-postmark/",+ "clickId": "d0UtZqE0BZuBPrJS",+ "url": "https://github.com/dubinc/dub","ip": "63.141.57.109","continent": "NA","country": "US","city": "San Francisco",- "region": "CA",- "latitude": "37.7695",- "longitude": "-122.385","device": "Desktop",- "deviceVendor": "Apple",- "deviceModel": "Macintosh","browser": "Chrome",- "browserVersion": "127.0.0.0",- "engine": "Blink",- "engineVersion": "127.0.0.0","os": "Mac OS",- "osVersion": "10.15.7",- "cpuArchitecture": "Unknown","ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36","bot": false,"qr": false,- "referer": "(direct)",- "refererUrl": "(direct)"+ "referer": "(direct)"},"link": {- "id": "cm0atl8tk0001k15k4691jyga",- "externalId": null,+ "id": "cm0faqkyn0001txvfwjfeq7gl","domain": "dub.sh",- "key": "DUc7ENl"+ "key": "79ys3WA",+ "externalId": null,+ "url": "https://github.com/dubinc/dub",+ "trackConversion": true,+ "archived": false,+ "expiresAt": null,+ "expiredUrl": null,+ "password": null,+ "proxy": false,+ "title": null,+ "description": null,+ "image": null,+ "video": null,+ "rewrite": false,+ "doIndex": false,+ "ios": null,+ "android": null,+ "geo": null,+ "publicStats": false,+ "comments": null,+ "shortLink": "https://dub.sh/79ys3WA",+ "qrCode": "https://api.dub.co/qr?url=https://dub.sh/79ys3WA?qr=1",+ "utm_source": null,+ "utm_medium": null,+ "utm_campaign": null,+ "utm_term": null,+ "utm_content": null,+ "userId": "cm022rkcw0000ikt14mscg9sg",+ "workspaceId": "ws_cm022sis60003ikt1syy7kfhl",+ "clicks": 10,+ "lastClicked": "2024-08-30T07:45:09.000Z",+ "leads": 5,+ "sales": 1,+ "saleAmount": 20000,+ "createdAt": "2024-08-29T13:03:59.098Z",+ "updatedAt": "2024-08-30T09:57:50.891Z"}}}