@yuno-payments/dashboard-api-mfe 2.12.0 → 2.14.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.
@@ -717,6 +717,13 @@ export declare class Api extends HttpClient {
717
717
  postPlaygroundExecuteFlow<T>(payload: Playground.ExecuteFlowPayload): Promise<AxiosResponse<T, unknown>>;
718
718
  postApiLogsListV2<T>(payload: Audit.ApiLogsListParams): Promise<AxiosResponse<T>>;
719
719
  getApiLogsByPaymentId<T>(paymentId: string, accountCode: string, createdAtFrom?: string): Promise<AxiosResponse<T>>;
720
+ getRelatedEventsByPaymentId<T>(paymentId: string, accountCode: string, params?: {
721
+ category?: string;
722
+ page?: number;
723
+ size?: number;
724
+ created_at_from?: string;
725
+ created_at_to?: string;
726
+ }): Promise<AxiosResponse<T>>;
720
727
  postApiLogsStatsRequestsV2<T>(payload: Audit.ApiLogsStatsParams): Promise<AxiosResponse<T>>;
721
728
  postApiLogsStatsErrorsV2<T>(payload: Audit.ApiLogsStatsParams): Promise<AxiosResponse<T>>;
722
729
  postApiLogsStatsErrorsByEndpointV2<T>(payload: Audit.ApiLogsStatsParams): Promise<AxiosResponse<T>>;
@@ -28,6 +28,13 @@ export declare function usePostApiLogsV2(params: Audit.ApiLogsListParams & {
28
28
  * GET /api-logs/payment/:paymentId via the new audit-logs microservice.
29
29
  */
30
30
  export declare function useGetApiLogsByPaymentId(paymentId: string | null | undefined, accountCode: string | null | undefined, createdAtFrom?: string): UseQueryResult<Audit.ApiLogsV3ListResponse, BFFErrorResponse>;
31
+ /**
32
+ * GET /api-logs/payment/:paymentId/related-events via the audit-logs microservice.
33
+ * Returns the customer, checkout session and payment method API logs tied to the
34
+ * payment, in the same shape as useGetApiLogsByPaymentId but with a `category`
35
+ * field on each row. Same VIEW_API_LOGS permission — no new scope.
36
+ */
37
+ export declare function useGetRelatedEventsByPaymentId(paymentId: string | null | undefined, accountCode: string | null | undefined, createdAtFrom?: string): UseQueryResult<Audit.ApiLogsV3ListResponse, BFFErrorResponse>;
31
38
  export declare function useGetAuditExportsList(reportType: Audit.AuditExportReportType, enabled?: boolean): UseQueryResult<Audit.AuditExportResponse[], BFFErrorResponse>;
32
39
  export declare function useGetAuditExportDownload(reportId: string, enabled?: boolean, onSuccess?: (data: Audit.AuditExportDownloadResponse) => void): UseQueryResult<Audit.AuditExportDownloadResponse, BFFErrorResponse>;
33
40
  export interface UnifiedExportStatusQueryParams {
@@ -305,6 +305,7 @@ export declare namespace Audit {
305
305
  request: unknown;
306
306
  response: unknown;
307
307
  }
308
+ type ApiLogRelatedCategory = 'customer' | 'checkout_session' | 'payment_method';
308
309
  interface ApiLogV3Item {
309
310
  organization_code: string | null;
310
311
  account_code: string | null;
@@ -317,6 +318,7 @@ export declare namespace Audit {
317
318
  response_body: unknown;
318
319
  response_time: number | null;
319
320
  created_at: string | null;
321
+ category?: ApiLogRelatedCategory | null;
320
322
  }
321
323
  interface ApiLogsV3ListResponse {
322
324
  page: number;
@@ -10,6 +10,8 @@ export interface InsightsFraudParams {
10
10
  new_version: boolean;
11
11
  payment_statuses: string;
12
12
  card_brand: string;
13
+ /** Date anchor for the chargebacks widgets: 'PAYMENT' | 'CHARGEBACK' */
14
+ chargeback_date?: string;
13
15
  }
14
16
  /**
15
17
  * Body shape sent to datalake-ms /insights/* endpoints.
@@ -31,6 +33,7 @@ export interface InsightsFraudBody {
31
33
  card_brand?: string[];
32
34
  source?: string;
33
35
  new_version?: boolean;
36
+ chargebacks_filtered_date?: string;
34
37
  }
35
38
  export interface PeriodicityRecord {
36
39
  [key: string]: number;
@@ -50,7 +50,6 @@ export declare namespace User {
50
50
  }
51
51
  interface UserSettings extends UserSettingsTable {
52
52
  language: string;
53
- mfa_active: boolean;
54
53
  timezone: Timezone;
55
54
  viewed_tutorials: string[];
56
55
  theme?: {