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.

add deprecation explanation

Steven Tey17c76e93f6e4
diff --git a/apps/web/lib/openapi/analytics/browser.ts b/apps/web/lib/openapi/analytics/browser.ts
index 6ca3f78d65..be60f9badc 100644
--- a/apps/web/lib/openapi/analytics/browser.ts
+++ b/apps/web/lib/openapi/analytics/browser.ts
@@ -13,7 +13,7 @@ export const getBrowserAnalytics: ZodOpenApiOperationObject = {
summary: "Retrieve browser analytics",
deprecated: true,
description:
- "Retrieve the top browsers by number of clicks for a link, a domain, or the authenticated workspace.",
+ "Deprecated: Use dub.anlaytics.clicks({ groupBy: 'browser' }) instead. Retrieve the top browsers by number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
query: workspaceParamsSchema.merge(
clickAnalyticsQuerySchema.omit({ groupBy: true }),
diff --git a/apps/web/lib/openapi/analytics/city.ts b/apps/web/lib/openapi/analytics/city.ts
index 48e3531f95..9e87bd82c2 100644
--- a/apps/web/lib/openapi/analytics/city.ts
+++ b/apps/web/lib/openapi/analytics/city.ts
@@ -13,7 +13,7 @@ export const getCityAnalytics: ZodOpenApiOperationObject = {
summary: "Retrieve city analytics",
deprecated: true,
description:
- "Retrieve the top countries by number of clicks for a link, a domain, or the authenticated workspace.",
+ "Deprecated: Use dub.anlaytics.clicks({ groupBy: 'city' }) instead. Retrieve the top countries by number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
query: workspaceParamsSchema.merge(
clickAnalyticsQuerySchema.omit({ groupBy: true }),
diff --git a/apps/web/lib/openapi/analytics/country.ts b/apps/web/lib/openapi/analytics/country.ts
index 0fb2a38aad..9ca8c8123f 100644
--- a/apps/web/lib/openapi/analytics/country.ts
+++ b/apps/web/lib/openapi/analytics/country.ts
@@ -13,7 +13,7 @@ export const getCountryAnalytics: ZodOpenApiOperationObject = {
summary: "Retrieve country analytics",
deprecated: true,
description:
- "Retrieve the top countries by number of clicks for a link, a domain, or the authenticated workspace.",
+ "Deprecated: Use dub.anlaytics.clicks({ groupBy: 'country' }) instead. Retrieve the top countries by number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
query: workspaceParamsSchema.merge(
clickAnalyticsQuerySchema.omit({ groupBy: true }),
diff --git a/apps/web/lib/openapi/analytics/device.ts b/apps/web/lib/openapi/analytics/device.ts
index a0b4d30803..b8b334ed35 100644
--- a/apps/web/lib/openapi/analytics/device.ts
+++ b/apps/web/lib/openapi/analytics/device.ts
@@ -13,7 +13,7 @@ export const getDeviceAnalytics: ZodOpenApiOperationObject = {
summary: "Retrieve device analytics",
deprecated: true,
description:
- "Retrieve the top devices by number of clicks for a link, a domain, or the authenticated workspace.",
+ "Deprecated: Use dub.anlaytics.clicks({ groupBy: 'device' }) instead. Retrieve the top devices by number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
query: workspaceParamsSchema.merge(
clickAnalyticsQuerySchema.omit({ groupBy: true }),
diff --git a/apps/web/lib/openapi/analytics/os.ts b/apps/web/lib/openapi/analytics/os.ts
index a0b3472c8b..a7c05c5c4f 100644
--- a/apps/web/lib/openapi/analytics/os.ts
+++ b/apps/web/lib/openapi/analytics/os.ts
@@ -13,7 +13,7 @@ export const getOSAnalytics: ZodOpenApiOperationObject = {
summary: "Retrieve OS analytics",
deprecated: true,
description:
- "Retrieve the top OS by number of clicks for a link, a domain, or the authenticated workspace.",
+ "Deprecated: Use dub.anlaytics.clicks({ groupBy: 'os' }) instead. Retrieve the top OS by number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
query: workspaceParamsSchema.merge(
clickAnalyticsQuerySchema.omit({ groupBy: true }),
diff --git a/apps/web/lib/openapi/analytics/referer.ts b/apps/web/lib/openapi/analytics/referer.ts
index 7c76789bf5..b05bbb162b 100644
--- a/apps/web/lib/openapi/analytics/referer.ts
+++ b/apps/web/lib/openapi/analytics/referer.ts
@@ -13,7 +13,7 @@ export const getRefererAnalytics: ZodOpenApiOperationObject = {
summary: "Retrieve referer analytics",
deprecated: true,
description:
- "Retrieve the top referers by number of clicks for a link, a domain, or the authenticated workspace.",
+ "Deprecated: Use dub.anlaytics.clicks({ groupBy: 'referer' }) instead. Retrieve the top referers by number of clicks for a link, a domain, or the authenticated workspace.",
requestParams: {
query: workspaceParamsSchema.merge(
clickAnalyticsQuerySchema.omit({ groupBy: true }),
diff --git a/apps/web/lib/openapi/analytics/timeseries.ts b/apps/web/lib/openapi/analytics/timeseries.ts
index e320c779f9..53dda6023b 100644
--- a/apps/web/lib/openapi/analytics/timeseries.ts
+++ b/apps/web/lib/openapi/analytics/timeseries.ts
@@ -13,7 +13,7 @@ export const getTimeseriesAnalytics: ZodOpenApiOperationObject = {
summary: "Retrieve timeseries analytics",
deprecated: true,
description:
- "Retrieve the number of clicks for a link, a domain, or the authenticated workspace over a period of time.",
+ "Deprecated: Use dub.anlaytics.clicks({ groupBy: 'timeseries' }) instead. Retrieve the number of clicks for a link, a domain, or the authenticated workspace over a period of time.",
requestParams: {
query: workspaceParamsSchema.merge(
clickAnalyticsQuerySchema.omit({ groupBy: true }),
diff --git a/apps/web/lib/openapi/analytics/top-links.ts b/apps/web/lib/openapi/analytics/top-links.ts
index 939bafac3c..80e5c9f5c8 100644
--- a/apps/web/lib/openapi/analytics/top-links.ts
+++ b/apps/web/lib/openapi/analytics/top-links.ts
@@ -13,7 +13,7 @@ export const getTopLinks: ZodOpenApiOperationObject = {
summary: "Retrieve top links",
deprecated: true,
description:
- "Retrieve the top links by number of clicks for a domain or the authenticated workspace.",
+ "Deprecated: Use dub.anlaytics.clicks({ groupBy: 'top_links' }) instead. Retrieve the top links by number of clicks for a domain or the authenticated workspace.",
requestParams: {
query: workspaceParamsSchema.merge(
clickAnalyticsQuerySchema.omit({ groupBy: true }),
diff --git a/apps/web/lib/openapi/analytics/top-urls.ts b/apps/web/lib/openapi/analytics/top-urls.ts
index aaf52fb644..d78ecd5459 100644
--- a/apps/web/lib/openapi/analytics/top-urls.ts
+++ b/apps/web/lib/openapi/analytics/top-urls.ts
@@ -13,7 +13,7 @@ export const getTopURLs: ZodOpenApiOperationObject = {
summary: "Retrieve top URLs",
deprecated: true,
description:
- "Retrieve the top URLs by number of clicks for a given short link.",
+ "Deprecated: Use dub.anlaytics.clicks({ groupBy: 'top_urls' }) instead. Retrieve the top URLs by number of clicks for a given short link.",
requestParams: {
query: workspaceParamsSchema.merge(
clickAnalyticsQuerySchema.omit({ groupBy: true }),