@yuno-payments/dashboard-api-mfe 1.10.9 → 1.11.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 +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +2 -5
- package/build/cjs/types/mutations/index.d.ts +1 -0
- package/build/cjs/types/mutations/playground/index.d.ts +1 -0
- package/build/cjs/types/mutations/playground/playground.mutation.d.ts +7 -0
- package/build/cjs/types/queries/data-report/data-report.query.d.ts +0 -4
- package/build/cjs/types/types/audit/audit.d.ts +2 -0
- package/build/cjs/types/types/data-report/data-report.d.ts +4 -1
- package/build/cjs/types/types/index.d.ts +1 -0
- package/build/cjs/types/types/playground/index.d.ts +1 -0
- package/build/cjs/types/types/playground/playground.d.ts +33 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +2 -5
- package/build/esm/types/mutations/index.d.ts +1 -0
- package/build/esm/types/mutations/playground/index.d.ts +1 -0
- package/build/esm/types/mutations/playground/playground.mutation.d.ts +7 -0
- package/build/esm/types/queries/data-report/data-report.query.d.ts +0 -4
- package/build/esm/types/types/audit/audit.d.ts +2 -0
- package/build/esm/types/types/data-report/data-report.d.ts +4 -1
- package/build/esm/types/types/index.d.ts +1 -0
- package/build/esm/types/types/playground/index.d.ts +1 -0
- package/build/esm/types/types/playground/playground.d.ts +33 -0
- package/build/index.d.ts +46 -10
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { HttpClient } from '../lib/http-client';
|
|
3
3
|
import { GetPaymentsParams, GetReconciliationMetricParams, FirebaseUserSubscribe, PathNotification, TimeZoneCatalog, GetTransactionDetailsV2Params, MfaUserSubscribe, UserInviteMultiaccountPayload, GetTransactionsParams, PaymentsSettings, GetPayoutDetail, GetPayoutTransactionDetail, PinnedSections, ThemeSettings, ListSubscriptionsParams } from './api.types';
|
|
4
|
-
import { Audit, OperationTransaction, Organization, OrganizationConfig, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, ReconciliationInsights, Payment, AddToRiskListRequest, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection, Installments, Connection, TemplateReporting, GetUserFullResponse, Team, ConciergeAlerts } from '../types';
|
|
4
|
+
import { Audit, OperationTransaction, Organization, OrganizationConfig, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, ReconciliationInsights, Payment, AddToRiskListRequest, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection, Installments, Connection, TemplateReporting, GetUserFullResponse, Team, ConciergeAlerts, Playground } from '../types';
|
|
5
5
|
import { ConversionRateParams, ConversionRateBody, ConversionRateOverview, ConversionRateOverviewFraud3ds } from '../types/data-report/conversion-rate.types';
|
|
6
6
|
import { RoutingMonitors } from '../types/routing-monitors';
|
|
7
7
|
import { ChangePaymentsWebhook } from '../mutations';
|
|
@@ -224,7 +224,6 @@ export declare class Api extends HttpClient {
|
|
|
224
224
|
getInsightsMetricsConversionRateV2<T>(params: DataReport.InsightMetricParams, path: string): Promise<AxiosResponse<T, any>>;
|
|
225
225
|
getInsightsMetricsConversionRateViewMore<T>(params: DataReport.InsightMetricParams, type: string): Promise<AxiosResponse<T, any>>;
|
|
226
226
|
getInsightFallbackMetrics<T>(params: DataReport.InsightMetricParams): Promise<AxiosResponse<T, any>>;
|
|
227
|
-
getInsightsMetricsVolume<T>(account_codes: string, params: DataReport.InsightMetricParams): Promise<AxiosResponse<T, any>>;
|
|
228
227
|
getInsightsMetricsVolumeV2<T>(account_codes: string, path: DataReport.InsightsVolumeMetricsV2Path, params: DataReport.InsightMetricParams): Promise<AxiosResponse<T, any>>;
|
|
229
228
|
getInsightsFraudScreeningVolumeAndCountTx(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
|
|
230
229
|
getInsightsFraudScreeningConversionRate(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
|
|
@@ -240,11 +239,8 @@ export declare class Api extends HttpClient {
|
|
|
240
239
|
getInsightsChargebacksReasonsDistribution(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
|
|
241
240
|
getInsightsChargebacksStatusDistribution(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
|
|
242
241
|
getInsightsChargebacksByCardBrand(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
|
|
243
|
-
getInsightOverview<T>(params: DataReport.InsightMetricParams): Promise<AxiosResponse<T, any>>;
|
|
244
242
|
getInsightOverviewV3<T>(params: DataReport.InsightMetricParams, type: DataReport.OverviewMetricType): Promise<AxiosResponse<T, any>>;
|
|
245
243
|
getInsighstHomeMetrics<T>(params: DataReport.InsightsHomeMetrics): Promise<AxiosResponse<T, any>>;
|
|
246
|
-
getInsightsMetricsTotalPaymentsAndFraud<T>(account_codes: string, params: DataReport.InsightMetricParams): Promise<AxiosResponse<T, any>>;
|
|
247
|
-
getInsightsMetricsCustomerPaymentsAndFraud<T>(account_codes: string, params: DataReport.InsightMetricParams): Promise<AxiosResponse<T, any>>;
|
|
248
244
|
getCheckouts({ accountCode, }: {
|
|
249
245
|
accountCode: any;
|
|
250
246
|
}): Promise<AxiosResponse<Checkout.CheckoutList[]>>;
|
|
@@ -678,5 +674,6 @@ export declare class Api extends HttpClient {
|
|
|
678
674
|
createConciergeAlert<T>(payload: ConciergeAlerts.CreateAlertPayload): Promise<AxiosResponse<T>>;
|
|
679
675
|
deleteConciergeAlert<T>(alertId: string): Promise<AxiosResponse<T>>;
|
|
680
676
|
enableConciergeAlert<T>(alertId: string, payload: ConciergeAlerts.EnableAlertPayload): Promise<AxiosResponse<T>>;
|
|
677
|
+
postPlaygroundExecuteFlow<T>(payload: Playground.ExecuteFlowPayload): Promise<AxiosResponse<T, unknown>>;
|
|
681
678
|
}
|
|
682
679
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './playground.mutation';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseMutationResult } from '@tanstack/react-query';
|
|
2
|
+
import { AxiosError } from 'axios';
|
|
3
|
+
import { Playground } from '../../types';
|
|
4
|
+
import { BFFErrorResponse } from '../smart-routing';
|
|
5
|
+
export declare function usePostPlaygroundExecuteFlow(): UseMutationResult<Playground.ExecuteFlowResponse, AxiosError<BFFErrorResponse>, {
|
|
6
|
+
payload: Playground.ExecuteFlowPayload;
|
|
7
|
+
}>;
|
|
@@ -9,11 +9,7 @@ export declare function useInsightsConversionRateMetricsV2(params: DataReport.In
|
|
|
9
9
|
}): UseQueryResult<any, unknown>;
|
|
10
10
|
export declare function useViewMoreMetrics(params: DataReport.InsightMetricParams, type: any): UseQueryResult<any, unknown>;
|
|
11
11
|
export declare function useInsightsFallbackMetrics(params: DataReport.InsightMetricParams): UseQueryResult<any, unknown>;
|
|
12
|
-
export declare function useInsightsVolumeMetrics(account_codes: string, params: DataReport.InsightMetricParams, enabled?: boolean): UseQueryResult<any, unknown>;
|
|
13
12
|
export declare function useInsightsVolumeMetricsV2(account_codes: string, params: DataReport.InsightMetricParams, path: DataReport.InsightsVolumeMetricsV2Path, enabled?: boolean): UseQueryResult<any, unknown>;
|
|
14
|
-
export declare function useInsightsTotalPaymentsAndFraudMetrics(account_codes: string, params: DataReport.InsightMetricParams, enabled?: boolean): UseQueryResult<any, unknown>;
|
|
15
|
-
export declare function useInsightsCustomerPaymentsAndFraudMetrics(account_codes: string, params: DataReport.InsightMetricParams, enabled?: boolean): UseQueryResult<any, unknown>;
|
|
16
|
-
export declare function useInsightsOverviewMetrics(params: DataReport.InsightMetricParams): UseQueryResult<any, unknown>;
|
|
17
13
|
export declare function useInsightsOverviewMetricsV3(params: DataReport.InsightMetricParams, type: DataReport.OverviewMetricType): UseQueryResult<any, unknown>;
|
|
18
14
|
export declare function useInsightsHomeMetrics(params: DataReport.InsightsHomeMetrics): UseQueryResult<any, unknown>;
|
|
19
15
|
export declare function useGetInsightsReport(params: DataReport.InsightExportParams): UseQueryResult<any, unknown>;
|
|
@@ -68,6 +68,7 @@ export declare namespace Audit {
|
|
|
68
68
|
time_zone: string;
|
|
69
69
|
account_codes?: string[] | null;
|
|
70
70
|
}
|
|
71
|
+
type MonitorType = 'CREATED TRANSACTIONS' | 'SUCCEEDED TRANSACTIONS';
|
|
71
72
|
interface AuditMonitorData {
|
|
72
73
|
alert_id: number;
|
|
73
74
|
status: string;
|
|
@@ -86,6 +87,7 @@ export declare namespace Audit {
|
|
|
86
87
|
condition_set_id: number;
|
|
87
88
|
approval_rate: number;
|
|
88
89
|
account_code: string;
|
|
90
|
+
monitor_type?: MonitorType | null;
|
|
89
91
|
}
|
|
90
92
|
interface AuditMonitors {
|
|
91
93
|
page: number;
|
|
@@ -6,7 +6,10 @@ export declare namespace DataReport {
|
|
|
6
6
|
PROVIDERS = "providers",
|
|
7
7
|
COUNTRIES = "countries",
|
|
8
8
|
UNIQUE_CUSTOMER_PAYMENTS = "unique-customer-payments",
|
|
9
|
-
TOTAL_PAYMENTS = "total-payments"
|
|
9
|
+
TOTAL_PAYMENTS = "total-payments",
|
|
10
|
+
CARD_TYPES = "card-types",
|
|
11
|
+
CARD_BRANDS = "card-brands",
|
|
12
|
+
ISSUERS = "issuers"
|
|
10
13
|
}
|
|
11
14
|
export interface SmartRouting {
|
|
12
15
|
version: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './playground';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare namespace Playground {
|
|
2
|
+
type FlowType = 'DIRECT';
|
|
3
|
+
type FlowStatus = 'SUCCESS' | 'PARTIAL_FAILURE' | 'FAILURE';
|
|
4
|
+
type StepStatus = 'SUCCESS' | 'FAILED' | 'SKIPPED';
|
|
5
|
+
type StepName = 'CREATE_CUSTOMER' | 'CREATE_CHECKOUT_SESSION' | 'CREATE_PAYMENT';
|
|
6
|
+
interface ExecuteFlowPayload {
|
|
7
|
+
flow_type: FlowType;
|
|
8
|
+
config: {
|
|
9
|
+
capture: boolean;
|
|
10
|
+
};
|
|
11
|
+
customer: Record<string, unknown>;
|
|
12
|
+
payment_method: Record<string, unknown>;
|
|
13
|
+
country: string;
|
|
14
|
+
amount: Record<string, unknown>;
|
|
15
|
+
account_id: string;
|
|
16
|
+
payment_description: string;
|
|
17
|
+
}
|
|
18
|
+
interface StepResult {
|
|
19
|
+
step: StepName;
|
|
20
|
+
status: StepStatus;
|
|
21
|
+
http_status: number | null;
|
|
22
|
+
response: Record<string, unknown> | null;
|
|
23
|
+
error_message: string | null;
|
|
24
|
+
duration_ms: number;
|
|
25
|
+
}
|
|
26
|
+
interface ExecuteFlowResponse {
|
|
27
|
+
status: FlowStatus;
|
|
28
|
+
failed_step: string | null;
|
|
29
|
+
error_message: string | null;
|
|
30
|
+
steps: StepResult[];
|
|
31
|
+
total_duration_ms: number;
|
|
32
|
+
}
|
|
33
|
+
}
|