@yuno-payments/dashboard-api-mfe 0.36.20 → 0.36.21-smart-recovery-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 +13 -0
- package/build/cjs/types/queries/reports/reports.query.d.ts +2 -4
- package/build/cjs/types/queries/users/users.query.d.ts +14 -1
- package/build/cjs/types/types/ai/ai.d.ts +50 -0
- package/build/cjs/types/types/reports/reports.d.ts +0 -13
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +13 -0
- package/build/esm/types/queries/reports/reports.query.d.ts +2 -4
- package/build/esm/types/queries/users/users.query.d.ts +14 -1
- package/build/esm/types/types/ai/ai.d.ts +50 -0
- package/build/esm/types/types/reports/reports.d.ts +0 -13
- package/build/index.d.ts +79 -18
- package/package.json +1 -1
|
@@ -470,5 +470,18 @@ export declare class Api extends HttpClient {
|
|
|
470
470
|
getChartsByUser<T>(): Promise<AxiosResponse<T, any>>;
|
|
471
471
|
getLanguages<T>(): Promise<AxiosResponse<T, any>>;
|
|
472
472
|
getTranslations<T>(): Promise<AxiosResponse<T, any>>;
|
|
473
|
+
getCommunications<T>(payload: {
|
|
474
|
+
start_date: string;
|
|
475
|
+
end_date: string;
|
|
476
|
+
account_codes: string[];
|
|
477
|
+
country: string[];
|
|
478
|
+
status: string[];
|
|
479
|
+
focus: string[];
|
|
480
|
+
skip: number;
|
|
481
|
+
limit: number;
|
|
482
|
+
search_value: string;
|
|
483
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
484
|
+
getCommunicationsFilters<T>(): Promise<AxiosResponse<T, any>>;
|
|
485
|
+
getCommunicationDetails<T>(communicationId: string, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
473
486
|
}
|
|
474
487
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import type { RefundPdfResponse, Reports, ReportType, TemplateType
|
|
2
|
+
import type { RefundPdfResponse, Reports, ReportType, TemplateType } from '../../types';
|
|
3
3
|
import { AxiosError } from 'axios';
|
|
4
4
|
export declare function useGetReportsList(): UseQueryResult<Array<Reports.IListReportsResponse>, unknown>;
|
|
5
5
|
export declare function useGetReportsListMultiEnv(enabled?: boolean): UseQueryResult<Reports.IRetrieveReportResponse[] | {
|
|
@@ -9,7 +9,5 @@ export declare function useGetDownloadReport(reportId: string, enabled: boolean
|
|
|
9
9
|
code: string;
|
|
10
10
|
}, unknown>;
|
|
11
11
|
export declare function useGetReportTemplates(enabled: boolean): UseQueryResult<Reports.ITemplate[], unknown>;
|
|
12
|
-
export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType
|
|
13
|
-
export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: Exclude<ReportType, ReportType.PAYOUTS>): UseQueryResult<Reports.IColumn[], unknown>;
|
|
14
|
-
export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType): UseQueryResult<Reports.IColumn[] | CentralizedColumn[], unknown>;
|
|
12
|
+
export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType): UseQueryResult<Reports.IColumn[], unknown>;
|
|
15
13
|
export declare function useGetRefundPdf(transactionCode: string): UseQueryResult<RefundPdfResponse, AxiosError>;
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
|
-
import { Accounts, User } from '../../types';
|
|
3
|
+
import { Accounts, User, AI } from '../../types';
|
|
4
4
|
export declare function useGetProfile(): UseQueryResult<User.UserResponsePayload, unknown>;
|
|
5
5
|
export declare function useGetPermissions(organizationCode: any, accountCode: any): UseQueryResult<Accounts.PermissionsResponse[], unknown>;
|
|
6
6
|
export declare function useEmailVerification(email: string): UseQueryResult<User.UserResponseEmailVerification | string, unknown>;
|
|
7
7
|
export declare function useGetLoginMethods(): UseQueryResult<unknown, unknown>;
|
|
8
8
|
export declare function useGetImpersonationUsers(): UseQueryResult<User.ImpersonationUser[], AxiosError>;
|
|
9
9
|
export declare function useGetImpersonationEnabled(): UseQueryResult<User.ImpersonationEnabledResponse, AxiosError>;
|
|
10
|
+
export declare function useCommunications(payload: {
|
|
11
|
+
start_date: string;
|
|
12
|
+
end_date: string;
|
|
13
|
+
account_codes: string[];
|
|
14
|
+
country: string[];
|
|
15
|
+
status: string[];
|
|
16
|
+
focus: string[];
|
|
17
|
+
skip: number;
|
|
18
|
+
limit: number;
|
|
19
|
+
search_value: string;
|
|
20
|
+
}): UseQueryResult<AI.CommunicationsListResponse, AxiosError>;
|
|
21
|
+
export declare function useCommunicationsFilters(): UseQueryResult<AI.CommunicationsFiltersResponse, AxiosError>;
|
|
22
|
+
export declare function useCommunicationDetails(communicationId: string, accountCode: string): UseQueryResult<AI.CommunicationDetailsResponse, AxiosError>;
|
|
@@ -23,4 +23,54 @@ export declare namespace AI {
|
|
|
23
23
|
REFUSED = "REFUSED",
|
|
24
24
|
FRONT_FAILED = "FRONT_FAILED"
|
|
25
25
|
}
|
|
26
|
+
type CommunicationItem = {
|
|
27
|
+
communication_id: string;
|
|
28
|
+
order_id: string;
|
|
29
|
+
payment_id: string;
|
|
30
|
+
status: string;
|
|
31
|
+
destination_phone: string | null;
|
|
32
|
+
duration: number;
|
|
33
|
+
country: string;
|
|
34
|
+
channel: string;
|
|
35
|
+
messages: number;
|
|
36
|
+
focus: string | null;
|
|
37
|
+
created_at: string;
|
|
38
|
+
};
|
|
39
|
+
type CommunicationsListResponse = {
|
|
40
|
+
total: number;
|
|
41
|
+
skip: number;
|
|
42
|
+
limit: number;
|
|
43
|
+
data: CommunicationItem[];
|
|
44
|
+
};
|
|
45
|
+
type CommunicationsFiltersResponse = {
|
|
46
|
+
countries: string[];
|
|
47
|
+
status: string[];
|
|
48
|
+
focus: string[];
|
|
49
|
+
};
|
|
50
|
+
type TranscriptionMessage = {
|
|
51
|
+
id: string;
|
|
52
|
+
role: string;
|
|
53
|
+
content: string | null;
|
|
54
|
+
created_at: string;
|
|
55
|
+
provider_status: string;
|
|
56
|
+
status: string;
|
|
57
|
+
content_type: string | null;
|
|
58
|
+
media_content_type: string | null;
|
|
59
|
+
media_url: string | null;
|
|
60
|
+
};
|
|
61
|
+
type CommunicationDetailsResponse = {
|
|
62
|
+
communication_id: string;
|
|
63
|
+
order_id: string;
|
|
64
|
+
payment_id: string;
|
|
65
|
+
status: string;
|
|
66
|
+
destination_phone: string | null;
|
|
67
|
+
duration: number;
|
|
68
|
+
country: string;
|
|
69
|
+
channel: string;
|
|
70
|
+
messages: number;
|
|
71
|
+
focus: string | null;
|
|
72
|
+
created_at: string;
|
|
73
|
+
summary: string;
|
|
74
|
+
transcription: TranscriptionMessage[];
|
|
75
|
+
};
|
|
26
76
|
}
|
|
@@ -65,19 +65,6 @@ export declare namespace Reports {
|
|
|
65
65
|
name: string;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
export type CentralizedColumn = {
|
|
69
|
-
name: string;
|
|
70
|
-
table: string;
|
|
71
|
-
snowflake_name: string;
|
|
72
|
-
snowflake_table: string;
|
|
73
|
-
report_name: string;
|
|
74
|
-
type: 'general';
|
|
75
|
-
report_type: 'PAYOUTS';
|
|
76
|
-
dashboard_name: string;
|
|
77
|
-
selection: 'ALL';
|
|
78
|
-
CreatedAt: Date;
|
|
79
|
-
UpdatedAt: Date;
|
|
80
|
-
};
|
|
81
68
|
export declare enum ReportType {
|
|
82
69
|
PAYMENTS = "PAYMENTS",
|
|
83
70
|
TRANSACTIONS = "TRANSACTIONS",
|