@yuno-payments/dashboard-api-mfe 0.36.25-CORECM-11508.1 → 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 +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +2 -11
- package/build/cjs/types/queries/checkouts/styling/styling.query.d.ts +4 -11
- package/build/cjs/types/queries/reports/reports.query.d.ts +2 -2
- package/build/cjs/types/types/checkout/styling/styling.d.ts +0 -63
- 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 +2 -11
- package/build/esm/types/queries/checkouts/styling/styling.query.d.ts +4 -11
- package/build/esm/types/queries/reports/reports.query.d.ts +2 -2
- package/build/esm/types/types/checkout/styling/styling.d.ts +0 -63
- package/build/esm/types/types/reports/reports.d.ts +13 -0
- package/build/index.d.ts +21 -86
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import { ChangePaymentsWebhook } from '../mutations';
|
|
|
8
8
|
import { S3Client } from '../types/s3-client';
|
|
9
9
|
import { AllowedList } from '../types/allowed-list';
|
|
10
10
|
import { Cost } from '../types/connection/costs';
|
|
11
|
-
import { Styling
|
|
11
|
+
import { Styling } from '../types/checkout/styling/styling';
|
|
12
12
|
import { FeatureFlags } from '../types/feature-flags/intex';
|
|
13
13
|
import { FeatureFlagsResult } from '../queries';
|
|
14
14
|
interface S3Payload {
|
|
@@ -213,18 +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<StylingSettings.UpdateSettingsResponse, any>>;
|
|
223
|
-
changeStylingSettings({ accountCode, environment, payload, }: {
|
|
224
|
-
accountCode: string;
|
|
225
|
-
environment?: string;
|
|
226
|
-
payload: StylingSettings.UpdateSettings;
|
|
227
|
-
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any>>;
|
|
228
219
|
emailVerification<T>(email: any): Promise<AxiosResponse<T, any>>;
|
|
229
220
|
createReconciliationsReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
230
221
|
createReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function useGetStylingSdkDynamic({ accountCode, }: {
|
|
1
|
+
export declare function useGetStylingTheme({ accountCode }: {
|
|
3
2
|
accountCode: string;
|
|
4
|
-
}): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.
|
|
5
|
-
export declare function useGetStylingSettings({ accountCode,
|
|
6
|
-
accountCode: string;
|
|
7
|
-
environment?: string;
|
|
8
|
-
}): import("@tanstack/react-query").UseQueryResult<StylingSettings.UpdateSettingsResponse, unknown>;
|
|
9
|
-
export declare function useChangeStylingSettings(): import("@tanstack/react-query").UseMutationResult<StylingSettings.UpdateSettingsResponse, unknown, {
|
|
3
|
+
}): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.Theme, unknown>;
|
|
4
|
+
export declare function useGetStylingSettings({ accountCode, }: {
|
|
10
5
|
accountCode: string;
|
|
11
|
-
|
|
12
|
-
payload: StylingSettings.UpdateSettings;
|
|
13
|
-
}, unknown>;
|
|
6
|
+
}): 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,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>;
|
|
@@ -74,66 +74,3 @@ export declare namespace Styling {
|
|
|
74
74
|
}
|
|
75
75
|
export {};
|
|
76
76
|
}
|
|
77
|
-
export declare namespace StylingSettings {
|
|
78
|
-
interface UpdateSettings {
|
|
79
|
-
styles: {
|
|
80
|
-
global?: {
|
|
81
|
-
accent_color?: string;
|
|
82
|
-
primary_background_color?: string;
|
|
83
|
-
primary_text_color?: string;
|
|
84
|
-
primary_button_text_color?: string;
|
|
85
|
-
secondary_background_color?: string;
|
|
86
|
-
secondary_text_color?: string;
|
|
87
|
-
secondary_button_background_color?: string;
|
|
88
|
-
secondary_button_text_color?: string;
|
|
89
|
-
font_family?: string;
|
|
90
|
-
};
|
|
91
|
-
header?: {
|
|
92
|
-
logo_border_size?: number;
|
|
93
|
-
logo_border_color?: string;
|
|
94
|
-
logo_corner_radius?: number;
|
|
95
|
-
font_size?: number;
|
|
96
|
-
font_weight?: number;
|
|
97
|
-
};
|
|
98
|
-
button?: {
|
|
99
|
-
corner_radius?: number;
|
|
100
|
-
border_size?: number;
|
|
101
|
-
primary_border_color?: string;
|
|
102
|
-
secondary_border_color?: string;
|
|
103
|
-
font_size?: number;
|
|
104
|
-
font_weight?: number;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
settings: {
|
|
108
|
-
sdk_type?: {
|
|
109
|
-
web?: 'SEAMLESS' | 'FULL';
|
|
110
|
-
mobile?: 'SEAMLESS' | 'FULL';
|
|
111
|
-
};
|
|
112
|
-
card?: {
|
|
113
|
-
save_on_success?: boolean;
|
|
114
|
-
visualization_mode?: VisualizationMode;
|
|
115
|
-
};
|
|
116
|
-
web_sdk?: {
|
|
117
|
-
hide_pay_button?: boolean;
|
|
118
|
-
render_mode?: RenderMode;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
interface UpdateSettingsResponse extends UpdateSettings {
|
|
123
|
-
external_fonts: {
|
|
124
|
-
family_name: string;
|
|
125
|
-
files: {
|
|
126
|
-
url: string;
|
|
127
|
-
weight: number;
|
|
128
|
-
}[];
|
|
129
|
-
}[];
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
export declare enum RenderMode {
|
|
133
|
-
MODAL = "MODAL",
|
|
134
|
-
UNFOLDED = "UNFOLDED"
|
|
135
|
-
}
|
|
136
|
-
export declare enum VisualizationMode {
|
|
137
|
-
ONE_STEP = "ONE_STEP",
|
|
138
|
-
STEP_BY_STEP = "STEP_BY_STEP"
|
|
139
|
-
}
|
|
@@ -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",
|