@yuno-payments/dashboard-api-mfe 0.36.20-CORECM-11508.1 → 0.36.20-CORECM-11508.3

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.
@@ -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 } 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 {
@@ -219,7 +219,12 @@ export declare class Api extends HttpClient {
219
219
  getStylingSettings({ accountCode, environment, }: {
220
220
  accountCode: string;
221
221
  environment?: string;
222
- }): Promise<AxiosResponse<Styling.Settings, any>>;
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>>;
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>>;
@@ -232,9 +237,9 @@ export declare class Api extends HttpClient {
232
237
  createReportTemplate<T>(payload: Reports.ICreateTemplate): Promise<AxiosResponse<T>>;
233
238
  updateReportTemplate<T>(payload: Reports.ICreateTemplate): Promise<AxiosResponse<T>>;
234
239
  getReportColumns<T>(templateType: TemplateType, reportType: ReportType): Promise<any>;
235
- getRefundPdf<T>(transactionCode: any, organizationCode: any): Promise<AxiosResponse<T, any>>;
236
- getProofOfCancel<T>(transactionCode: string, organizationCode: string): Promise<AxiosResponse<T, any>>;
237
- getProofOfPayment<T>(transactionCode: string, organizationCode: string): Promise<AxiosResponse<T, any>>;
240
+ getRefundPdf<T>(transactionCode: string, organizationCode: string, accountCode: string): Promise<AxiosResponse<T, any>>;
241
+ getProofOfCancel<T>(transactionCode: string, organizationCode: string, accountCode: string): Promise<AxiosResponse<T, any>>;
242
+ getProofOfPayment<T>(transactionCode: string, organizationCode: string, accountCode: string): Promise<AxiosResponse<T, any>>;
238
243
  getScheduledReport<T>(reportType: any): Promise<AxiosResponse<T>>;
239
244
  postScheduledReport<T>(payload: IListScheduledReportsResponse): Promise<AxiosResponse<T>>;
240
245
  updateScheduledReport<T>(reportCode: string, payload: IListScheduledReportsResponse): 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, StylingSettings } 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<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>;
@@ -31,6 +31,6 @@ export declare function usePostFraudTransactions(params: GetTransactionsParams):
31
31
  export declare function useGetPayoutDetail(params: GetPayoutDetail): UseQueryResult<Payouts.Details | AxiosError>;
32
32
  export declare function useGetPayoutTransactionDetail(params: GetPayoutTransactionDetail): UseQueryResult;
33
33
  export declare function useGetPayoutHistoryDetail(params: GetPayoutDetail): UseQueryResult;
34
- export declare function useGetProofOfCancel(transactionCode: string): UseQueryResult<RefundPdfResponse, AxiosError>;
35
- export declare function useGetProofOfPayment(transactionCode: string): UseQueryResult<RefundPdfResponse, AxiosError>;
34
+ export declare function useGetProofOfCancel(transactionCode: string, accountCode: string): UseQueryResult<RefundPdfResponse, AxiosError>;
35
+ export declare function useGetProofOfPayment(transactionCode: string, accountCode: string): UseQueryResult<RefundPdfResponse, AxiosError>;
36
36
  export declare function useSendPaymentNotification(params: SendPaymentNotification.Params, body: SendPaymentNotification.Body, options: SendPaymentNotification.Options): UseQueryResult<SendPaymentNotification.Response, AxiosError>;
@@ -10,4 +10,4 @@ export declare function useGetDownloadReport(reportId: string, enabled: boolean
10
10
  }, unknown>;
11
11
  export declare function useGetReportTemplates(enabled: boolean): UseQueryResult<Reports.ITemplate[], unknown>;
12
12
  export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType): UseQueryResult<Reports.IColumn[], unknown>;
13
- export declare function useGetRefundPdf(transactionCode: string): UseQueryResult<RefundPdfResponse, AxiosError>;
13
+ export declare function useGetRefundPdf(transactionCode: string, accountCode: string): UseQueryResult<RefundPdfResponse, AxiosError>;
@@ -74,3 +74,58 @@ 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?: 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
+ }