@yuno-payments/dashboard-api-mfe 0.36.24 → 0.36.25-CORECM-11508.1

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.
@@ -1,14 +1,14 @@
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';
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 } from '../types/checkout/styling/styling';
11
+ import { Styling, StylingSettings } 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,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<StylingSettings.UpdateSettingsResponse, any>>;
223
+ changeStylingSettings({ accountCode, environment, payload, }: {
224
+ accountCode: string;
225
+ environment?: string;
226
+ payload: StylingSettings.UpdateSettings;
227
+ }): Promise<AxiosResponse<StylingSettings.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>>;
@@ -297,7 +306,7 @@ export declare class Api extends HttpClient {
297
306
  getPermissionsCatalog<T>(): Promise<AxiosResponse<T>>;
298
307
  changePasswordV2<T>(body: any): Promise<AxiosResponse<T>>;
299
308
  getCardBrands<T>(): Promise<AxiosResponse<T>>;
300
- getPaymentFilters<T>(section: string): Promise<AxiosResponse<T>>;
309
+ getPaymentFilters<T>(section: PaymentFiltersSection): Promise<AxiosResponse<T>>;
301
310
  getPaymentMetricsFilters<T>(): Promise<AxiosResponse<T>>;
302
311
  sendPaymentNotification(params: SendPaymentNotification.Params, body: SendPaymentNotification.Body): Promise<AxiosResponse<SendPaymentNotification.Response>>;
303
312
  postAuditMonitors<T>(payload: Audit.AuditMonitorsParams): Promise<AxiosResponse<T, any>>;
@@ -1,6 +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>;
4
- export declare function useGetStylingSettings({ accountCode, }: {
1
+ import { StylingSettings } from '../../../types/checkout/styling/styling';
2
+ export declare function useGetStylingSdkDynamic({ accountCode, }: {
5
3
  accountCode: string;
6
4
  }): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.Settings, unknown>;
5
+ export declare function useGetStylingSettings({ accountCode, environment, }: {
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, {
10
+ accountCode: string;
11
+ environment?: string | undefined;
12
+ payload: StylingSettings.UpdateSettings;
13
+ }, unknown>;
@@ -74,3 +74,66 @@ 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
+ }