@yuno-payments/dashboard-api-mfe 1.7.1 → 1.7.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.
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +6 -0
- package/build/cjs/types/mutations/payment-links/payment-links.mutation.d.ts +9 -0
- package/build/cjs/types/types/checkout/styling/styling.d.ts +31 -0
- package/build/esm/index.js +5 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +6 -0
- package/build/esm/types/mutations/payment-links/payment-links.mutation.d.ts +9 -0
- package/build/esm/types/types/checkout/styling/styling.d.ts +31 -0
- package/build/index.d.ts +47 -1
- package/package.json +3 -2
|
@@ -443,6 +443,12 @@ export declare class Api extends HttpClient {
|
|
|
443
443
|
postDeletePaymentLink<T>({ code }: {
|
|
444
444
|
code: any;
|
|
445
445
|
}): Promise<AxiosResponse<T, any>>;
|
|
446
|
+
uploadPaymentLinkLogo<T>({ payload, }: {
|
|
447
|
+
payload: {
|
|
448
|
+
base64_data: string;
|
|
449
|
+
file_name: string;
|
|
450
|
+
};
|
|
451
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
446
452
|
postSubscription<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
447
453
|
getSubscriptionByCode<T>(subscriptionCode: string): Promise<AxiosResponse<T, any>>;
|
|
448
454
|
postPauseSubscription<T>(subscriptionCode: string): Promise<AxiosResponse<T, any>>;
|
|
@@ -10,3 +10,12 @@ export declare function useEditPaymentLinks(): import("@tanstack/react-query").U
|
|
|
10
10
|
accountCode: string;
|
|
11
11
|
paymentLinkCode: string;
|
|
12
12
|
}, unknown>;
|
|
13
|
+
export declare function useUploadPaymentLinkLogo(): import("@tanstack/react-query").UseMutationResult<{
|
|
14
|
+
s3_url: string;
|
|
15
|
+
logo: string;
|
|
16
|
+
}, unknown, {
|
|
17
|
+
payload: {
|
|
18
|
+
base64_data: string;
|
|
19
|
+
file_name: string;
|
|
20
|
+
};
|
|
21
|
+
}, unknown>;
|
|
@@ -66,6 +66,36 @@ export declare namespace Styling {
|
|
|
66
66
|
}
|
|
67
67
|
export {};
|
|
68
68
|
}
|
|
69
|
+
export interface PaymentLinkStyles {
|
|
70
|
+
panel?: {
|
|
71
|
+
left?: {
|
|
72
|
+
logo?: string | null;
|
|
73
|
+
background?: {
|
|
74
|
+
color?: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
checkbox?: {
|
|
79
|
+
color?: string;
|
|
80
|
+
};
|
|
81
|
+
border?: {
|
|
82
|
+
color?: string;
|
|
83
|
+
};
|
|
84
|
+
radio_button?: {
|
|
85
|
+
color?: string;
|
|
86
|
+
};
|
|
87
|
+
button?: {
|
|
88
|
+
text?: {
|
|
89
|
+
color?: string;
|
|
90
|
+
};
|
|
91
|
+
background?: {
|
|
92
|
+
color?: string;
|
|
93
|
+
hover?: {
|
|
94
|
+
color?: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
69
99
|
export declare namespace StylingSettings {
|
|
70
100
|
interface UpdateSettings {
|
|
71
101
|
styles: {
|
|
@@ -124,6 +154,7 @@ export declare namespace StylingSettings {
|
|
|
124
154
|
flags?: {
|
|
125
155
|
force_default_styles?: boolean;
|
|
126
156
|
};
|
|
157
|
+
payment_link_styles?: PaymentLinkStyles;
|
|
127
158
|
}
|
|
128
159
|
interface UpdateSettingsResponse extends UpdateSettings {
|
|
129
160
|
external_fonts: {
|