@yuno-payments/dashboard-api-mfe 0.38.1 → 0.38.4

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.
@@ -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 } from './api.types';
4
- import { Audit, OperationTransaction, Organization, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection, TemplateReporting } from '../types';
4
+ import { Audit, OperationTransaction, Organization, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection, TemplateReporting, GetUserFullResponse } 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';
@@ -279,6 +279,7 @@ export declare class Api extends HttpClient {
279
279
  updateScheduledReport<T>(reportCode: string, payload: IListScheduledReportsResponse): Promise<AxiosResponse<T>>;
280
280
  deleteScheduledReport<T>(reportCode: string): Promise<AxiosResponse<T>>;
281
281
  getProfile<T>(): Promise<AxiosResponse<T, any>>;
282
+ getUserFull(): Promise<AxiosResponse<GetUserFullResponse, any>>;
282
283
  getImpersonationUsers<T>(): Promise<AxiosResponse<T, any>>;
283
284
  getImpersonationEnabled<T>(): Promise<AxiosResponse<T, any>>;
284
285
  getUsersToImpersonate(organizationCode: string, accountCodes?: string[], page?: number, pageSize?: number, searchValue?: string): Promise<AxiosResponse<User.UsersToImpersonateResponse>>;
@@ -6,6 +6,12 @@ export interface GetPaymentsParams {
6
6
  enabled?: boolean;
7
7
  account_code?: string;
8
8
  payment_link_code?: string;
9
+ metadata?: Array<{
10
+ field: string;
11
+ formatType: 'TEXT' | 'NUMBER';
12
+ type: string;
13
+ values: string | string[];
14
+ }>;
9
15
  }
10
16
  export interface GetPaymentsEvaluatedParams {
11
17
  start_date: string | Date;
@@ -127,6 +133,12 @@ export interface GetTransactionsParams {
127
133
  page?: number;
128
134
  size?: number;
129
135
  account_code?: string;
136
+ metadata?: Array<{
137
+ field: string;
138
+ formatType: 'TEXT' | 'NUMBER';
139
+ type: string;
140
+ values: string | string[];
141
+ }>;
130
142
  }
131
143
  export interface GetPayoutDetail {
132
144
  payout_code: string;
@@ -1,7 +1,8 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { AxiosError } from 'axios';
3
- import { Accounts, User, AI } from '../../types';
3
+ import { Accounts, User, AI, GetUserFullResponse } from '../../types';
4
4
  export declare function useGetProfile(): UseQueryResult<User.UserResponsePayload, unknown>;
5
+ export declare function useGetUserFull(): UseQueryResult<GetUserFullResponse, unknown>;
5
6
  export declare function useGetPermissions(organizationCode: any, accountCode: any): UseQueryResult<Accounts.PermissionsResponse[], unknown>;
6
7
  export declare function useEmailVerification(email: string): UseQueryResult<User.UserResponseEmailVerification | string, unknown>;
7
8
  export declare function useGetLoginMethods(): UseQueryResult<unknown, unknown>;
@@ -1,5 +1,5 @@
1
1
  export declare namespace DataReport {
2
- enum InsightsVolumeMetricsV2Path {
2
+ export enum InsightsVolumeMetricsV2Path {
3
3
  REFUNDS_AND_CHARGEBACKS = "refunds-and-chargebacks",
4
4
  APPROVED_PAYMENTS = "approved-payments",
5
5
  PAYMENT_METHODS = "payment-methods",
@@ -8,7 +8,7 @@ export declare namespace DataReport {
8
8
  UNIQUE_CUSTOMER_PAYMENTS = "unique-customer-payments",
9
9
  TOTAL_PAYMENTS = "total-payments"
10
10
  }
11
- interface SmartRouting {
11
+ export interface SmartRouting {
12
12
  version: string;
13
13
  code_integration: string;
14
14
  Conditions: {
@@ -21,31 +21,46 @@ export declare namespace DataReport {
21
21
  cost: number;
22
22
  }[];
23
23
  }
24
- enum OverviewMetricType {
24
+ export enum OverviewMetricType {
25
25
  GENERAL = "volume-and-total-payments",
26
26
  LATENCY = "provider-latency",
27
27
  STATUS = "status",
28
28
  SUBSCRIPTIONS = "subscriptions"
29
29
  }
30
- interface InsightMetricParams {
31
- [a: string]: string | boolean | number | string[] | undefined;
30
+ interface MetadataField {
31
+ field: string;
32
+ formatType: 'TEXT' | 'NUMBER';
33
+ type: string;
34
+ values: string | string[];
35
+ }
36
+ interface MetadataFieldFilter {
37
+ key: string;
38
+ conditional: string;
39
+ values: string | string[];
40
+ }
41
+ export interface InsightMetricParams {
42
+ [a: string]: string | boolean | number | string[] | MetadataField[] | undefined;
32
43
  account_code?: string;
33
44
  connection_name?: string;
45
+ metadata?: MetadataField[];
34
46
  }
35
- interface InsightMetricBody {
47
+ export interface InsightMetricBody {
36
48
  account_codes?: string[];
37
49
  account_code?: string[];
38
50
  connection_name?: string[];
51
+ metadata_filters?: MetadataFieldFilter[];
52
+ metadata?: MetadataField[];
39
53
  }
40
- interface InsightExportParams {
54
+ export interface InsightExportParams {
41
55
  type?: string;
42
56
  code?: string;
43
57
  }
44
- interface InsightsHomeMetrics {
58
+ export interface InsightsHomeMetrics {
45
59
  account_codes?: string[];
46
60
  organization_code?: string;
47
61
  currency_code?: string;
48
62
  timezone?: string;
49
63
  isLiveMode?: boolean;
50
64
  }
65
+ export {};
51
66
  }
@@ -174,3 +174,8 @@ export declare namespace User {
174
174
  users: UsersToImpersonateUser[];
175
175
  }
176
176
  }
177
+ export interface GetUserFullResponse {
178
+ user: User.UserResponsePayload;
179
+ organizations: Organization.Organization;
180
+ accounts_user: Organization.Account[];
181
+ }