@yuno-payments/dashboard-api-mfe 0.36.24 → 0.36.25
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.map +1 -1
- package/build/cjs/types/api/api.d.ts +2 -2
- package/build/cjs/types/queries/reports/reports.query.d.ts +2 -2
- package/build/cjs/types/types/reports/reports.d.ts +13 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +2 -2
- package/build/esm/types/queries/reports/reports.query.d.ts +2 -2
- package/build/esm/types/types/reports/reports.d.ts +13 -0
- package/build/index.d.ts +16 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { HttpClient } from '../lib/http-client';
|
|
3
3
|
import { GetPaymentsParams, GetReconciliationMetricParams, FirebaseUserSubscribe, PathNotification, TimeZoneCatalog, GetTransactionDetailsV2Params, MfaUserSubscribe, UserInviteMultiaccountPayload, GetTransactionsParams, PaymentsSettings, GetPayoutDetail, GetPayoutTransactionDetail, PinnedSections, ThemeSettings } from './api.types';
|
|
4
|
-
import { Audit, OperationTransaction, Organization, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI } from '../types';
|
|
4
|
+
import { Audit, OperationTransaction, Organization, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection } from '../types';
|
|
5
5
|
import { ConversionRateParams, ConversionRateBody, ConversionRateOverview, ConversionRateOverviewFraud3ds } from '../types/data-report/conversion-rate.types';
|
|
6
6
|
import { RoutingMonitors } from '../types/routing-monitors';
|
|
7
7
|
import { ChangePaymentsWebhook } from '../mutations';
|
|
@@ -297,7 +297,7 @@ export declare class Api extends HttpClient {
|
|
|
297
297
|
getPermissionsCatalog<T>(): Promise<AxiosResponse<T>>;
|
|
298
298
|
changePasswordV2<T>(body: any): Promise<AxiosResponse<T>>;
|
|
299
299
|
getCardBrands<T>(): Promise<AxiosResponse<T>>;
|
|
300
|
-
getPaymentFilters<T>(section:
|
|
300
|
+
getPaymentFilters<T>(section: PaymentFiltersSection): Promise<AxiosResponse<T>>;
|
|
301
301
|
getPaymentMetricsFilters<T>(): Promise<AxiosResponse<T>>;
|
|
302
302
|
sendPaymentNotification(params: SendPaymentNotification.Params, body: SendPaymentNotification.Body): Promise<AxiosResponse<SendPaymentNotification.Response>>;
|
|
303
303
|
postAuditMonitors<T>(payload: Audit.AuditMonitorsParams): Promise<AxiosResponse<T, any>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import type { RefundPdfResponse, Reports, ReportType, TemplateType } from '../../types';
|
|
2
|
+
import type { RefundPdfResponse, Reports, ReportType, TemplateType, CentralizedColumn } from '../../types';
|
|
3
3
|
import { AxiosError } from 'axios';
|
|
4
4
|
export declare function useGetReportsList(): UseQueryResult<Array<Reports.IListReportsResponse>, unknown>;
|
|
5
5
|
export declare function useGetReportsListMultiEnv(enabled?: boolean): UseQueryResult<Reports.IRetrieveReportResponse[] | {
|
|
@@ -9,5 +9,5 @@ export declare function useGetDownloadReport(reportId: string, enabled: boolean
|
|
|
9
9
|
code: string;
|
|
10
10
|
}, unknown>;
|
|
11
11
|
export declare function useGetReportTemplates(enabled: boolean): UseQueryResult<Reports.ITemplate[], unknown>;
|
|
12
|
-
export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType): UseQueryResult<Reports.IColumn[], unknown>;
|
|
12
|
+
export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType): UseQueryResult<Reports.IColumn[] | CentralizedColumn[], unknown>;
|
|
13
13
|
export declare function useGetRefundPdf(transactionCode: string, accountCode: string): UseQueryResult<RefundPdfResponse, AxiosError>;
|
|
@@ -65,6 +65,19 @@ export declare namespace Reports {
|
|
|
65
65
|
name: string;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
+
export type CentralizedColumn = {
|
|
69
|
+
name: string;
|
|
70
|
+
table: string;
|
|
71
|
+
snowflake_name: string;
|
|
72
|
+
snowflake_table: string;
|
|
73
|
+
report_name: string;
|
|
74
|
+
type: 'general';
|
|
75
|
+
report_type: 'PAYOUTS';
|
|
76
|
+
dashboard_name: string;
|
|
77
|
+
selection: 'ALL';
|
|
78
|
+
CreatedAt: Date;
|
|
79
|
+
UpdatedAt: Date;
|
|
80
|
+
};
|
|
68
81
|
export declare enum ReportType {
|
|
69
82
|
PAYMENTS = "PAYMENTS",
|
|
70
83
|
TRANSACTIONS = "TRANSACTIONS",
|