@yuno-payments/dashboard-api-mfe 0.40.10-beta.2 → 0.40.12-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.
@@ -125,6 +125,7 @@ export declare class Api extends HttpClient {
125
125
  }): Promise<AxiosResponse<T>>;
126
126
  postResendWebhooks<T>({ codes, }: Audit.AuditWebhooksResendParams): Promise<AxiosResponse<T>>;
127
127
  postExportApiLogs<T>(payload: Audit.ExportApiLogsRequest): Promise<AxiosResponse<T>>;
128
+ postExportWebhooksLogs<T>(payload: Audit.ExportWebhooksLogsRequest): Promise<AxiosResponse<T>>;
128
129
  postApiLogs<T>({ payload: { account_code, ...rest }, }: {
129
130
  payload: Audit.AuditApiLogsParams;
130
131
  }): Promise<AxiosResponse<T>>;
@@ -1,5 +1,6 @@
1
1
  import { UseMutationResult } from '@tanstack/react-query';
2
- import { Audit, Reports } from '../../types';
2
+ import { Audit } from '../../types';
3
3
  import { BFFErrorResponse } from '../smart-routing';
4
4
  export declare function useResendWebhooks(): UseMutationResult<void, BFFErrorResponse, Audit.AuditWebhooksResendParams>;
5
- export declare function useExportApiLogs(): UseMutationResult<Reports.ICreateReportsResponse, BFFErrorResponse, Audit.ExportApiLogsRequest>;
5
+ export declare function useExportApiLogs(): UseMutationResult<string, BFFErrorResponse, Audit.ExportApiLogsRequest>;
6
+ export declare function useExportWebhooksLogs(): UseMutationResult<string, BFFErrorResponse, Audit.ExportWebhooksLogsRequest>;
@@ -107,6 +107,16 @@ export declare namespace Audit {
107
107
  type: string;
108
108
  percentage: number;
109
109
  }
110
+ interface ExportWebhooksLogsRequest {
111
+ report_name: string;
112
+ account_code?: string[];
113
+ start_date: string;
114
+ end_date: string;
115
+ time_zone: string;
116
+ organizationCode?: string;
117
+ status_codes?: string[];
118
+ methods?: string[];
119
+ }
110
120
  interface ExportApiLogsRequest {
111
121
  report_name: string;
112
122
  account_code?: string[];