@yuno-payments/dashboard-api-mfe 0.36.27 → 0.36.30

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.
@@ -475,5 +475,18 @@ export declare class Api extends HttpClient {
475
475
  getChartsByUser<T>(): Promise<AxiosResponse<T, any>>;
476
476
  getLanguages<T>(): Promise<AxiosResponse<T, any>>;
477
477
  getTranslations<T>(): Promise<AxiosResponse<T, any>>;
478
+ getCommunications<T>(payload: {
479
+ start_date: string;
480
+ end_date: string;
481
+ account_codes: string[];
482
+ country: string[];
483
+ status: string[];
484
+ focus: string[];
485
+ skip: number;
486
+ limit: number;
487
+ search_value: string;
488
+ }): Promise<AxiosResponse<T, any>>;
489
+ getCommunicationsFilters<T>(): Promise<AxiosResponse<T, any>>;
490
+ getCommunicationDetails<T>(communicationId: string, accountCode: string): Promise<AxiosResponse<T, any>>;
478
491
  }
479
492
  export {};
@@ -9,5 +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): UseQueryResult<Reports.IColumn[] | CentralizedColumn[], unknown>;
12
+ export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType): UseQueryResult<CentralizedColumn[], unknown>;
13
13
  export declare function useGetRefundPdf(transactionCode: string, accountCode: 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
  }