@yuno-payments/dashboard-api-mfe 1.6.1 → 1.6.2
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 +5 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +10 -8
- package/build/cjs/types/mutations/smart-routing/smart-routing.mutation.d.ts +24 -6
- package/build/cjs/types/queries/api-logs/api-logs-v3.query.d.ts +2 -2
- package/build/cjs/types/queries/organizations/organizations.query.d.ts +3 -1
- package/build/cjs/types/queries/smart-routing/smart-routing.query.d.ts +1 -1
- package/build/cjs/types/queries/webhooks/webhook-timeline.query.d.ts +2 -2
- package/build/cjs/types/types/audit/audit.d.ts +1 -0
- package/build/cjs/types/types/connection/connection.d.ts +1 -0
- package/build/cjs/types/types/smart-routing/smart-routing.d.ts +3 -0
- package/build/esm/index.js +5 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +10 -8
- package/build/esm/types/mutations/smart-routing/smart-routing.mutation.d.ts +24 -6
- package/build/esm/types/queries/api-logs/api-logs-v3.query.d.ts +2 -2
- package/build/esm/types/queries/organizations/organizations.query.d.ts +3 -1
- package/build/esm/types/queries/smart-routing/smart-routing.query.d.ts +1 -1
- package/build/esm/types/queries/webhooks/webhook-timeline.query.d.ts +2 -2
- package/build/esm/types/types/audit/audit.d.ts +1 -0
- package/build/esm/types/types/connection/connection.d.ts +1 -0
- package/build/esm/types/types/smart-routing/smart-routing.d.ts +3 -0
- package/build/index.d.ts +48 -22
- package/package.json +2 -2
|
@@ -113,7 +113,7 @@ export declare class Api extends HttpClient {
|
|
|
113
113
|
accountCode: any;
|
|
114
114
|
integration_code: any;
|
|
115
115
|
}): Promise<AxiosResponse<T, any>>;
|
|
116
|
-
getConnectionsByPaymentMethod<T>(accountCode: string, paymentMethod: string): Promise<AxiosResponse<T>>;
|
|
116
|
+
getConnectionsByPaymentMethod<T>(accountCode: string, paymentMethod: string, basePath?: SmartRouting.RoutingType): Promise<AxiosResponse<T>>;
|
|
117
117
|
getHashPylon<T>(): Promise<AxiosResponse<T>>;
|
|
118
118
|
getConnections<T>(): Promise<AxiosResponse<T, any>>;
|
|
119
119
|
getOnboardingStatus<T>(accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
@@ -160,8 +160,8 @@ export declare class Api extends HttpClient {
|
|
|
160
160
|
postResendWebhooks<T>({ codes, }: Audit.AuditWebhooksResendParams): Promise<AxiosResponse<T>>;
|
|
161
161
|
postExportApiLogs<T>(payload: Audit.ExportApiLogsRequest): Promise<AxiosResponse<T>>;
|
|
162
162
|
postExportWebhooksLogs<T>(payload: Audit.ExportWebhooksLogsRequest): Promise<AxiosResponse<T>>;
|
|
163
|
-
getApiLogsV3<T>(
|
|
164
|
-
getWebhookTimeline<T>(
|
|
163
|
+
getApiLogsV3<T>(paymentCode: string): Promise<AxiosResponse<T>>;
|
|
164
|
+
getWebhookTimeline<T>(paymentCode: string): Promise<AxiosResponse<T>>;
|
|
165
165
|
postExportDashboardLogs<T>(payload: Audit.ExportDashboardLogsRequest): Promise<AxiosResponse<T>>;
|
|
166
166
|
postExportMonitorsLogs<T>(payload: Audit.ExportMonitorsLogsRequest): Promise<AxiosResponse<T>>;
|
|
167
167
|
getAuditExportsList<T>(reportType: Audit.AuditExportReportType): Promise<AxiosResponse<T>>;
|
|
@@ -185,11 +185,13 @@ export declare class Api extends HttpClient {
|
|
|
185
185
|
getDashboardStaticContents<T>(): Promise<AxiosResponse<T, any>>;
|
|
186
186
|
getLocales<T>(): Promise<AxiosResponse<T, any>>;
|
|
187
187
|
getSmartRoutingMethods<T>(accountCode: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
|
|
188
|
-
putSmartRoutingToggleMethod<T>(accountCode: string, paymentMethod: string, active: boolean): Promise<AxiosResponse<T, any>>;
|
|
188
|
+
putSmartRoutingToggleMethod<T>(accountCode: string, paymentMethod: string, active: boolean, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
|
|
189
189
|
getSmartRoutingConditionTypes<T>(accountCode: string, paymentMethod: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
|
|
190
190
|
getSmartRoutingConditionPaymentMethod<T>(accountCode: string, paymentMethod: string): Promise<AxiosResponse<T, any>>;
|
|
191
191
|
getSmartRoutingConditionTypesValues<T>(accountCode: string, index: number): Promise<AxiosResponse<T, any>>;
|
|
192
|
-
getSmartRoutingNextSteps<T>(accountCode: string, stepType: string, status: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T,
|
|
192
|
+
getSmartRoutingNextSteps<T>(accountCode: string, stepType: string, status: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, {
|
|
193
|
+
actions: string[];
|
|
194
|
+
} | string[]>>;
|
|
193
195
|
getSmartRoutingWorkflowVersion<T>(accountCode: string, workflowVersionId: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
|
|
194
196
|
getSmartRoutingWorkflow<T>(accountCode: string, paymentName: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
|
|
195
197
|
putSmartRoutingUpdateWorkflow<T>(accountCode: string, data: any, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
|
|
@@ -204,10 +206,10 @@ export declare class Api extends HttpClient {
|
|
|
204
206
|
getSmartRoutingDeclinedGroup<T>(accountCode: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
|
|
205
207
|
updateSmartRoutingDeclinedGroup<T>(accountCode: string, declineId: string, payload: any): Promise<AxiosResponse<T, any>>;
|
|
206
208
|
createSmartRoutingDeclinedGroup<T>(accountCode: string, payload: any): Promise<AxiosResponse<T, any>>;
|
|
207
|
-
getSmartRoutingPaymentRoute<T>(accountCode: string, paymentId: string): Promise<AxiosResponse<T, SmartRouting.PaymentRoutes>>;
|
|
208
|
-
updateSmartRoutingFavorite<T>(accountCode: string, versionCode: string, favorite: boolean): Promise<AxiosResponse<T, any>>;
|
|
209
|
+
getSmartRoutingPaymentRoute<T>(accountCode: string, paymentId: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, SmartRouting.PaymentRoutes>>;
|
|
210
|
+
updateSmartRoutingFavorite<T>(accountCode: string, versionCode: string, favorite: boolean, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
|
|
209
211
|
getSmartRoutingSimulateConditionTypeValues<T>(accountCode: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, SmartRouting.ConditionTypeValues[]>>;
|
|
210
|
-
simulateSmartRoutingTransaction<T>(accountCode: string, workflowVersionCode: string, values: any): Promise<AxiosResponse<T, any>>;
|
|
212
|
+
simulateSmartRoutingTransaction<T>(accountCode: string, workflowVersionCode: string, values: any, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
|
|
211
213
|
getSmartRoutingSearchConditionValues<T>(conditionType: string, text: string): Promise<AxiosResponse<T, SmartRouting.ConditionTypeValues[]>>;
|
|
212
214
|
getProviderConversionRatesData<T>(): Promise<AxiosResponse<T, SmartRouting.SRConversionRates[]>>;
|
|
213
215
|
updateMonitorRedistribution<T>(organizationCode: string, values: SmartRouting.MonitorRedistribution): Promise<AxiosResponse<T, any>>;
|
|
@@ -23,11 +23,27 @@ export declare function useDuplicateVersion({ versionCode, accountCode, routingT
|
|
|
23
23
|
accountCode: string;
|
|
24
24
|
routingType?: SmartRouting.RoutingType;
|
|
25
25
|
}, options?: any): UseMutationResult<SmartRouting.WorkflowVersion, unknown>;
|
|
26
|
-
export declare function useToggleMethod({ paymentMethod, active, accountCode }: {
|
|
27
|
-
paymentMethod:
|
|
28
|
-
active:
|
|
29
|
-
accountCode:
|
|
26
|
+
export declare function useToggleMethod({ paymentMethod, active, accountCode, routingType, }: {
|
|
27
|
+
paymentMethod: string;
|
|
28
|
+
active: boolean;
|
|
29
|
+
accountCode: string;
|
|
30
|
+
routingType?: SmartRouting.RoutingType;
|
|
30
31
|
}, options?: any): UseMutationResult<SmartRouting.PaymentMethods, unknown>;
|
|
32
|
+
export interface ToggleMethodItem {
|
|
33
|
+
paymentMethod: string;
|
|
34
|
+
routingType: SmartRouting.RoutingType;
|
|
35
|
+
active: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface BulkToggleResult {
|
|
38
|
+
success: number;
|
|
39
|
+
failed: number;
|
|
40
|
+
total: number;
|
|
41
|
+
errors: Array<{
|
|
42
|
+
paymentMethod: string;
|
|
43
|
+
error: any;
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
46
|
+
export declare function useBulkToggleMethod(accountCode: string, options?: any): UseMutationResult<BulkToggleResult, unknown, ToggleMethodItem[]>;
|
|
31
47
|
export declare function useSmartRoutingUpdateDeclinedGroup({ declinedId, accountCode }: {
|
|
32
48
|
declinedId: string;
|
|
33
49
|
accountCode: string;
|
|
@@ -36,9 +52,10 @@ export declare function useSmartRoutingCreateDeclinedGroup({ accountCode, option
|
|
|
36
52
|
accountCode: any;
|
|
37
53
|
options: any;
|
|
38
54
|
}): UseMutationResult<SmartRouting.PaymentMethods, unknown>;
|
|
39
|
-
export declare function useSmartRoutingToggleFavorite({ versionCode, accountCode }: {
|
|
55
|
+
export declare function useSmartRoutingToggleFavorite({ versionCode, accountCode, routingType, }: {
|
|
40
56
|
versionCode: string;
|
|
41
57
|
accountCode: string;
|
|
58
|
+
routingType?: SmartRouting.RoutingType;
|
|
42
59
|
}, options?: any): UseMutationResult<SmartRouting.WorkflowVersions, unknown>;
|
|
43
60
|
export declare function useSmartRoutingEditWorkflowName({ code, name, accountCode, routingType, }: {
|
|
44
61
|
code: string;
|
|
@@ -46,9 +63,10 @@ export declare function useSmartRoutingEditWorkflowName({ code, name, accountCod
|
|
|
46
63
|
accountCode: string;
|
|
47
64
|
routingType?: SmartRouting.RoutingType;
|
|
48
65
|
}, options?: any): UseMutationResult<SmartRouting.PaymentMethods, unknown>;
|
|
49
|
-
export declare function useSmartRoutingSimulateTransaction({ accountCode, workflowVersionCode, }: {
|
|
66
|
+
export declare function useSmartRoutingSimulateTransaction({ accountCode, workflowVersionCode, routingType, }: {
|
|
50
67
|
workflowVersionCode: string;
|
|
51
68
|
accountCode: string;
|
|
69
|
+
routingType?: SmartRouting.RoutingType;
|
|
52
70
|
}, options?: any): UseMutationResult<any, unknown>;
|
|
53
71
|
export declare function useSmartRoutingUpdateMonitorRedistribution(organizationCode: string, options?: any): UseMutationResult<any, unknown>;
|
|
54
72
|
export interface BFFErrorResponse {
|
|
@@ -3,7 +3,7 @@ import { Audit } from '../../types';
|
|
|
3
3
|
import { AxiosError } from 'axios';
|
|
4
4
|
import { BFFErrorResponse } from '../../mutations';
|
|
5
5
|
export interface UseGetApiLogsV3Options {
|
|
6
|
-
|
|
6
|
+
paymentCode: string;
|
|
7
7
|
enabled?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare function useGetApiLogsV3({
|
|
9
|
+
export declare function useGetApiLogsV3({ paymentCode, enabled, }: UseGetApiLogsV3Options): UseQueryResult<Audit.ApiLogsV3Response, AxiosError<BFFErrorResponse>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import type { Organization } from '../../types';
|
|
3
|
+
import { SmartRouting } from '../../types';
|
|
3
4
|
import { CustomAxiosResponse } from '../../utils/handler-error';
|
|
4
5
|
import { AxiosError } from 'axios';
|
|
5
6
|
import { BFFErrorResponse } from '../../mutations';
|
|
@@ -19,9 +20,10 @@ export declare function useGetIntegrationByAccountV2({ accountCode, organization
|
|
|
19
20
|
accountCode: string;
|
|
20
21
|
organizationCode: string;
|
|
21
22
|
}): UseQueryResult<Organization.Integration[], CustomAxiosResponse<null>>;
|
|
22
|
-
export declare function useGetConnectionsByPaymentMethod({ accountCode, paymentMethod, }: {
|
|
23
|
+
export declare function useGetConnectionsByPaymentMethod({ accountCode, paymentMethod, basePath, }: {
|
|
23
24
|
accountCode: string;
|
|
24
25
|
paymentMethod: string;
|
|
26
|
+
basePath?: SmartRouting.RoutingType;
|
|
25
27
|
}): UseQueryResult<Organization.Connections[], AxiosError<BFFErrorResponse, any>>;
|
|
26
28
|
export declare function useGetHashPylon(): UseQueryResult<{
|
|
27
29
|
data: string;
|
|
@@ -17,7 +17,7 @@ export declare function useGetSmartRoutingWorkflowVersion({ accountCode, workflo
|
|
|
17
17
|
}): UseQueryResult<SmartRouting.WorkflowVersion & ErrorProp, unknown>;
|
|
18
18
|
export declare function useGetSmartRoutingNextRoute(accountCode: string, stepType: string, status: string, routingType?: SmartRouting.RoutingType): UseQueryResult<string[] & ErrorProp, unknown>;
|
|
19
19
|
export declare function useGetSmartRoutingDeclineGroups(accountCode: string, routingType?: SmartRouting.RoutingType): UseQueryResult<SmartRouting.DeclineGroups & ErrorProp, unknown>;
|
|
20
|
-
export declare function useGetSmartRoutingPaymentRoute(accountCode: string, paymentId: string): UseQueryResult<SmartRouting.PaymentRoutes & ErrorProp, unknown>;
|
|
20
|
+
export declare function useGetSmartRoutingPaymentRoute(accountCode: string, paymentId: string, routingType?: SmartRouting.RoutingType): UseQueryResult<SmartRouting.PaymentRoutes & ErrorProp, unknown>;
|
|
21
21
|
export declare function useGetSmartRoutingSimulateConditionTypeValues(accountCode: string, routingType?: SmartRouting.RoutingType): UseQueryResult<SmartRouting.AllConditionTypeValues & ErrorProp, unknown>;
|
|
22
22
|
export declare function useGetSmartRoutingSearchConditionValues({ text, conditionType, }: {
|
|
23
23
|
text: string;
|
|
@@ -3,7 +3,7 @@ import { Audit } from '../../types';
|
|
|
3
3
|
import { AxiosError } from 'axios';
|
|
4
4
|
import { BFFErrorResponse } from '../../mutations';
|
|
5
5
|
export interface UseGetWebhookTimelineOptions {
|
|
6
|
-
|
|
6
|
+
paymentCode: string;
|
|
7
7
|
enabled?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare function useGetWebhookTimeline({
|
|
9
|
+
export declare function useGetWebhookTimeline({ paymentCode, enabled, }: UseGetWebhookTimelineOptions): UseQueryResult<Audit.WebhookTimelineResponse, AxiosError<BFFErrorResponse>>;
|
|
@@ -106,6 +106,7 @@ export declare namespace SmartRouting {
|
|
|
106
106
|
created_at: string;
|
|
107
107
|
updated_at: string;
|
|
108
108
|
payment_method_type: string;
|
|
109
|
+
withdrawal_method_type: string;
|
|
109
110
|
is_active: boolean;
|
|
110
111
|
payment_method_description?: string;
|
|
111
112
|
}
|
|
@@ -130,6 +131,7 @@ export declare namespace SmartRouting {
|
|
|
130
131
|
id: number;
|
|
131
132
|
code: string;
|
|
132
133
|
payment_method_type: string;
|
|
134
|
+
withdrawal_method_type: string;
|
|
133
135
|
account_code: string;
|
|
134
136
|
payment_method_data: {
|
|
135
137
|
logo: string | null;
|
|
@@ -160,6 +162,7 @@ export declare namespace SmartRouting {
|
|
|
160
162
|
export interface ConditionType {
|
|
161
163
|
name: string;
|
|
162
164
|
payment_method_type?: string;
|
|
165
|
+
withdrawal_method_type?: string;
|
|
163
166
|
value_source: ValueSource;
|
|
164
167
|
description: string;
|
|
165
168
|
icon: string;
|