@yuno-payments/dashboard-api-mfe 2.11.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.
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +2 -1
- package/build/cjs/types/queries/recipients/recipients.query.d.ts +2 -1
- package/build/cjs/types/types/recipients/recipients.d.ts +14 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +2 -1
- package/build/esm/types/queries/recipients/recipients.query.d.ts +2 -1
- package/build/esm/types/types/recipients/recipients.d.ts +14 -0
- package/build/index.d.ts +18 -2
- package/package.json +1 -1
|
@@ -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';
|
|
@@ -655,6 +655,7 @@ export declare class Api extends HttpClient {
|
|
|
655
655
|
sort_order?: string;
|
|
656
656
|
}): Promise<AxiosResponse<T, any>>;
|
|
657
657
|
getRecipientsV2<T>(organizationCode: string, params: GetRecipientsParams): Promise<AxiosResponse<T, any>>;
|
|
658
|
+
postRecipientsList<T>(organizationCode: string, body: GetRecipientsListBody): Promise<AxiosResponse<T, any>>;
|
|
658
659
|
getRecipientById<T>(organizationCode: string, recipientId: string, params?: {
|
|
659
660
|
masking_mode?: string;
|
|
660
661
|
}): Promise<AxiosResponse<T, any>>;
|
|
@@ -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';
|