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 deprecated endpoints

Steven Teybea72c0bdc56
diff --git a/apps/web/lib/openapi/analytics/clicks/countries.ts b/apps/web/lib/openapi/analytics/clicks/countries.ts
index 39fc0c5a04..a5c0cf0ca4 100644
--- a/apps/web/lib/openapi/analytics/clicks/countries.ts
+++ b/apps/web/lib/openapi/analytics/clicks/countries.ts
@@ -8,7 +8,7 @@ import { ZodOpenApiOperationObject } from "zod-openapi";
import { workspaceParamsSchema } from "../../request";
export const getCountriesByClicks: ZodOpenApiOperationObject = {
- operationId: "getCountryByClicks",
+ operationId: "getCountriesByClicks",
"x-speakeasy-name-override": "countries",
summary: "Retrieve top countries by clicks",
description:
diff --git a/apps/web/lib/openapi/analytics/clicks/index.ts b/apps/web/lib/openapi/analytics/clicks/index.ts
index 3b6dea7f4e..63ae61abf1 100644
--- a/apps/web/lib/openapi/analytics/clicks/index.ts
+++ b/apps/web/lib/openapi/analytics/clicks/index.ts
@@ -41,4 +41,73 @@ export const clickAnalyticsPaths: ZodOpenApiPathsObject = {
"/analytics/clicks/top_urls": {
get: getTopURLsByClicks,
},
+ // Deprecated endpoints
+ "/analytics/clicks": {
+ get: {
+ ...getClicksCount,
+ "x-speakeasy-name-override": "clicks",
+ tags: ["analytics"],
+ deprecated: true,
+ },
+ },
+ "/analytics/timeseries": {
+ get: {
+ ...getTimeseriesByClicks,
+ tags: ["analytics"],
+ deprecated: true,
+ },
+ },
+ "/analytics/country": {
+ get: {
+ ...getCountriesByClicks,
+ "x-speakeasy-name-override": "country",
+ tags: ["analytics"],
+ deprecated: true,
+ },
+ },
+ "/analytics/city": {
+ get: {
+ ...getCitiesByClicks,
+ "x-speakeasy-name-override": "city",
+ tags: ["analytics"],
+ deprecated: true,
+ },
+ },
+ "/analytics/device": {
+ get: {
+ ...getDevicesByClicks,
+ "x-speakeasy-name-override": "device",
+ tags: ["analytics"],
+ deprecated: true,
+ },
+ },
+ "/analytics/browser": {
+ get: {
+ ...getBrowsersByClicks,
+ "x-speakeasy-name-override": "browser",
+ tags: ["analytics"],
+ deprecated: true,
+ },
+ },
+ "/analytics/os": {
+ get: { ...getOSByClicks, tags: ["analytics"], deprecated: true },
+ },
+ "/analytics/referer": {
+ get: {
+ ...getReferersByClicks,
+ "x-speakeasy-name-override": "referer",
+ tags: ["analytics"],
+ deprecated: true,
+ },
+ },
+ "/analytics/top_links": {
+ get: { ...getTopLinksByClicks, tags: ["analytics"], deprecated: true },
+ },
+ "/analytics/top_urls": {
+ get: {
+ ...getTopURLsByClicks,
+ tags: ["analytics"],
+ deprecated: true,
+ },
+ },
};