@yuno-payments/dashboard-api-mfe 0.36.26 → 0.36.30
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 +26 -8
- package/build/cjs/types/mutations/checkouts/checkouts.mutation.d.ts +1 -1
- package/build/cjs/types/mutations/checkouts/index.d.ts +0 -1
- package/build/cjs/types/queries/checkouts/checkouts.query.d.ts +1 -1
- package/build/cjs/types/queries/checkouts/styling/styling.query.d.ts +11 -4
- package/build/cjs/types/queries/reports/reports.query.d.ts +1 -1
- package/build/cjs/types/queries/users/users.query.d.ts +14 -1
- package/build/cjs/types/types/ai/ai.d.ts +50 -0
- package/build/cjs/types/types/checkout/styling/styling.d.ts +63 -8
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +26 -8
- package/build/esm/types/mutations/checkouts/checkouts.mutation.d.ts +1 -1
- package/build/esm/types/mutations/checkouts/index.d.ts +0 -1
- package/build/esm/types/queries/checkouts/checkouts.query.d.ts +1 -1
- package/build/esm/types/queries/checkouts/styling/styling.query.d.ts +11 -4
- package/build/esm/types/queries/reports/reports.query.d.ts +1 -1
- package/build/esm/types/queries/users/users.query.d.ts +14 -1
- package/build/esm/types/types/ai/ai.d.ts +50 -0
- package/build/esm/types/types/checkout/styling/styling.d.ts +63 -8
- package/build/index.d.ts +234 -94
- package/package.json +1 -1
- package/build/cjs/types/mutations/checkouts/styling/styling.mutation.d.ts +0 -2
- package/build/esm/types/mutations/checkouts/styling/styling.mutation.d.ts +0 -2
|
@@ -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 {
|
|
@@ -194,7 +194,7 @@ export declare class Api extends HttpClient {
|
|
|
194
194
|
accountCode: any;
|
|
195
195
|
}): Promise<AxiosResponse<Checkout.CheckoutList[]>>;
|
|
196
196
|
/**
|
|
197
|
-
* @deprecated since v0.28.6. Use
|
|
197
|
+
* @deprecated since v0.28.6. Use getStylingSettings instead
|
|
198
198
|
*/
|
|
199
199
|
getCheckoutTemplate<T>({ accountCode }: {
|
|
200
200
|
accountCode: any;
|
|
@@ -202,20 +202,25 @@ export declare class Api extends HttpClient {
|
|
|
202
202
|
getNameAndIcon({ paymentMethodType, type, }: Checkout.GetNameAndIconArgs): Promise<AxiosResponse<Checkout.GetNameAndIconResponse>>;
|
|
203
203
|
getRequiredFields({ paymentMethodType, type, }: Checkout.GetRequiredFieldsArgs): Promise<AxiosResponse<Checkout.GetRequiredFieldsResponse>>;
|
|
204
204
|
/**
|
|
205
|
-
* @deprecated since v0.28.6. Use
|
|
205
|
+
* @deprecated since v0.28.6. Use changeStylingSettings instead
|
|
206
206
|
*/
|
|
207
207
|
updateCheckoutTemplate<T>({ accountCode, template, }: {
|
|
208
208
|
accountCode: any;
|
|
209
209
|
template: any;
|
|
210
210
|
}): Promise<AxiosResponse<T>>;
|
|
211
211
|
updateIsActiveCheckout(args: Checkout.UpdateIsActiveCheckoutParams): Promise<AxiosResponse>;
|
|
212
|
-
|
|
213
|
-
accountCode: string;
|
|
214
|
-
}): Promise<AxiosResponse<Styling.Theme, any>>;
|
|
215
|
-
updateStylingTheme({ accountCode, theme, }: Styling.UpdateStylingThemeParams): Promise<AxiosResponse<unknown, any>>;
|
|
216
|
-
getStylingSettings({ accountCode }: {
|
|
212
|
+
getStylingSdkDynamic({ accountCode }: {
|
|
217
213
|
accountCode: any;
|
|
218
214
|
}): Promise<AxiosResponse<Styling.Settings, any>>;
|
|
215
|
+
getStylingSettings({ accountCode, environment, }: {
|
|
216
|
+
accountCode: string;
|
|
217
|
+
environment?: string;
|
|
218
|
+
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any>>;
|
|
219
|
+
changeStylingSettings({ accountCode, environment, payload, }: {
|
|
220
|
+
accountCode: string;
|
|
221
|
+
environment?: string;
|
|
222
|
+
payload: StylingSettings.UpdateSettings;
|
|
223
|
+
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any>>;
|
|
219
224
|
emailVerification<T>(email: any): Promise<AxiosResponse<T, any>>;
|
|
220
225
|
createReconciliationsReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
221
226
|
createReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
@@ -470,5 +475,18 @@ export declare class Api extends HttpClient {
|
|
|
470
475
|
getChartsByUser<T>(): Promise<AxiosResponse<T, any>>;
|
|
471
476
|
getLanguages<T>(): Promise<AxiosResponse<T, any>>;
|
|
472
477
|
getTranslations<T>(): Promise<AxiosResponse<T, any>>;
|
|
478
|
+
getCommunications<T>(payload: {
|
|
479
|
+
start_date: string;
|
|
480
|
+
end_date: string;
|
|
481
|
+
account_codes: string[];
|
|
482
|
+
country: string[];
|
|
483
|
+
status: string[];
|
|
484
|
+
focus: string[];
|
|
485
|
+
skip: number;
|
|
486
|
+
limit: number;
|
|
487
|
+
search_value: string;
|
|
488
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
489
|
+
getCommunicationsFilters<T>(): Promise<AxiosResponse<T, any>>;
|
|
490
|
+
getCommunicationDetails<T>(communicationId: string, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
473
491
|
}
|
|
474
492
|
export {};
|
|
@@ -3,7 +3,7 @@ import { Checkout } from '../../types';
|
|
|
3
3
|
import { AxiosResponse } from 'axios';
|
|
4
4
|
export declare function useUpdateIsActiveCheckout(options?: UseMutationOptions<AxiosResponse, unknown, Checkout.UpdateIsActiveCheckoutParams>): import("@tanstack/react-query").UseMutationResult<AxiosResponse<any, any>, unknown, Checkout.UpdateIsActiveCheckoutParams, unknown>;
|
|
5
5
|
/**
|
|
6
|
-
* @deprecated since version 0.28.6. use
|
|
6
|
+
* @deprecated since version 0.28.6. use useChangeStylingSettings instead
|
|
7
7
|
*/
|
|
8
8
|
export declare function useUpdateCheckoutTemplate(): import("@tanstack/react-query").UseMutationResult<Checkout.CheckoutList, unknown, {
|
|
9
9
|
accountCode: string;
|
|
@@ -4,7 +4,7 @@ export declare function useGetCheckouts({ accountCode }: {
|
|
|
4
4
|
accountCode: any;
|
|
5
5
|
}): UseQueryResult<Checkout.CheckoutList[], unknown>;
|
|
6
6
|
/**
|
|
7
|
-
* @deprecated since version 0.28.6. use
|
|
7
|
+
* @deprecated since version 0.28.6. use useGetStylingSettings instead
|
|
8
8
|
*/
|
|
9
9
|
export declare function useGetCheckoutTemplate({ accountCode, }: {
|
|
10
10
|
accountCode: any;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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>;
|
|
@@ -9,5 +9,5 @@ export declare function useGetDownloadReport(reportId: string, enabled: boolean
|
|
|
9
9
|
code: string;
|
|
10
10
|
}, unknown>;
|
|
11
11
|
export declare function useGetReportTemplates(enabled: boolean): UseQueryResult<Reports.ITemplate[], unknown>;
|
|
12
|
-
export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType): UseQueryResult<
|
|
12
|
+
export declare function useGetReportColumns(enabled: boolean, templateType: TemplateType, reportType: ReportType): UseQueryResult<CentralizedColumn[], unknown>;
|
|
13
13
|
export declare function useGetRefundPdf(transactionCode: string, accountCode: string): UseQueryResult<RefundPdfResponse, AxiosError>;
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
|
-
import { Accounts, User } from '../../types';
|
|
3
|
+
import { Accounts, User, AI } from '../../types';
|
|
4
4
|
export declare function useGetProfile(): UseQueryResult<User.UserResponsePayload, unknown>;
|
|
5
5
|
export declare function useGetPermissions(organizationCode: any, accountCode: any): UseQueryResult<Accounts.PermissionsResponse[], unknown>;
|
|
6
6
|
export declare function useEmailVerification(email: string): UseQueryResult<User.UserResponseEmailVerification | string, unknown>;
|
|
7
7
|
export declare function useGetLoginMethods(): UseQueryResult<unknown, unknown>;
|
|
8
8
|
export declare function useGetImpersonationUsers(): UseQueryResult<User.ImpersonationUser[], AxiosError>;
|
|
9
9
|
export declare function useGetImpersonationEnabled(): UseQueryResult<User.ImpersonationEnabledResponse, AxiosError>;
|
|
10
|
+
export declare function useCommunications(payload: {
|
|
11
|
+
start_date: string;
|
|
12
|
+
end_date: string;
|
|
13
|
+
account_codes: string[];
|
|
14
|
+
country: string[];
|
|
15
|
+
status: string[];
|
|
16
|
+
focus: string[];
|
|
17
|
+
skip: number;
|
|
18
|
+
limit: number;
|
|
19
|
+
search_value: string;
|
|
20
|
+
}): UseQueryResult<AI.CommunicationsListResponse, AxiosError>;
|
|
21
|
+
export declare function useCommunicationsFilters(): UseQueryResult<AI.CommunicationsFiltersResponse, AxiosError>;
|
|
22
|
+
export declare function useCommunicationDetails(communicationId: string, accountCode: string): UseQueryResult<AI.CommunicationDetailsResponse, AxiosError>;
|
|
@@ -23,4 +23,54 @@ export declare namespace AI {
|
|
|
23
23
|
REFUSED = "REFUSED",
|
|
24
24
|
FRONT_FAILED = "FRONT_FAILED"
|
|
25
25
|
}
|
|
26
|
+
type CommunicationItem = {
|
|
27
|
+
communication_id: string;
|
|
28
|
+
order_id: string;
|
|
29
|
+
payment_id: string;
|
|
30
|
+
status: string;
|
|
31
|
+
destination_phone: string | null;
|
|
32
|
+
duration: number;
|
|
33
|
+
country: string;
|
|
34
|
+
channel: string;
|
|
35
|
+
messages: number;
|
|
36
|
+
focus: string | null;
|
|
37
|
+
created_at: string;
|
|
38
|
+
};
|
|
39
|
+
type CommunicationsListResponse = {
|
|
40
|
+
total: number;
|
|
41
|
+
skip: number;
|
|
42
|
+
limit: number;
|
|
43
|
+
data: CommunicationItem[];
|
|
44
|
+
};
|
|
45
|
+
type CommunicationsFiltersResponse = {
|
|
46
|
+
countries: string[];
|
|
47
|
+
status: string[];
|
|
48
|
+
focus: string[];
|
|
49
|
+
};
|
|
50
|
+
type TranscriptionMessage = {
|
|
51
|
+
id: string;
|
|
52
|
+
role: string;
|
|
53
|
+
content: string | null;
|
|
54
|
+
created_at: string;
|
|
55
|
+
provider_status: string;
|
|
56
|
+
status: string;
|
|
57
|
+
content_type: string | null;
|
|
58
|
+
media_content_type: string | null;
|
|
59
|
+
media_url: string | null;
|
|
60
|
+
};
|
|
61
|
+
type CommunicationDetailsResponse = {
|
|
62
|
+
communication_id: string;
|
|
63
|
+
order_id: string;
|
|
64
|
+
payment_id: string;
|
|
65
|
+
status: string;
|
|
66
|
+
destination_phone: string | null;
|
|
67
|
+
duration: number;
|
|
68
|
+
country: string;
|
|
69
|
+
channel: string;
|
|
70
|
+
messages: number;
|
|
71
|
+
focus: string | null;
|
|
72
|
+
created_at: string;
|
|
73
|
+
summary: string;
|
|
74
|
+
transcription: TranscriptionMessage[];
|
|
75
|
+
};
|
|
26
76
|
}
|
|
@@ -61,16 +61,71 @@ export declare namespace Styling {
|
|
|
61
61
|
account_code: string;
|
|
62
62
|
sections: Sections;
|
|
63
63
|
}
|
|
64
|
-
interface ThemeWithPartialSections {
|
|
65
|
-
account_code: string;
|
|
66
|
-
sections: Partial<Sections>;
|
|
67
|
-
}
|
|
68
|
-
export interface UpdateStylingThemeParams {
|
|
69
|
-
accountCode: string;
|
|
70
|
-
theme: ThemeWithPartialSections;
|
|
71
|
-
}
|
|
72
64
|
export interface Settings {
|
|
73
65
|
sdk_dynamic: boolean;
|
|
74
66
|
}
|
|
75
67
|
export {};
|
|
76
68
|
}
|
|
69
|
+
export declare namespace StylingSettings {
|
|
70
|
+
interface UpdateSettings {
|
|
71
|
+
styles: {
|
|
72
|
+
global?: {
|
|
73
|
+
accent_color?: string;
|
|
74
|
+
primary_background_color?: string;
|
|
75
|
+
primary_text_color?: string;
|
|
76
|
+
primary_button_text_color?: string;
|
|
77
|
+
secondary_background_color?: string;
|
|
78
|
+
secondary_text_color?: string;
|
|
79
|
+
secondary_button_background_color?: string;
|
|
80
|
+
secondary_button_text_color?: string;
|
|
81
|
+
font_family?: string;
|
|
82
|
+
};
|
|
83
|
+
header?: {
|
|
84
|
+
logo_border_size?: number;
|
|
85
|
+
logo_border_color?: string;
|
|
86
|
+
logo_corner_radius?: number;
|
|
87
|
+
font_size?: number;
|
|
88
|
+
font_weight?: number;
|
|
89
|
+
};
|
|
90
|
+
button?: {
|
|
91
|
+
corner_radius?: number;
|
|
92
|
+
border_size?: number;
|
|
93
|
+
primary_border_color?: string;
|
|
94
|
+
secondary_border_color?: string;
|
|
95
|
+
font_size?: number;
|
|
96
|
+
font_weight?: number;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
settings: {
|
|
100
|
+
sdk_type?: {
|
|
101
|
+
web?: 'SEAMLESS' | 'FULL';
|
|
102
|
+
mobile?: 'SEAMLESS' | 'FULL';
|
|
103
|
+
};
|
|
104
|
+
card?: {
|
|
105
|
+
save_on_success?: boolean;
|
|
106
|
+
visualization_mode?: VisualizationMode;
|
|
107
|
+
};
|
|
108
|
+
web_sdk?: {
|
|
109
|
+
hide_pay_button?: boolean;
|
|
110
|
+
render_mode?: RenderMode;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
interface UpdateSettingsResponse extends UpdateSettings {
|
|
115
|
+
external_fonts: {
|
|
116
|
+
family_name: string;
|
|
117
|
+
files: {
|
|
118
|
+
url: string;
|
|
119
|
+
weight: number;
|
|
120
|
+
}[];
|
|
121
|
+
}[];
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
export declare enum RenderMode {
|
|
125
|
+
MODAL = "MODAL",
|
|
126
|
+
UNFOLDED = "UNFOLDED"
|
|
127
|
+
}
|
|
128
|
+
export declare enum VisualizationMode {
|
|
129
|
+
ONE_STEP = "ONE_STEP",
|
|
130
|
+
STEP_BY_STEP = "STEP_BY_STEP"
|
|
131
|
+
}
|