@yuno-payments/dashboard-api-mfe 0.36.23 → 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>;
@@ -1,6 +1,7 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { GetPaymentsParams, GetTransactionDetailsV2Params, GetTransactionsParams, GetPaymentsEvaluatedParams, GetPayoutDetail, GetPayoutTransactionDetail } from '../../api';
3
- import { Organization, Payment, Payouts, RefundPdfResponse, SendPaymentNotification } from '../../types';
3
+ import type { Organization, Payment, Payouts, RefundPdfResponse, SendPaymentNotification } from '../../types';
4
+ import { PaymentFiltersSection } from '../../types/payment/payment';
4
5
  import { CustomAxiosResponse } from '../../utils/handler-error';
5
6
  import { AxiosError } from 'axios';
6
7
  export declare function usePostPaymentsLazy(params: GetPaymentsParams): UseQueryResult<Payment.PaymentList | AxiosError>;
@@ -14,7 +15,7 @@ export declare function useGetTransactionRawResponse({ transaction_code, enabled
14
15
  export declare function useGetPaymentsMethodsByCountry(params: Organization.PaymentMethods): UseQueryResult<Organization.PaymentMethods[], CustomAxiosResponse<null>>;
15
16
  export declare function useGetPaymentMethodsAndProviders(): UseQueryResult<Payment.PaymentMethodsAndProviders, unknown>;
16
17
  export declare function useGetCardBrands(): UseQueryResult<Payment.CardBrand[], unknown>;
17
- export declare function useGetPaymentFilters(enabled?: boolean, section?: Payment.PaymentFiltersSection): UseQueryResult<Payment.Filters, CustomAxiosResponse>;
18
+ export declare function useGetPaymentFilters(enabled?: boolean, section?: PaymentFiltersSection): UseQueryResult<Payment.Filters, CustomAxiosResponse>;
18
19
  export declare function useGetPaymentMetricsFilters(): UseQueryResult<Payment.PaymentMethodsAndProviders, unknown>;
19
20
  export declare function useGetPaymentTransactionsDetails({ transaction_code, enabled, }: {
20
21
  transaction_code: string;
@@ -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
+ }
@@ -328,10 +328,6 @@ export declare namespace Payment {
328
328
  fst_response_code: string[];
329
329
  fst_provider_score: string[];
330
330
  }
331
- enum PaymentFiltersSection {
332
- PAYMENTS = "PAYMENTS",
333
- INSIGHTS = "INSIGHTS"
334
- }
335
331
  interface TransactionHistoryByPayment {
336
332
  payment_method_type: string;
337
333
  amount_value: number;
@@ -413,3 +409,7 @@ export declare namespace SendPaymentNotification {
413
409
  response_message: string;
414
410
  }
415
411
  }
412
+ export declare enum PaymentFiltersSection {
413
+ PAYMENTS = "payments",
414
+ INSIGHTS = "insights"
415
+ }