@yuno-payments/dashboard-api-mfe 1.7.8 → 1.7.9-export-beta.1
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 +6 -0
- package/build/cjs/types/mutations/recipients/recipients.mutation.d.ts +10 -7
- package/build/cjs/types/queries/recipients/recipients.query.d.ts +5 -1
- package/build/cjs/types/types/recipients/index.d.ts +1 -0
- package/build/cjs/types/types/recipients/recipients-export.d.ts +52 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +6 -0
- package/build/esm/types/mutations/recipients/recipients.mutation.d.ts +10 -7
- package/build/esm/types/queries/recipients/recipients.query.d.ts +5 -1
- package/build/esm/types/types/recipients/index.d.ts +1 -0
- package/build/esm/types/types/recipients/recipients-export.d.ts +52 -0
- package/build/index.d.ts +73 -9
- package/package.json +1 -1
|
@@ -664,6 +664,12 @@ export declare class Api extends HttpClient {
|
|
|
664
664
|
getRecipientById<T>(organizationCode: string, recipientId: string): Promise<AxiosResponse<T, any>>;
|
|
665
665
|
getOnboardingDetail<T>(organizationCode: string, recipientId: string, onboardingId: string): Promise<AxiosResponse<T, any>>;
|
|
666
666
|
getOnboardingTimeline<T>(organizationCode: string, onboardingId: string): Promise<AxiosResponse<T, any>>;
|
|
667
|
+
createRecipientExport<T>(payload: unknown, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
668
|
+
getRecipientExports<T>(params: {
|
|
669
|
+
page?: number;
|
|
670
|
+
size?: number;
|
|
671
|
+
}, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
672
|
+
downloadRecipientExport<T>(exportCode: string, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
667
673
|
createRecipient<T>(organizationCode: string, payload: CreateRecipientPayload): Promise<AxiosResponse<T, any>>;
|
|
668
674
|
updateRecipient<T>(organizationCode: string, recipientId: string, payload: UpdateRecipientPayload): Promise<AxiosResponse<T, any>>;
|
|
669
675
|
deleteRecipient<T>(organizationCode: string, recipientId: string): Promise<AxiosResponse<T, any>>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { AxiosError } from 'axios';
|
|
2
|
+
import { UseMutationResult } from '@tanstack/react-query';
|
|
3
|
+
import { RecipientsExport } from '../../types/recipients';
|
|
2
4
|
import { CreateRecipientParams, UpdateRecipientParams, DeleteRecipientParams, CreateOnboardingParams, UpdateOnboardingParams, BlockOnboardingParams, UnblockOnboardingParams } from '../../types/recipients/recipients-mutations';
|
|
3
5
|
import { Recipients } from '../../types/recipients/recipients';
|
|
4
6
|
import { BFFErrorResponse } from '../smart-routing/smart-routing.mutation';
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
7
|
+
export declare function useCreateRecipientExport(): UseMutationResult<RecipientsExport.ExportItem, unknown>;
|
|
8
|
+
export declare function useCreateRecipient(): UseMutationResult<Recipients.RecipientDetail, AxiosError<BFFErrorResponse, any>, CreateRecipientParams, unknown>;
|
|
9
|
+
export declare function useUpdateRecipient(): UseMutationResult<Recipients.RecipientDetail, AxiosError<BFFErrorResponse, any>, UpdateRecipientParams, unknown>;
|
|
10
|
+
export declare function useDeleteRecipient(): UseMutationResult<void, AxiosError<BFFErrorResponse, any>, DeleteRecipientParams, unknown>;
|
|
11
|
+
export declare function useCreateOnboarding(): UseMutationResult<Recipients.OnboardingDetail, AxiosError<BFFErrorResponse, any>, CreateOnboardingParams, unknown>;
|
|
12
|
+
export declare function useUpdateOnboarding(): UseMutationResult<Recipients.OnboardingDetail, AxiosError<BFFErrorResponse, any>, UpdateOnboardingParams, unknown>;
|
|
13
|
+
export declare function useBlockOnboarding(): UseMutationResult<void, AxiosError<BFFErrorResponse, any>, BlockOnboardingParams, unknown>;
|
|
14
|
+
export declare function useUnblockOnboarding(): UseMutationResult<void, AxiosError<BFFErrorResponse, any>, UnblockOnboardingParams, unknown>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { AxiosError } from 'axios';
|
|
2
2
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
-
import { Recipients, GetRecipientsParams, GetRecipientByIdParams, GetOnboardingDetailParams, GetOnboardingTimelineParams } from '../../types/recipients';
|
|
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
6
|
export declare function useGetRecipientById(organizationCode: string, params: GetRecipientByIdParams, enabled?: boolean): UseQueryResult<Recipients.RecipientDetail, AxiosError<BFFErrorResponse>>;
|
|
7
7
|
export declare function useGetOnboardingDetail(organizationCode: string, params: GetOnboardingDetailParams, enabled?: boolean): UseQueryResult<Recipients.OnboardingDetail, AxiosError<BFFErrorResponse>>;
|
|
8
8
|
export declare function useGetOnboardingTimeline(organizationCode: string, params: GetOnboardingTimelineParams, enabled?: boolean): UseQueryResult<Recipients.OnboardingTimeline, AxiosError<BFFErrorResponse>>;
|
|
9
|
+
export declare function useGetRecipientExports(accountCode: string, params: GetRecipientExportsParams, enabled?: boolean): UseQueryResult<RecipientsExport.ExportListResponse, AxiosError<BFFErrorResponse>>;
|
|
10
|
+
export declare function useGetRecipientExportDownload(accountCode: string, exportCode: string, enabled?: boolean): UseQueryResult<{
|
|
11
|
+
redirect_link: string;
|
|
12
|
+
}, AxiosError<BFFErrorResponse>>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare namespace RecipientsExport {
|
|
2
|
+
interface ExportFilters {
|
|
3
|
+
type?: string;
|
|
4
|
+
countries?: string[];
|
|
5
|
+
entity_types?: string[];
|
|
6
|
+
sort_by?: string;
|
|
7
|
+
sort_order?: string;
|
|
8
|
+
columns?: string[];
|
|
9
|
+
}
|
|
10
|
+
interface CreateExportRequest {
|
|
11
|
+
export_name: string;
|
|
12
|
+
filters: ExportFilters;
|
|
13
|
+
}
|
|
14
|
+
interface ExportItem {
|
|
15
|
+
code: string;
|
|
16
|
+
export_name: string;
|
|
17
|
+
status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED';
|
|
18
|
+
download_url: string | null;
|
|
19
|
+
error_message: string | null;
|
|
20
|
+
created_at: string;
|
|
21
|
+
}
|
|
22
|
+
interface ExportListResponse {
|
|
23
|
+
content: ExportItem[];
|
|
24
|
+
empty: boolean;
|
|
25
|
+
first: boolean;
|
|
26
|
+
last: boolean;
|
|
27
|
+
number: number;
|
|
28
|
+
number_of_elements: number;
|
|
29
|
+
size: number;
|
|
30
|
+
pageable: {
|
|
31
|
+
offset: number;
|
|
32
|
+
page_number: number;
|
|
33
|
+
page_size: number;
|
|
34
|
+
paged: boolean;
|
|
35
|
+
sort: {
|
|
36
|
+
empty: boolean;
|
|
37
|
+
sorted: boolean;
|
|
38
|
+
unsorted: boolean;
|
|
39
|
+
};
|
|
40
|
+
unpaged: boolean;
|
|
41
|
+
};
|
|
42
|
+
sort: {
|
|
43
|
+
empty: boolean;
|
|
44
|
+
sorted: boolean;
|
|
45
|
+
unsorted: boolean;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export interface GetRecipientExportsParams {
|
|
50
|
+
page?: number;
|
|
51
|
+
size?: number;
|
|
52
|
+
}
|