@yuno-payments/dashboard-api-mfe 2.3.0 → 2.4.0

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.
@@ -167,9 +167,6 @@ export declare class Api extends HttpClient {
167
167
  postUnifiedExport<T>(tab: Audit.UnifiedExportTabType, payload: Audit.UnifiedExportRequest): Promise<AxiosResponse<T>>;
168
168
  getUnifiedExportStatus<T>(tab: Audit.UnifiedExportTabType, exportId: string): Promise<AxiosResponse<T>>;
169
169
  getUnifiedExportsList<T>(tab: Audit.UnifiedExportTabType, page?: number, size?: number): Promise<AxiosResponse<T>>;
170
- createAuditSubscription<T>(payload: Audit.CreateAuditSubscriptionPayload): Promise<AxiosResponse<T>>;
171
- listAuditSubscriptions<T>(): Promise<AxiosResponse<T>>;
172
- deleteAuditSubscription<T>(code: string): Promise<AxiosResponse<T>>;
173
170
  createAuditSubscriptionV2<T>(payload: Audit.CreateAuditSubscriptionV2Payload): Promise<AxiosResponse<T>>;
174
171
  listAuditSubscriptionsV2<T>(params?: Audit.ListAuditSubscriptionsV2Params): Promise<AxiosResponse<T>>;
175
172
  deleteAuditSubscriptionV2<T>(code: string): Promise<AxiosResponse<T>>;
@@ -424,6 +421,7 @@ export declare class Api extends HttpClient {
424
421
  postAuditMonitors<T>(payload: Audit.AuditMonitorsParams): Promise<AxiosResponse<T, any>>;
425
422
  getAuditMonitorDetail<T>(id: number | null): Promise<AxiosResponse<T, any>>;
426
423
  getAuditEvents<T>(params: Audit.AuditEventsParams): Promise<AxiosResponse<T, any>>;
424
+ postDashboardLogs<T>(params: Audit.AuditEventsParams): Promise<AxiosResponse<T, any>>;
427
425
  /**
428
426
  * Fetches one audit event by its unique code. Powers the dashboard
429
427
  * notification deep-link (DAS-15765): a bell card carries only the event
@@ -1,4 +1,3 @@
1
1
  export * from './audit.mutation';
2
2
  export * from './audit-api.mutation';
3
- export * from './audit-subscriptions.mutation';
4
3
  export * from './audit-subscriptions-v2.mutation';
@@ -3,6 +3,7 @@ import { AxiosError } from 'axios';
3
3
  import type { Audit } from '../../types';
4
4
  import { BFFErrorResponse } from '../../mutations';
5
5
  export declare function useGetAuditEvents(params: Audit.AuditEventsParams): UseQueryResult<Audit.AuditEvents, AxiosError>;
6
+ export declare function useGetDashboardLogs(params: Audit.AuditEventsParams): UseQueryResult<Audit.AuditEvents, AxiosError>;
6
7
  /**
7
8
  * Fetches one audit event by its unique code. Powers the dashboard
8
9
  * notification deep-link (DAS-15765): clicking "View in audit log" on a bell
@@ -1,3 +1,2 @@
1
1
  export * from './audit.query';
2
- export * from './audit-subscriptions.query';
3
2
  export * from './audit-subscriptions-v2.query';
@@ -312,28 +312,6 @@ export declare namespace Audit {
312
312
  total_pages: number;
313
313
  data: ApiLogV3Item[];
314
314
  }
315
- interface SourceSpec {
316
- events: string[];
317
- }
318
- interface AuditSubscriptionGroup {
319
- code: string;
320
- user_code: string;
321
- user_email: string;
322
- organization_code: string;
323
- sources: Record<string, SourceSpec>;
324
- account_codes: string[];
325
- enabled: boolean;
326
- created_at: string;
327
- updated_at: string;
328
- last_fired_at?: string | null;
329
- }
330
- type CreateAuditSubscriptionPayload = {
331
- sources: Record<string, SourceSpec>;
332
- account_codes: string[];
333
- };
334
- interface ListAuditSubscriptionsResponse {
335
- data: AuditSubscriptionGroup[];
336
- }
337
315
  interface AuditSubscriptionGroupV2 {
338
316
  code: string;
339
317
  user_code: string;