@yuno-payments/dashboard-api-mfe 0.36.19 → 0.36.20-CORECM-11508.2

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.
@@ -213,9 +213,18 @@ 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
- getStylingSettings({ accountCode }: {
216
+ getStylingSdkDynamic({ 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
+ changeStylingSettings({ accountCode, environment, payload, }: {
224
+ accountCode: string;
225
+ environment?: string;
226
+ payload: Styling.UpdateSettings;
227
+ }): Promise<AxiosResponse<Styling.UpdateSettingsResponse, any>>;
219
228
  emailVerification<T>(email: any): Promise<AxiosResponse<T, any>>;
220
229
  createReconciliationsReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
221
230
  createReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
@@ -1,6 +1,13 @@
1
- export declare function useGetStylingTheme({ accountCode }: {
1
+ import { Styling } from '../../../types/checkout/styling/styling';
2
+ export declare function useGetStylingSdkDynamic({ accountCode, }: {
2
3
  accountCode: string;
3
- }): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.Theme, unknown>;
4
- export declare function useGetStylingSettings({ accountCode, }: {
4
+ }): import("@tanstack/react-query").UseQueryResult<Styling.Settings, unknown>;
5
+ export declare function useGetStylingSettings({ accountCode, environment, }: {
5
6
  accountCode: string;
6
- }): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.Settings, unknown>;
7
+ environment?: string;
8
+ }): import("@tanstack/react-query").UseQueryResult<Styling.Settings, unknown>;
9
+ export declare function useChangeStylingSettings(): import("@tanstack/react-query").UseMutationResult<Styling.UpdateSettingsResponse, unknown, {
10
+ accountCode: string;
11
+ environment?: string | undefined;
12
+ payload: Styling.UpdateSettings;
13
+ }, unknown>;
@@ -74,3 +74,58 @@ export declare namespace Styling {
74
74
  }
75
75
  export {};
76
76
  }
77
+ export declare namespace Styling {
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?: string;
110
+ mobile?: string;
111
+ };
112
+ card?: {
113
+ save_on_success?: boolean;
114
+ visualization_mode?: string;
115
+ };
116
+ web_sdk?: {
117
+ render_mode?: string;
118
+ hide_pay_button?: boolean;
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
+ }