@yuno-payments/dashboard-api-mfe 0.40.12 → 0.40.13

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,18 @@ 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
+ size?: number;
120
+ page?: number;
121
+ }
110
122
  interface ExportApiLogsRequest {
111
123
  report_name: string;
112
124
  account_code?: string[];
@@ -116,6 +128,8 @@ export declare namespace Audit {
116
128
  organizationCode?: string;
117
129
  status_codes?: string[];
118
130
  methods?: string[];
131
+ size?: number;
132
+ page?: number;
119
133
  }
120
134
  interface AuditApiJSON {
121
135
  [key: string]: string;