@yuno-payments/dashboard-api-mfe 0.36.20-CORECM-11508.1 → 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.
@@ -220,6 +220,11 @@ export declare class Api extends HttpClient {
220
220
  accountCode: string;
221
221
  environment?: string;
222
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>>;
223
228
  emailVerification<T>(email: any): Promise<AxiosResponse<T, any>>;
224
229
  createReconciliationsReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
225
230
  createReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
@@ -1,10 +1,13 @@
1
- export declare function useGetStylingTheme({ accountCode }: {
2
- accountCode: string;
3
- }): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.Theme, unknown>;
1
+ import { Styling } from '../../../types/checkout/styling/styling';
4
2
  export declare function useGetStylingSdkDynamic({ accountCode, }: {
5
3
  accountCode: string;
6
- }): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.Settings, unknown>;
4
+ }): import("@tanstack/react-query").UseQueryResult<Styling.Settings, unknown>;
7
5
  export declare function useGetStylingSettings({ accountCode, environment, }: {
8
6
  accountCode: string;
9
7
  environment?: string;
10
- }): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.Settings, unknown>;
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
+ }