@yuno-payments/dashboard-api-mfe 2.10.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ import { RoutingMonitors } from '../types/routing-monitors';
7
7
  import { ChangePaymentsWebhook } from '../mutations';
8
8
  import { S3Client } from '../types/s3-client';
9
9
  import { CreateRecipientPayload, UpdateRecipientPayload, CreateOnboardingPayload, UpdateOnboardingPayload } from '../types/recipients/recipients-mutations';
10
- import { GetRecipientsParams } from '../types/recipients';
10
+ import { GetRecipientsParams, GetRecipientsListBody } from '../types/recipients';
11
11
  import { AllowedList } from '../types/allowed-list';
12
12
  import { Cost } from '../types/connection/costs';
13
13
  import { IntegrationRequest } from '../types/integration-requests';
@@ -216,6 +216,7 @@ export declare class Api extends HttpClient {
216
216
  getInsightsMetricsConversionRateViewMore<T>(params: DataReport.InsightMetricParams, type: string): Promise<AxiosResponse<T, any>>;
217
217
  getInsightFallbackMetrics<T>(params: DataReport.InsightMetricParams): Promise<AxiosResponse<T, any>>;
218
218
  getInsightsMetricsVolumeV2<T>(account_codes: string, path: DataReport.InsightsVolumeMetricsV2Path, params: DataReport.InsightMetricParams): Promise<AxiosResponse<T, any>>;
219
+ getInsightsMetricsVolumeV3<T>(account_codes: string, path: DataReport.InsightsVolumeMetricsV2Path, params: DataReport.InsightMetricParams): Promise<AxiosResponse<T, any>>;
219
220
  getInsightsFraudScreeningVolumeAndCountTx(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
220
221
  getInsightsFraudScreeningConversionRate(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
221
222
  getInsights3dsVolumeAndCountTx(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
@@ -654,6 +655,7 @@ export declare class Api extends HttpClient {
654
655
  sort_order?: string;
655
656
  }): Promise<AxiosResponse<T, any>>;
656
657
  getRecipientsV2<T>(organizationCode: string, params: GetRecipientsParams): Promise<AxiosResponse<T, any>>;
658
+ postRecipientsList<T>(organizationCode: string, body: GetRecipientsListBody): Promise<AxiosResponse<T, any>>;
657
659
  getRecipientById<T>(organizationCode: string, recipientId: string, params?: {
658
660
  masking_mode?: string;
659
661
  }): Promise<AxiosResponse<T, any>>;
@@ -10,6 +10,7 @@ export declare function useInsightsConversionRateMetricsV2(params: DataReport.In
10
10
  export declare function useViewMoreMetrics(params: DataReport.InsightMetricParams, type: any): UseQueryResult<any, unknown>;
11
11
  export declare function useInsightsFallbackMetrics(params: DataReport.InsightMetricParams): UseQueryResult<any, unknown>;
12
12
  export declare function useInsightsVolumeMetricsV2(account_codes: string, params: DataReport.InsightMetricParams, path: DataReport.InsightsVolumeMetricsV2Path, enabled?: boolean): UseQueryResult<any, unknown>;
13
+ export declare function useInsightsVolumeMetricsV3(account_codes: string, params: DataReport.InsightMetricParams, path: DataReport.InsightsVolumeMetricsV2Path, enabled?: boolean): UseQueryResult<any, unknown>;
13
14
  export declare function useInsightsOverviewMetricsV3(params: DataReport.InsightMetricParams, type: DataReport.OverviewMetricType): UseQueryResult<any, unknown>;
14
15
  export declare function useInsightsOverviewMetricsV2(params: DataReport.InsightMetricParams, type: DataReport.OverviewMetricType): UseQueryResult<any, unknown>;
15
16
  export declare function useInsightsHomeMetrics(params: DataReport.InsightsHomeMetrics): UseQueryResult<any, unknown>;
@@ -1,9 +1,10 @@
1
1
  import { AxiosError } from 'axios';
2
2
  import { UseQueryResult } from '@tanstack/react-query';
3
- import { Recipients, GetRecipientsParams, GetRecipientByIdParams, GetOnboardingDetailParams, GetOnboardingTimelineParams, RecipientsExport, GetRecipientExportsParams } from '../../types/recipients';
3
+ import { Recipients, GetRecipientsParams, GetRecipientsListBody, GetRecipientByIdParams, GetOnboardingDetailParams, GetOnboardingTimelineParams, RecipientsExport, GetRecipientExportsParams } from '../../types/recipients';
4
4
  import { BFFErrorResponse } from '../../mutations';
5
5
  export declare function useGetRecipients(organizationCode: string, params: GetRecipientsParams, enabled?: boolean): UseQueryResult<Recipients.RecipientListResponse, AxiosError<BFFErrorResponse>>;
6
6
  export declare function useGetRecipientsV2(organizationCode: string, params: GetRecipientsParams, enabled?: boolean): UseQueryResult<Recipients.RecipientListResponseV2, AxiosError<BFFErrorResponse>>;
7
+ export declare function useGetRecipientsList(organizationCode: string, body: GetRecipientsListBody, enabled?: boolean): UseQueryResult<Recipients.RecipientListResponseV2, AxiosError<BFFErrorResponse>>;
7
8
  export declare function useGetRecipientById(organizationCode: string, params: GetRecipientByIdParams, enabled?: boolean): UseQueryResult<Recipients.RecipientDetail, AxiosError<BFFErrorResponse>>;
8
9
  export declare function useGetOnboardingDetail(organizationCode: string, params: GetOnboardingDetailParams, enabled?: boolean): UseQueryResult<Recipients.OnboardingDetail, AxiosError<BFFErrorResponse>>;
9
10
  export declare function useGetOnboardingTimeline(organizationCode: string, params: GetOnboardingTimelineParams, enabled?: boolean): UseQueryResult<Recipients.OnboardingTimeline, AxiosError<BFFErrorResponse>>;
@@ -229,6 +229,20 @@ export interface GetRecipientsParams {
229
229
  sort_by?: string;
230
230
  sort_order?: string;
231
231
  }
232
+ export interface GetRecipientsListBody {
233
+ account_codes?: string[];
234
+ countries?: string[];
235
+ national_entities?: string[];
236
+ entity_types?: string[];
237
+ start_date?: string;
238
+ end_date?: string;
239
+ search_type?: string;
240
+ search_value?: string;
241
+ page?: number;
242
+ page_size?: number;
243
+ sort_by?: string;
244
+ sort_order?: string;
245
+ }
232
246
  export interface GetRecipientByIdParams {
233
247
  recipient_id: string;
234
248
  masking_mode?: 'full';