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.

remove actions

Kiran K29982cd3680b
diff --git a/apps/web/lib/actions/get-conversion-events.ts b/apps/web/lib/actions/get-conversion-events.ts
deleted file mode 100644
index aaadd28577..0000000000
--- a/apps/web/lib/actions/get-conversion-events.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-"use server";
-
-import {
- ClickEvent,
- LeadEvent,
- SaleEvent,
-} from "dub/dist/commonjs/models/components";
-import { EventType } from "../analytics/types";
-import { dub } from "../dub";
-
-export type ConversionEvent = ClickEvent | LeadEvent | SaleEvent;
-
-export const getConversionEvents = async ({
- linkId,
- event,
- page,
-}: {
- linkId: string;
- event: EventType;
- page: number;
-}) => {
- return (await dub.events.list({
- linkId,
- event,
- interval: "all",
- page,
- })) as ConversionEvent[];
-};
diff --git a/apps/web/lib/actions/get-total-events.ts b/apps/web/lib/actions/get-total-events.ts
deleted file mode 100644
index 7d29ded170..0000000000
--- a/apps/web/lib/actions/get-total-events.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-"use server";
-
-import { dub } from "@/lib/dub";
-import { AnalyticsCount } from "dub/dist/commonjs/models/components";
-
-export const getTotalEvents = async (linkId: string) => {
- return (await dub.analytics.retrieve({
- linkId,
- event: "composite",
- interval: "all_unfiltered",
- })) as AnalyticsCount;
-};