@yuno-payments/dashboard-api-mfe 1.17.0 → 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.
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +23 -7
- package/build/cjs/types/mutations/fraud-screening/fraud-screening.mutation.d.ts +2 -0
- package/build/cjs/types/queries/recipients/recipients.query.d.ts +1 -0
- package/build/cjs/types/types/recipients/recipients.d.ts +18 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +23 -7
- package/build/esm/types/mutations/fraud-screening/fraud-screening.mutation.d.ts +2 -0
- package/build/esm/types/queries/recipients/recipients.query.d.ts +1 -0
- package/build/esm/types/types/recipients/recipients.d.ts +18 -0
- package/build/index.d.ts +45 -8
- package/package.json +1 -1
|
@@ -521,14 +521,16 @@ export declare class Api extends HttpClient {
|
|
|
521
521
|
putBlackListType<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
522
522
|
changeBlackListStatus<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
523
523
|
changeBlackListStatusItem<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
524
|
-
postBlackListItems<T>({ payload }: {
|
|
525
|
-
payload:
|
|
524
|
+
postBlackListItems<T>({ payload, accountCode, }: {
|
|
525
|
+
payload: unknown;
|
|
526
|
+
accountCode?: string;
|
|
526
527
|
}): Promise<AxiosResponse<T, any>>;
|
|
527
|
-
postBlackListBatch<T>({ blacklist_code, expiration_days, file, handleSetProgress, }: {
|
|
528
|
-
blacklist_code:
|
|
529
|
-
expiration_days:
|
|
530
|
-
file:
|
|
531
|
-
handleSetProgress:
|
|
528
|
+
postBlackListBatch<T>({ blacklist_code, expiration_days, file, handleSetProgress, accountCode, }: {
|
|
529
|
+
blacklist_code: string;
|
|
530
|
+
expiration_days: number;
|
|
531
|
+
file: string;
|
|
532
|
+
handleSetProgress: (progress: number) => void;
|
|
533
|
+
accountCode?: string;
|
|
532
534
|
}): Promise<AxiosResponse<T, any>>;
|
|
533
535
|
deleteBlackListType<T>({ black_list_code, }: {
|
|
534
536
|
black_list_code: any;
|
|
@@ -666,6 +668,20 @@ export declare class Api extends HttpClient {
|
|
|
666
668
|
sort_by?: string;
|
|
667
669
|
sort_order?: string;
|
|
668
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>>;
|
|
669
685
|
getRecipientById<T>(organizationCode: string, recipientId: string): Promise<AxiosResponse<T, any>>;
|
|
670
686
|
getOnboardingDetail<T>(organizationCode: string, recipientId: string, onboardingId: string): Promise<AxiosResponse<T, any>>;
|
|
671
687
|
getOnboardingTimeline<T>(organizationCode: string, onboardingId: string): Promise<AxiosResponse<T, any>>;
|
|
@@ -18,11 +18,13 @@ export type PostBlackList = {
|
|
|
18
18
|
};
|
|
19
19
|
type PostBlackListItems = {
|
|
20
20
|
payload: FraudScreening.BlackListItemsPayload;
|
|
21
|
+
accountCode?: string;
|
|
21
22
|
};
|
|
22
23
|
type PostBlackListBatch = {
|
|
23
24
|
blacklist_code: string;
|
|
24
25
|
expiration_days: number;
|
|
25
26
|
file: string;
|
|
27
|
+
accountCode?: string;
|
|
26
28
|
};
|
|
27
29
|
export type ChangePaymentsWebhook = {
|
|
28
30
|
paymentCode: string;
|
|
@@ -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;
|