@yuno-payments/dashboard-api-mfe 1.17.2 → 1.18.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.
@@ -668,6 +668,20 @@ export declare class Api extends HttpClient {
668
668
  sort_by?: string;
669
669
  sort_order?: string;
670
670
  }): Promise<AxiosResponse<T, any>>;
671
+ getRecipientsV2<T>(organizationCode: string, params: {
672
+ account_ids?: string;
673
+ countries?: string;
674
+ national_entities?: string;
675
+ entity_types?: string;
676
+ start_date?: string;
677
+ end_date?: string;
678
+ search_type?: string;
679
+ search_value?: string;
680
+ page?: number;
681
+ page_size?: number;
682
+ sort_by?: string;
683
+ sort_order?: string;
684
+ }): Promise<AxiosResponse<T, any>>;
671
685
  getRecipientById<T>(organizationCode: string, recipientId: string): Promise<AxiosResponse<T, any>>;
672
686
  getOnboardingDetail<T>(organizationCode: string, recipientId: string, onboardingId: string): Promise<AxiosResponse<T, any>>;
673
687
  getOnboardingTimeline<T>(organizationCode: string, onboardingId: string): Promise<AxiosResponse<T, any>>;
@@ -3,6 +3,7 @@ import { UseQueryResult } from '@tanstack/react-query';
3
3
  import { Recipients, GetRecipientsParams, 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
+ export declare function useGetRecipientsV2(organizationCode: string, params: GetRecipientsParams, enabled?: boolean): UseQueryResult<Recipients.RecipientListResponseV2, AxiosError<BFFErrorResponse>>;
6
7
  export declare function useGetRecipientById(organizationCode: string, params: GetRecipientByIdParams, enabled?: boolean): UseQueryResult<Recipients.RecipientDetail, AxiosError<BFFErrorResponse>>;
7
8
  export declare function useGetOnboardingDetail(organizationCode: string, params: GetOnboardingDetailParams, enabled?: boolean): UseQueryResult<Recipients.OnboardingDetail, AxiosError<BFFErrorResponse>>;
8
9
  export declare function useGetOnboardingTimeline(organizationCode: string, params: GetOnboardingTimelineParams, enabled?: boolean): UseQueryResult<Recipients.OnboardingTimeline, AxiosError<BFFErrorResponse>>;
@@ -41,6 +41,7 @@ export declare namespace Recipients {
41
41
  provider_id: string;
42
42
  status: string;
43
43
  created_at: string;
44
+ updated_at?: string;
44
45
  }
45
46
  interface RecipientListItem {
46
47
  id: string;
@@ -72,6 +73,23 @@ export declare namespace Recipients {
72
73
  data: RecipientListItem[];
73
74
  pagination: Pagination;
74
75
  }
76
+ interface RecipientListItemV2 {
77
+ id: string;
78
+ merchant_recipient_id: string | null;
79
+ national_entity: string;
80
+ entity_type: string | null;
81
+ country: string;
82
+ first_name: string | null;
83
+ last_name: string | null;
84
+ legal_name: string | null;
85
+ account_id: string;
86
+ updated_at: string;
87
+ onboardings: OnboardingSummary[];
88
+ }
89
+ interface RecipientListResponseV2 {
90
+ data: RecipientListItemV2[];
91
+ pagination: Pagination;
92
+ }
75
93
  interface RecipientDetail {
76
94
  id: string;
77
95
  merchant_recipient_id: string | null;