mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
Merge PR #496: кнопка построения полной реферальной сети
This commit is contained in:
@@ -14,6 +14,11 @@ export const referralNetworkApi = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
getFullGraph: async (): Promise<NetworkGraphData> => {
|
||||
const response = await apiClient.get('/cabinet/admin/referral-network/');
|
||||
return response.data;
|
||||
},
|
||||
|
||||
getScopedGraph: async (selections: ScopeSelection[]): Promise<NetworkGraphData> => {
|
||||
const campaignIds = selections.filter((s) => s.type === 'campaign').map((s) => s.id);
|
||||
const partnerIds = selections.filter((s) => s.type === 'partner').map((s) => s.id);
|
||||
|
||||
Reference in New Issue
Block a user