@yuno-payments/dashboard-api-mfe 0.36.20-CORECM-11508.1 → 0.36.20
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 +1 -5
- package/build/cjs/types/queries/checkouts/styling/styling.query.d.ts +1 -5
- package/build/cjs/types/queries/reports/reports.query.d.ts +4 -2
- package/build/cjs/types/types/reports/reports.d.ts +13 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +1 -5
- package/build/esm/types/queries/checkouts/styling/styling.query.d.ts +1 -5
- package/build/esm/types/queries/reports/reports.query.d.ts +4 -2
- package/build/esm/types/types/reports/reports.d.ts +13 -0
- package/build/index.d.ts +20 -13
- package/package.json +1 -1
|
@@ -213,13 +213,9 @@ export declare class Api extends HttpClient {
|
|
|
213
213
|
accountCode: string;
|
|
214
214
|
}): Promise<AxiosResponse<Styling.Theme, any>>;
|
|
215
215
|
updateStylingTheme({ accountCode, theme, }: Styling.UpdateStylingThemeParams): Promise<AxiosResponse<unknown, any>>;
|
|
216
|
-
|
|
216
|
+
getStylingSettings({ accountCode }: {
|
|
217
217
|
accountCode: any;
|
|
218
218
|
}): Promise<AxiosResponse<Styling.Settings, any>>;
|
|
219
|
-
getStylingSettings({ accountCode, environment, }: {
|
|
220
|
-
accountCode: string;
|
|
221
|
-
environment?: string;
|
|
222
|
-
}): Promise<AxiosResponse<Styling.Settings, any>>;
|
|
223
219
|
emailVerification<T>(email: any): Promise<AxiosResponse<T, any>>;
|
|
224
220
|
createReconciliationsReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
225
221
|
createReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export declare function useGetStylingTheme({ accountCode }: {
|
|
2
2
|
accountCode: string;
|
|
3
3
|
}): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.Theme, unknown>;
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function useGetStylingSettings({ accountCode, }: {
|
|
5
5
|
accountCode: string;
|
|
6
6
|
}): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.Settings, unknown>;
|
|
7
|
-
export declare function useGetStylingSettings({ accountCode, environment, }: {
|
|
8
|
-
accountCode: string;
|
|
9
|
-
environment?: string;
|
|
10
|
-
}): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.Settings, unknown>;
|
|
@@ -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,7 @@ 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<
|
|
12
|
+
export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType.PAYOUTS): UseQueryResult<CentralizedColumn[], unknown>;
|
|
13
|
+
export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: Exclude<ReportType, ReportType.PAYOUTS>): UseQueryResult<Reports.IColumn[], unknown>;
|
|
14
|
+
export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType): UseQueryResult<Reports.IColumn[] | CentralizedColumn[], unknown>;
|
|
13
15
|
export declare function useGetRefundPdf(transactionCode: 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",
|