@yuno-payments/dashboard-api-mfe 1.8.6 → 1.8.7-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 +14 -7
- package/build/cjs/types/queries/recipients/recipients.query.d.ts +6 -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 +14 -7
- package/build/esm/types/queries/recipients/recipients.query.d.ts +6 -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 +78 -9
- package/package.json +1 -1
|
@@ -668,6 +668,12 @@ export declare class Api extends HttpClient {
|
|
|
668
668
|
getRecipientById<T>(organizationCode: string, recipientId: string): Promise<AxiosResponse<T, any>>;
|
|
669
669
|
getOnboardingDetail<T>(organizationCode: string, recipientId: string, onboardingId: string): Promise<AxiosResponse<T, any>>;
|
|
670
670
|
getOnboardingTimeline<T>(organizationCode: string, onboardingId: string): Promise<AxiosResponse<T, any>>;
|
|
671
|
+
createRecipientExport<T>(payload: unknown, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
672
|
+
getRecipientExports<T>(params: {
|
|
673
|
+
page?: number;
|
|
674
|
+
size?: number;
|
|
675
|
+
}, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
676
|
+
downloadRecipientExport<T>(exportCode: string, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
671
677
|
createRecipient<T>(organizationCode: string, payload: CreateRecipientPayload): Promise<AxiosResponse<T, any>>;
|
|
672
678
|
updateRecipient<T>(organizationCode: string, recipientId: string, payload: UpdateRecipientPayload): Promise<AxiosResponse<T, any>>;
|
|
673
679
|
deleteRecipient<T>(organizationCode: string, recipientId: string): Promise<AxiosResponse<T, any>>;
|
|
@@ -1,11 +1,18 @@
|
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
7
|
+
export declare function useCreateRecipientExport(): UseMutationResult<RecipientsExport.ExportItem, unknown>;
|
|
8
|
+
export declare function useDownloadRecipientExport(): UseMutationResult<{
|
|
9
|
+
download_url: string;
|
|
10
|
+
expires_in_seconds: number;
|
|
11
|
+
}, unknown>;
|
|
12
|
+
export declare function useCreateRecipient(): UseMutationResult<Recipients.RecipientDetail, AxiosError<BFFErrorResponse, any>, CreateRecipientParams, unknown>;
|
|
13
|
+
export declare function useUpdateRecipient(): UseMutationResult<Recipients.RecipientDetail, AxiosError<BFFErrorResponse, any>, UpdateRecipientParams, unknown>;
|
|
14
|
+
export declare function useDeleteRecipient(): UseMutationResult<void, AxiosError<BFFErrorResponse, any>, DeleteRecipientParams, unknown>;
|
|
15
|
+
export declare function useCreateOnboarding(): UseMutationResult<Recipients.OnboardingDetail, AxiosError<BFFErrorResponse, any>, CreateOnboardingParams, unknown>;
|
|
16
|
+
export declare function useUpdateOnboarding(): UseMutationResult<Recipients.OnboardingDetail, AxiosError<BFFErrorResponse, any>, UpdateOnboardingParams, unknown>;
|
|
17
|
+
export declare function useBlockOnboarding(): UseMutationResult<void, AxiosError<BFFErrorResponse, any>, BlockOnboardingParams, unknown>;
|
|
18
|
+
export declare function useUnblockOnboarding(): UseMutationResult<void, AxiosError<BFFErrorResponse, any>, UnblockOnboardingParams, unknown>;
|
|
@@ -1,8 +1,13 @@
|
|
|
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
|
+
download_url: string;
|
|
12
|
+
expires_in_seconds: number;
|
|
13
|
+
}, 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
|
+
}
|