@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.
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +7 -0
- package/build/cjs/types/queries/audit/audit.query.d.ts +7 -0
- package/build/cjs/types/types/audit/audit.d.ts +2 -0
- package/build/cjs/types/types/data-report/fraud.types.d.ts +3 -0
- package/build/cjs/types/types/user/user.d.ts +0 -1
- package/build/esm/index.js +5 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +7 -0
- package/build/esm/types/queries/audit/audit.query.d.ts +7 -0
- package/build/esm/types/types/audit/audit.d.ts +2 -0
- package/build/esm/types/types/data-report/fraud.types.d.ts +3 -0
- package/build/esm/types/types/user/user.d.ts +0 -1
- package/build/index.d.ts +20 -2
- package/package.json +1 -1
|
@@ -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;
|