@yuno-payments/dashboard-api-mfe 0.36.20-CORECM-11508.7 → 0.36.21-smart-recovery-beta.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.
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +18 -14
- package/build/cjs/types/queries/checkouts/styling/styling.query.d.ts +4 -11
- package/build/cjs/types/queries/payments/payments.query.d.ts +2 -2
- 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 +0 -63
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +18 -14
- package/build/esm/types/queries/checkouts/styling/styling.query.d.ts +4 -11
- package/build/esm/types/queries/payments/payments.query.d.ts +2 -2
- 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 +0 -63
- package/build/index.d.ts +88 -90
- package/package.json +1 -1
|
@@ -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
|
|
11
|
+
import { Styling } 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,18 +213,9 @@ 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
|
-
|
|
216
|
+
getStylingSettings({ 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>>;
|
|
228
219
|
emailVerification<T>(email: any): Promise<AxiosResponse<T, any>>;
|
|
229
220
|
createReconciliationsReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
230
221
|
createReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
@@ -237,9 +228,9 @@ export declare class Api extends HttpClient {
|
|
|
237
228
|
createReportTemplate<T>(payload: Reports.ICreateTemplate): Promise<AxiosResponse<T>>;
|
|
238
229
|
updateReportTemplate<T>(payload: Reports.ICreateTemplate): Promise<AxiosResponse<T>>;
|
|
239
230
|
getReportColumns<T>(templateType: TemplateType, reportType: ReportType): Promise<any>;
|
|
240
|
-
getRefundPdf<T>(transactionCode:
|
|
241
|
-
getProofOfCancel<T>(transactionCode: string, organizationCode: string
|
|
242
|
-
getProofOfPayment<T>(transactionCode: string, organizationCode: string
|
|
231
|
+
getRefundPdf<T>(transactionCode: any, organizationCode: any): Promise<AxiosResponse<T, any>>;
|
|
232
|
+
getProofOfCancel<T>(transactionCode: string, organizationCode: string): Promise<AxiosResponse<T, any>>;
|
|
233
|
+
getProofOfPayment<T>(transactionCode: string, organizationCode: string): Promise<AxiosResponse<T, any>>;
|
|
243
234
|
getScheduledReport<T>(reportType: any): Promise<AxiosResponse<T>>;
|
|
244
235
|
postScheduledReport<T>(payload: IListScheduledReportsResponse): Promise<AxiosResponse<T>>;
|
|
245
236
|
updateScheduledReport<T>(reportCode: string, payload: IListScheduledReportsResponse): Promise<AxiosResponse<T>>;
|
|
@@ -479,5 +470,18 @@ export declare class Api extends HttpClient {
|
|
|
479
470
|
getChartsByUser<T>(): Promise<AxiosResponse<T, any>>;
|
|
480
471
|
getLanguages<T>(): Promise<AxiosResponse<T, any>>;
|
|
481
472
|
getTranslations<T>(): Promise<AxiosResponse<T, any>>;
|
|
473
|
+
getCommunications<T>(payload: {
|
|
474
|
+
start_date: string;
|
|
475
|
+
end_date: string;
|
|
476
|
+
account_codes: string[];
|
|
477
|
+
country: string[];
|
|
478
|
+
status: string[];
|
|
479
|
+
focus: string[];
|
|
480
|
+
skip: number;
|
|
481
|
+
limit: number;
|
|
482
|
+
search_value: string;
|
|
483
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
484
|
+
getCommunicationsFilters<T>(): Promise<AxiosResponse<T, any>>;
|
|
485
|
+
getCommunicationDetails<T>(communicationId: string, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
482
486
|
}
|
|
483
487
|
export {};
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function useGetStylingSdkDynamic({ accountCode, }: {
|
|
1
|
+
export declare function useGetStylingTheme({ accountCode }: {
|
|
3
2
|
accountCode: string;
|
|
4
|
-
}): import("@tanstack/react-query").UseQueryResult<Styling.
|
|
5
|
-
export declare function useGetStylingSettings({ accountCode,
|
|
3
|
+
}): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.Theme, unknown>;
|
|
4
|
+
export declare function useGetStylingSettings({ accountCode, }: {
|
|
6
5
|
accountCode: string;
|
|
7
|
-
|
|
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>;
|
|
6
|
+
}): import("@tanstack/react-query").UseQueryResult<import("../../../types/checkout/styling/styling").Styling.Settings, 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
|
|
35
|
-
export declare function useGetProofOfPayment(transactionCode: string
|
|
34
|
+
export declare function useGetProofOfCancel(transactionCode: string): UseQueryResult<RefundPdfResponse, AxiosError>;
|
|
35
|
+
export declare function useGetProofOfPayment(transactionCode: 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
|
|
13
|
+
export declare function useGetRefundPdf(transactionCode: 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
|
}
|
|
@@ -74,66 +74,3 @@ 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
|
-
}
|