Webhooks
-
+
diff --git a/apps/dashboard/src/components/pay/PayAnalytics/components/PayCustomersTable.tsx b/apps/dashboard/src/components/pay/PayAnalytics/components/PayCustomersTable.tsx
index 5789d83fba5..bf8a3dd763f 100644
--- a/apps/dashboard/src/components/pay/PayAnalytics/components/PayCustomersTable.tsx
+++ b/apps/dashboard/src/components/pay/PayAnalytics/components/PayCustomersTable.tsx
@@ -71,7 +71,13 @@ function processQuery(
}
export function PayCustomersTable(props: {
+ /**
+ * @deprecated - remove after migration
+ */
clientId: string;
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: string;
+ teamId: string;
from: Date;
to: Date;
}) {
@@ -80,7 +86,13 @@ export function PayCustomersTable(props: {
);
const topCustomersQuery = usePayCustomers({
+ /**
+ * @deprecated - remove after migration
+ */
clientId: props.clientId,
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: props.projectId,
+ teamId: props.teamId,
from: props.from,
to: props.to,
pageSize: 100,
diff --git a/apps/dashboard/src/components/pay/PayAnalytics/components/PayNewCustomers.tsx b/apps/dashboard/src/components/pay/PayAnalytics/components/PayNewCustomers.tsx
index 58779b423c5..f0cbf235abf 100644
--- a/apps/dashboard/src/components/pay/PayAnalytics/components/PayNewCustomers.tsx
+++ b/apps/dashboard/src/components/pay/PayAnalytics/components/PayNewCustomers.tsx
@@ -69,7 +69,13 @@ function processQuery(
}
export function PayNewCustomers(props: {
+ /**
+ * @deprecated - remove after migration
+ */
clientId: string;
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: string;
+ teamId: string;
from: Date;
to: Date;
numberOfDays: number;
@@ -86,7 +92,13 @@ export function PayNewCustomers(props: {
const uiQuery = processQuery(
usePayNewCustomers({
+ /**
+ * @deprecated - remove after migration
+ */
clientId: props.clientId,
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: props.projectId,
+ teamId: props.teamId,
from: props.from,
to: props.to,
intervalType,
diff --git a/apps/dashboard/src/components/pay/PayAnalytics/components/PaymentHistory.tsx b/apps/dashboard/src/components/pay/PayAnalytics/components/PaymentHistory.tsx
index 14a2df4acd4..d4496446012 100644
--- a/apps/dashboard/src/components/pay/PayAnalytics/components/PaymentHistory.tsx
+++ b/apps/dashboard/src/components/pay/PayAnalytics/components/PaymentHistory.tsx
@@ -63,14 +63,26 @@ function processQuery(
}
export function PaymentHistory(props: {
+ /**
+ * @deprecated - remove after migration
+ */
clientId: string;
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: string;
+ teamId: string;
from: Date;
to: Date;
}) {
const [page, setPage] = useState(1);
const purchasesQuery = usePayPurchases({
+ /**
+ * @deprecated - remove after migration
+ */
clientId: props.clientId,
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: props.projectId,
+ teamId: props.teamId,
from: props.from,
to: props.to,
start: (page - 1) * pageSize,
@@ -88,7 +100,13 @@ export function PaymentHistory(props: {
fileName="transaction_history"
getData={async () => {
const purchaseData = await getPayPurchases({
+ /**
+ * @deprecated - remove after migration
+ */
clientId: props.clientId,
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: props.projectId,
+ teamId: props.teamId,
count: 10000,
from: props.from,
start: 0,
diff --git a/apps/dashboard/src/components/pay/PayAnalytics/components/PaymentsSuccessRate.tsx b/apps/dashboard/src/components/pay/PayAnalytics/components/PaymentsSuccessRate.tsx
index b8bdf8c512b..14c439a0a2e 100644
--- a/apps/dashboard/src/components/pay/PayAnalytics/components/PaymentsSuccessRate.tsx
+++ b/apps/dashboard/src/components/pay/PayAnalytics/components/PaymentsSuccessRate.tsx
@@ -89,7 +89,13 @@ function processQuery(
}
export function PaymentsSuccessRate(props: {
+ /**
+ * @deprecated - remove after migration
+ */
clientId: string;
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: string;
+ teamId: string;
from: Date;
to: Date;
}) {
@@ -97,7 +103,13 @@ export function PaymentsSuccessRate(props: {
const uiQuery = processQuery(
usePayVolume({
+ /**
+ * @deprecated - remove after migration
+ */
clientId: props.clientId,
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: props.projectId,
+ teamId: props.teamId,
from: props.from,
to: props.to,
intervalType: "day",
diff --git a/apps/dashboard/src/components/pay/PayAnalytics/components/Payouts.tsx b/apps/dashboard/src/components/pay/PayAnalytics/components/Payouts.tsx
index 8e558579ae0..cb52860af8f 100644
--- a/apps/dashboard/src/components/pay/PayAnalytics/components/Payouts.tsx
+++ b/apps/dashboard/src/components/pay/PayAnalytics/components/Payouts.tsx
@@ -65,7 +65,13 @@ function processQuery(query: ReturnType
): ProcessedQuery {
}
export function Payouts(props: {
+ /**
+ * @deprecated - remove after migration
+ */
clientId: string;
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: string;
+ teamId: string;
from: Date;
to: Date;
numberOfDays: number;
@@ -82,7 +88,13 @@ export function Payouts(props: {
const uiQuery = processQuery(
usePayVolume({
+ /**
+ * @deprecated - remove after migration
+ */
clientId: props.clientId,
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: props.projectId,
+ teamId: props.teamId,
from: props.from,
to: props.to,
intervalType,
diff --git a/apps/dashboard/src/components/pay/PayAnalytics/components/TotalPayVolume.tsx b/apps/dashboard/src/components/pay/PayAnalytics/components/TotalPayVolume.tsx
index 65e7fff87fb..4f5eaafd660 100644
--- a/apps/dashboard/src/components/pay/PayAnalytics/components/TotalPayVolume.tsx
+++ b/apps/dashboard/src/components/pay/PayAnalytics/components/TotalPayVolume.tsx
@@ -54,7 +54,13 @@ function processQuery(
}
export function TotalPayVolume(props: {
+ /**
+ * @deprecated - remove after migration
+ */
clientId: string;
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: string;
+ teamId: string;
from: Date;
to: Date;
numberOfDays: number;
@@ -71,7 +77,13 @@ export function TotalPayVolume(props: {
const volumeQuery = processQuery(
usePayVolume({
+ /**
+ * @deprecated - remove after migration
+ */
clientId: props.clientId,
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: props.projectId,
+ teamId: props.teamId,
from: props.from,
intervalType,
to: props.to,
diff --git a/apps/dashboard/src/components/pay/PayAnalytics/components/TotalVolumePieChart.tsx b/apps/dashboard/src/components/pay/PayAnalytics/components/TotalVolumePieChart.tsx
index a38ee33fba7..e24666209da 100644
--- a/apps/dashboard/src/components/pay/PayAnalytics/components/TotalVolumePieChart.tsx
+++ b/apps/dashboard/src/components/pay/PayAnalytics/components/TotalVolumePieChart.tsx
@@ -58,13 +58,25 @@ function processQuery(
}
export function TotalVolumePieChart(props: {
+ /**
+ * @deprecated - remove after migration
+ */
clientId: string;
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: string;
+ teamId: string;
from: Date;
to: Date;
}) {
const uiQuery = processQuery(
usePayVolume({
+ /**
+ * @deprecated - remove after migration
+ */
clientId: props.clientId,
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: props.projectId,
+ teamId: props.teamId,
from: props.from,
intervalType: "day",
to: props.to,
diff --git a/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayCustomers.ts b/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayCustomers.ts
index 93d2d2f43bc..b910042891d 100644
--- a/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayCustomers.ts
+++ b/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayCustomers.ts
@@ -17,7 +17,13 @@ type Response = {
};
export function usePayCustomers(options: {
+ /**
+ * @deprecated - remove after migration
+ */
clientId: string;
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: string;
+ teamId: string;
from: Date;
to: Date;
pageSize: number;
@@ -40,9 +46,15 @@ export function usePayCustomers(options: {
searchParams: {
skip: `${start}`,
take: `${options.pageSize}`,
+ /**
+ * @deprecated - remove after migration
+ */
clientId: options.clientId,
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: options.projectId,
fromDate: `${options.from.getTime()}`,
toDate: `${options.to.getTime()}`,
+ teamId: options.teamId,
},
});
diff --git a/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayNewCustomers.ts b/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayNewCustomers.ts
index f359e3241cc..1346918a7d2 100644
--- a/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayNewCustomers.ts
+++ b/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayNewCustomers.ts
@@ -25,7 +25,13 @@ type Response = {
};
export function usePayNewCustomers(options: {
+ /**
+ * @deprecated - remove after migration
+ */
clientId: string;
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: string;
+ teamId: string;
from: Date;
to: Date;
intervalType: "day" | "week";
@@ -38,7 +44,13 @@ export function usePayNewCustomers(options: {
pathname: "/stats/aggregate/customers/v1",
searchParams: {
intervalType: options.intervalType,
+ /**
+ * @deprecated - remove after migration
+ */
clientId: options.clientId,
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: options.projectId,
+ teamId: options.teamId,
fromDate: `${options.from.getTime()}`,
toDate: `${options.to.getTime()}`,
},
diff --git a/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayPurchases.ts b/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayPurchases.ts
index c7796431be1..93fd914c261 100644
--- a/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayPurchases.ts
+++ b/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayPurchases.ts
@@ -54,7 +54,13 @@ type Response = {
};
type PayPurchaseOptions = {
+ /**
+ * @deprecated - remove after migration
+ */
clientId: string;
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: string;
+ teamId: string;
from: Date;
to: Date;
start: number;
@@ -77,7 +83,13 @@ export async function getPayPurchases(options: PayPurchaseOptions) {
searchParams: {
skip: `${options.start}`,
take: `${options.count}`,
+ /**
+ * @deprecated - remove after migration
+ */
clientId: options.clientId,
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: options.projectId,
+ teamId: options.teamId,
fromDate: `${options.from.getTime()}`,
toDate: `${options.to.getTime()}`,
},
diff --git a/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayVolume.ts b/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayVolume.ts
index b767e5719be..a09d970ed66 100644
--- a/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayVolume.ts
+++ b/apps/dashboard/src/components/pay/PayAnalytics/hooks/usePayVolume.ts
@@ -56,7 +56,13 @@ type Response = {
};
export function usePayVolume(options: {
+ /**
+ * @deprecated - remove after migration
+ */
clientId: string;
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: string;
+ teamId: string;
from: Date;
to: Date;
intervalType: "day" | "week";
@@ -69,7 +75,13 @@ export function usePayVolume(options: {
pathname: "/stats/aggregate/volume/v1",
searchParams: {
intervalType: options.intervalType,
+ /**
+ * @deprecated - remove after migration
+ */
clientId: options.clientId,
+ // switching to projectId for lookup, but have to send both during migration
+ projectId: options.projectId,
+ teamId: options.teamId,
fromDate: `${options.from.getTime()}`,
toDate: `${options.to.getTime()}`,
},