@yuno-payments/dashboard-api-mfe 0.44.1-beta.2 → 0.44.1-beta.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.
@@ -159,18 +159,10 @@ export declare class Api extends HttpClient {
159
159
  postExportMonitorsLogs<T>(payload: Audit.ExportMonitorsLogsRequest): Promise<AxiosResponse<T>>;
160
160
  getAuditExportsList<T>(reportType: Audit.AuditExportReportType): Promise<AxiosResponse<T>>;
161
161
  getAuditExportDownload<T>(reportId: string): Promise<AxiosResponse<T>>;
162
- postDashboardLogsExport<T>(payload: Audit.UnifiedExportRequest): Promise<AxiosResponse<T>>;
163
- getDashboardLogsExportStatus<T>(exportId: string): Promise<AxiosResponse<T>>;
164
- getDashboardLogsExportsList<T>(page?: number, size?: number): Promise<AxiosResponse<T>>;
165
- postApiLogsExport<T>(payload: Audit.UnifiedExportRequest): Promise<AxiosResponse<T>>;
166
- getApiLogsExportStatus<T>(exportId: string): Promise<AxiosResponse<T>>;
167
- getApiLogsExportsList<T>(page?: number, size?: number): Promise<AxiosResponse<T>>;
168
- postWebhookLogsExport<T>(payload: Audit.UnifiedExportRequest): Promise<AxiosResponse<T>>;
169
- getWebhookLogsExportStatus<T>(exportId: string): Promise<AxiosResponse<T>>;
170
- getWebhookLogsExportsList<T>(page?: number, size?: number): Promise<AxiosResponse<T>>;
171
- postMonitorLogsExport<T>(payload: Audit.UnifiedExportRequest): Promise<AxiosResponse<T>>;
172
- getMonitorLogsExportStatus<T>(exportId: string): Promise<AxiosResponse<T>>;
173
- getMonitorLogsExportsList<T>(page?: number, size?: number): Promise<AxiosResponse<T>>;
162
+ private getUnifiedExportsPath;
163
+ postUnifiedExport<T>(tab: Audit.UnifiedExportTabType, payload: Audit.UnifiedExportRequest): Promise<AxiosResponse<T>>;
164
+ getUnifiedExportStatus<T>(tab: Audit.UnifiedExportTabType, exportId: string): Promise<AxiosResponse<T>>;
165
+ getUnifiedExportsList<T>(tab: Audit.UnifiedExportTabType, page?: number, size?: number): Promise<AxiosResponse<T>>;
174
166
  postApiLogs<T>({ payload: { account_code, ...rest }, }: {
175
167
  payload: Audit.AuditApiLogsParams;
176
168
  }): Promise<AxiosResponse<T>>;
@@ -2,10 +2,11 @@ import { UseMutationResult } from '@tanstack/react-query';
2
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 useDashboardLogsExport(): UseMutationResult<Audit.UnifiedExportStartResponse, BFFErrorResponse, Audit.UnifiedExportRequest, unknown>;
6
- export declare function useApiLogsExport(): UseMutationResult<Audit.UnifiedExportStartResponse, BFFErrorResponse, Audit.UnifiedExportRequest, unknown>;
7
- export declare function useWebhookLogsExport(): UseMutationResult<Audit.UnifiedExportStartResponse, BFFErrorResponse, Audit.UnifiedExportRequest, unknown>;
8
- export declare function useMonitorLogsExport(): UseMutationResult<Audit.UnifiedExportStartResponse, BFFErrorResponse, Audit.UnifiedExportRequest, unknown>;
5
+ export interface UnifiedExportStartParams {
6
+ tab: Audit.UnifiedExportTabType;
7
+ payload: Audit.UnifiedExportRequest;
8
+ }
9
+ export declare function useUnifiedExportStart(): UseMutationResult<Audit.UnifiedExportStartResponse, BFFErrorResponse, UnifiedExportStartParams>;
9
10
  export declare function useExportApiLogs(): UseMutationResult<string, BFFErrorResponse, Audit.ExportApiLogsRequest>;
10
11
  export declare function useExportWebhooksLogs(): UseMutationResult<string, BFFErrorResponse, Audit.ExportWebhooksLogsRequest>;
11
12
  export declare function useExportDashboardLogs(): UseMutationResult<Audit.AuditExportResponse, BFFErrorResponse, Audit.ExportDashboardLogsRequest>;
@@ -12,11 +12,17 @@ export declare function useGetApiLogsDetailByPaymentCode(code: string | null | u
12
12
  export declare function useGetApiLogsByTransactionCode(transactionCode: string | null | undefined, accountCode: string | null | undefined): UseQueryResult<Audit.ApiLogByTransactionCode, BFFErrorResponse>;
13
13
  export declare function useGetAuditExportsList(reportType: Audit.AuditExportReportType, enabled?: boolean): UseQueryResult<Audit.AuditExportResponse[], BFFErrorResponse>;
14
14
  export declare function useGetAuditExportDownload(reportId: string, enabled?: boolean, onSuccess?: (data: Audit.AuditExportDownloadResponse) => void): UseQueryResult<Audit.AuditExportDownloadResponse, BFFErrorResponse>;
15
- export declare function useGetDashboardLogsExportStatus(exportId: string, enabled?: boolean, onSuccess?: (data: Audit.UnifiedExportStatusResponse) => void): UseQueryResult<Audit.UnifiedExportStatusResponse, BFFErrorResponse>;
16
- export declare function useGetDashboardLogsExportsList(page?: number, size?: number, enabled?: boolean): UseQueryResult<Audit.UnifiedExportListResponse, BFFErrorResponse>;
17
- export declare function useGetApiLogsExportStatus(exportId: string, enabled?: boolean, onSuccess?: (data: Audit.UnifiedExportStatusResponse) => void): UseQueryResult<Audit.UnifiedExportStatusResponse, BFFErrorResponse>;
18
- export declare function useGetApiLogsExportsList(page?: number, size?: number, enabled?: boolean): UseQueryResult<Audit.UnifiedExportListResponse, BFFErrorResponse>;
19
- export declare function useGetWebhookLogsExportStatus(exportId: string, enabled?: boolean, onSuccess?: (data: Audit.UnifiedExportStatusResponse) => void): UseQueryResult<Audit.UnifiedExportStatusResponse, BFFErrorResponse>;
20
- export declare function useGetWebhookLogsExportsList(page?: number, size?: number, enabled?: boolean): UseQueryResult<Audit.UnifiedExportListResponse, BFFErrorResponse>;
21
- export declare function useGetMonitorLogsExportStatus(exportId: string, enabled?: boolean, onSuccess?: (data: Audit.UnifiedExportStatusResponse) => void): UseQueryResult<Audit.UnifiedExportStatusResponse, BFFErrorResponse>;
22
- export declare function useGetMonitorLogsExportsList(page?: number, size?: number, enabled?: boolean): UseQueryResult<Audit.UnifiedExportListResponse, BFFErrorResponse>;
15
+ export interface UnifiedExportStatusQueryParams {
16
+ tab: Audit.UnifiedExportTabType;
17
+ exportId: string;
18
+ enabled?: boolean;
19
+ onSuccess?: (data: Audit.UnifiedExportStatusResponse) => void;
20
+ }
21
+ export declare function useGetUnifiedExportStatus({ tab, exportId, enabled, onSuccess, }: UnifiedExportStatusQueryParams): UseQueryResult<Audit.UnifiedExportStatusResponse, BFFErrorResponse>;
22
+ export interface UnifiedExportsListQueryParams {
23
+ tab: Audit.UnifiedExportTabType;
24
+ page?: number;
25
+ size?: number;
26
+ enabled?: boolean;
27
+ }
28
+ export declare function useGetUnifiedExportsList({ tab, page, size, enabled, }: UnifiedExportsListQueryParams): UseQueryResult<Audit.UnifiedExportListResponse, BFFErrorResponse>;
@@ -245,6 +245,7 @@ export declare namespace Audit {
245
245
  providers?: string[];
246
246
  traffic_redistribution?: boolean;
247
247
  }
248
+ type UnifiedExportTabType = 'dashboard-logs' | 'api-logs' | 'webhook-logs' | 'monitor-logs';
248
249
  interface UnifiedExportRequest {
249
250
  start_date: string;
250
251
  end_date: string;
@@ -253,16 +254,11 @@ export declare namespace Audit {
253
254
  accounts?: string[];
254
255
  columns?: string[];
255
256
  }
256
- type ApiLogsExportRequest = UnifiedExportRequest;
257
- type DashboardLogsExportRequest = UnifiedExportRequest;
258
- type WebhookLogsExportRequest = UnifiedExportRequest;
259
- type MonitorLogsExportRequest = UnifiedExportRequest;
260
257
  interface UnifiedExportStartResponse {
261
258
  export_id: string;
262
259
  status: AuditExportStatus;
263
260
  message: string;
264
261
  }
265
- type ApiLogsExportStartResponse = UnifiedExportStartResponse;
266
262
  interface UnifiedExportStatusResponse {
267
263
  export_id: string;
268
264
  status: AuditExportStatus;
@@ -271,14 +267,12 @@ export declare namespace Audit {
271
267
  export_name: string;
272
268
  error_message?: string | null;
273
269
  }
274
- type ApiLogsExportStatusResponse = UnifiedExportStatusResponse;
275
270
  interface UnifiedExportListResponse {
276
271
  exports: UnifiedExportStatusResponse[];
277
272
  total: number;
278
273
  page: number;
279
274
  size: number;
280
275
  }
281
- type ApiLogsExportListResponse = UnifiedExportListResponse;
282
276
  interface AuditExportResponse {
283
277
  report_id: string;
284
278
  report_type: AuditExportReportType;