@yuno-payments/dashboard-api-mfe 0.40.2 → 0.40.4
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 +201 -36
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/queries/index.d.ts +1 -0
- package/build/cjs/types/queries/smart-recovery/index.d.ts +1 -0
- package/build/cjs/types/queries/smart-recovery/smart-recovery-overview.query.d.ts +9 -0
- package/build/cjs/types/types/index.d.ts +1 -0
- package/build/cjs/types/types/smart-recovery/index.d.ts +1 -0
- package/build/cjs/types/types/smart-recovery/smart-recovery-overview.types.d.ts +94 -0
- package/build/esm/index.js +201 -36
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/queries/index.d.ts +1 -0
- package/build/esm/types/queries/smart-recovery/index.d.ts +1 -0
- package/build/esm/types/queries/smart-recovery/smart-recovery-overview.query.d.ts +9 -0
- package/build/esm/types/types/index.d.ts +1 -0
- package/build/esm/types/types/smart-recovery/index.d.ts +1 -0
- package/build/esm/types/types/smart-recovery/smart-recovery-overview.types.d.ts +94 -0
- package/build/index.d.ts +103 -2
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './smart-recovery-overview.query';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import { SmartRecoveryOverviewQueryParams, DailyCommunicationsAndConversionRate, CommunicationsBySubStatus, DailyCommunicationsSubStatusDistribution, RecoveredTPV, RecoveredPayments } from '../../types/smart-recovery';
|
|
3
|
+
import { AxiosError } from 'axios';
|
|
4
|
+
import { BFFErrorResponse } from '../../mutations';
|
|
5
|
+
export declare const useCommunicationsByDay: (params: SmartRecoveryOverviewQueryParams, options?: UseQueryOptions<DailyCommunicationsAndConversionRate, AxiosError<BFFErrorResponse>>) => import("@tanstack/react-query").UseQueryResult<DailyCommunicationsAndConversionRate, AxiosError<BFFErrorResponse, any>>;
|
|
6
|
+
export declare const useCommunicationsBySubstatus: (params: SmartRecoveryOverviewQueryParams, options?: UseQueryOptions<CommunicationsBySubStatus, AxiosError<BFFErrorResponse>>) => import("@tanstack/react-query").UseQueryResult<CommunicationsBySubStatus, AxiosError<BFFErrorResponse, any>>;
|
|
7
|
+
export declare const useCommunicationsSubstatusByDay: (params: SmartRecoveryOverviewQueryParams, options?: UseQueryOptions<DailyCommunicationsSubStatusDistribution, AxiosError<BFFErrorResponse>>) => import("@tanstack/react-query").UseQueryResult<DailyCommunicationsSubStatusDistribution, AxiosError<BFFErrorResponse, any>>;
|
|
8
|
+
export declare const useRecoveredTPVByDay: (params: SmartRecoveryOverviewQueryParams, options?: UseQueryOptions<RecoveredTPV, AxiosError<BFFErrorResponse>>) => import("@tanstack/react-query").UseQueryResult<RecoveredTPV, AxiosError<BFFErrorResponse, any>>;
|
|
9
|
+
export declare const useRecoveredPaymentsByDay: (params: SmartRecoveryOverviewQueryParams, options?: UseQueryOptions<RecoveredPayments, AxiosError<BFFErrorResponse>>) => import("@tanstack/react-query").UseQueryResult<RecoveredPayments, AxiosError<BFFErrorResponse, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './smart-recovery-overview.types';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export interface CommunicationDistribution {
|
|
2
|
+
key: string;
|
|
3
|
+
total: number;
|
|
4
|
+
percentage?: number;
|
|
5
|
+
current_label?: string;
|
|
6
|
+
current_amount?: number;
|
|
7
|
+
past_amount?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface CommunicationStatusDistribution {
|
|
10
|
+
key: 'CREATED' | 'SUCCEEDED' | 'PENDING' | 'DECLINED';
|
|
11
|
+
total: number;
|
|
12
|
+
percentage: number;
|
|
13
|
+
amount?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface DailyCommunicationsAndConversionRate {
|
|
16
|
+
communications: {
|
|
17
|
+
distribution: CommunicationDistribution[];
|
|
18
|
+
total: number;
|
|
19
|
+
};
|
|
20
|
+
conversion_rate: {
|
|
21
|
+
distribution: CommunicationDistribution[];
|
|
22
|
+
total: number;
|
|
23
|
+
};
|
|
24
|
+
completed_communications: {
|
|
25
|
+
distribution: CommunicationDistribution[];
|
|
26
|
+
total: number;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export interface CommunicationsBySubStatus {
|
|
30
|
+
distribution: CommunicationStatusDistribution[];
|
|
31
|
+
total: number;
|
|
32
|
+
}
|
|
33
|
+
export interface DailyCommunicationsSubStatusDistribution {
|
|
34
|
+
[key: string]: CommunicationDistribution[];
|
|
35
|
+
}
|
|
36
|
+
export interface RecoveredPayments {
|
|
37
|
+
distribution: CommunicationDistribution[];
|
|
38
|
+
total: number;
|
|
39
|
+
total_amount: number;
|
|
40
|
+
}
|
|
41
|
+
export interface RecoveredTPV {
|
|
42
|
+
distribution: CommunicationDistribution[];
|
|
43
|
+
total: number;
|
|
44
|
+
total_amount: number;
|
|
45
|
+
}
|
|
46
|
+
export interface SmartRecoveryOverviewFilters {
|
|
47
|
+
date?: string;
|
|
48
|
+
start_date?: string;
|
|
49
|
+
end_date?: string;
|
|
50
|
+
account_code?: string[];
|
|
51
|
+
countries?: string[];
|
|
52
|
+
channels?: string[];
|
|
53
|
+
focuses?: string[];
|
|
54
|
+
communication_type?: string[];
|
|
55
|
+
sub_status?: string[];
|
|
56
|
+
}
|
|
57
|
+
export interface SmartRecoveryOverviewQueryParams extends SmartRecoveryOverviewFilters {
|
|
58
|
+
organization_code: string;
|
|
59
|
+
timezone?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface PlotRow {
|
|
62
|
+
date?: string;
|
|
63
|
+
label?: string;
|
|
64
|
+
value: string;
|
|
65
|
+
}
|
|
66
|
+
export interface Plot {
|
|
67
|
+
type: 'BAR' | 'LINE' | 'TABLE';
|
|
68
|
+
label: string;
|
|
69
|
+
value: string;
|
|
70
|
+
unit: 'NUMERIC' | 'PERCENTAGE' | 'MONETARY' | 'CURRENCY';
|
|
71
|
+
currency?: string;
|
|
72
|
+
percentage?: string;
|
|
73
|
+
rows?: PlotRow[] | null;
|
|
74
|
+
}
|
|
75
|
+
export interface CommunicationsByDayResponse {
|
|
76
|
+
title: string;
|
|
77
|
+
plots: Plot[];
|
|
78
|
+
}
|
|
79
|
+
export interface CommunicationsBySubstatusResponse {
|
|
80
|
+
title: string;
|
|
81
|
+
plots: Plot[];
|
|
82
|
+
}
|
|
83
|
+
export interface CommunicationsSubstatusByDayResponse {
|
|
84
|
+
title: string;
|
|
85
|
+
plots: Plot[];
|
|
86
|
+
}
|
|
87
|
+
export interface RecoveredTPVByDayResponse {
|
|
88
|
+
title: string;
|
|
89
|
+
plots: Plot[];
|
|
90
|
+
}
|
|
91
|
+
export interface RecoveredPaymentsByDayResponse {
|
|
92
|
+
title: string;
|
|
93
|
+
plots: Plot[];
|
|
94
|
+
}
|