@yuno-payments/dashboard-api-mfe 1.10.9 → 1.11.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.
Files changed (28) hide show
  1. package/build/cjs/index.js +4 -4
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/types/api/api.d.ts +4 -8
  4. package/build/cjs/types/mutations/index.d.ts +1 -0
  5. package/build/cjs/types/mutations/notifications/notifications.mutation.d.ts +2 -3
  6. package/build/cjs/types/mutations/playground/index.d.ts +1 -0
  7. package/build/cjs/types/mutations/playground/playground.mutation.d.ts +7 -0
  8. package/build/cjs/types/queries/data-report/data-report.query.d.ts +0 -4
  9. package/build/cjs/types/types/audit/audit.d.ts +2 -0
  10. package/build/cjs/types/types/data-report/data-report.d.ts +4 -1
  11. package/build/cjs/types/types/index.d.ts +1 -0
  12. package/build/cjs/types/types/playground/index.d.ts +1 -0
  13. package/build/cjs/types/types/playground/playground.d.ts +33 -0
  14. package/build/esm/index.js +4 -4
  15. package/build/esm/index.js.map +1 -1
  16. package/build/esm/types/api/api.d.ts +4 -8
  17. package/build/esm/types/mutations/index.d.ts +1 -0
  18. package/build/esm/types/mutations/notifications/notifications.mutation.d.ts +2 -3
  19. package/build/esm/types/mutations/playground/index.d.ts +1 -0
  20. package/build/esm/types/mutations/playground/playground.mutation.d.ts +7 -0
  21. package/build/esm/types/queries/data-report/data-report.query.d.ts +0 -4
  22. package/build/esm/types/types/audit/audit.d.ts +2 -0
  23. package/build/esm/types/types/data-report/data-report.d.ts +4 -1
  24. package/build/esm/types/types/index.d.ts +1 -0
  25. package/build/esm/types/types/playground/index.d.ts +1 -0
  26. package/build/esm/types/types/playground/playground.d.ts +33 -0
  27. package/build/index.d.ts +50 -16
  28. 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[]>>;
@@ -356,9 +352,8 @@ export declare class Api extends HttpClient {
356
352
  getMergedNotifications<T>(): Promise<AxiosResponse<T>>;
357
353
  getNotificationsCustomer<T>(customer: any): Promise<AxiosResponse<T>>;
358
354
  getValidateOpsgenieKey<T>(key: any): Promise<AxiosResponse<T>>;
359
- postSlackMessageChannel<T>(payload: {
360
- channel: string;
361
- text: string;
355
+ postSlackFeatureNotification<T>(payload: {
356
+ feature: string;
362
357
  }): Promise<AxiosResponse<T>>;
363
358
  pathNotification<T>(payload: PathNotification): Promise<AxiosResponse<T>>;
364
359
  getNotificationsNumber<T>(customer: any): Promise<AxiosResponse<T>>;
@@ -678,5 +673,6 @@ export declare class Api extends HttpClient {
678
673
  createConciergeAlert<T>(payload: ConciergeAlerts.CreateAlertPayload): Promise<AxiosResponse<T>>;
679
674
  deleteConciergeAlert<T>(alertId: string): Promise<AxiosResponse<T>>;
680
675
  enableConciergeAlert<T>(alertId: string, payload: ConciergeAlerts.EnableAlertPayload): Promise<AxiosResponse<T>>;
676
+ postPlaygroundExecuteFlow<T>(payload: Playground.ExecuteFlowPayload): Promise<AxiosResponse<T, unknown>>;
681
677
  }
682
678
  export {};
@@ -33,3 +33,4 @@ export * from './organization-config';
33
33
  export * from './installments';
34
34
  export * from './recipients';
35
35
  export * from './concierge';
36
+ export * from './playground';
@@ -1,6 +1,5 @@
1
- export declare function usePostSlackMessageChannel(): import("@tanstack/react-query").UseMutationResult<unknown, unknown, {
1
+ export declare function usePostSlackFeatureNotification(): import("@tanstack/react-query").UseMutationResult<unknown, unknown, {
2
2
  payload: {
3
- channel: string;
4
- text: string;
3
+ feature: string;
5
4
  };
6
5
  }, unknown>;
@@ -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;
@@ -35,3 +35,4 @@ export * from './onboarding';
35
35
  export * from './recipients';
36
36
  export * from './installments';
37
37
  export * from './concierge';
38
+ export * from './playground';
@@ -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
+ }