@yuno-payments/dashboard-api-mfe 0.41.7-metadata-beta.1 → 0.42.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.
@@ -63,7 +63,7 @@ export declare class Api extends HttpClient {
63
63
  getTransactionHistoryByPaymentCode<T>({ payment_code, }: {
64
64
  payment_code: any;
65
65
  }): Promise<AxiosResponse<T, any>>;
66
- getDeveloperCredentials<T>(password: any, accountCode: any): Promise<AxiosResponse<T, any>>;
66
+ getDeveloperCredentials<T>(password: any, accountCode: any, otp?: string, mfaToken?: string): Promise<AxiosResponse<T, any>>;
67
67
  getDeveloperCredentialsValidatePassword<T>(password: any): Promise<AxiosResponse<T, any>>;
68
68
  getDeveloperCredentialsValidatePasswordRegularUser<T>(password: any): Promise<AxiosResponse<T, any>>;
69
69
  getAllowedIps<T>(): Promise<AxiosResponse<T, any>>;
@@ -339,10 +339,14 @@ export declare class Api extends HttpClient {
339
339
  teamsFiltersMembers<T>({ organizationCode, }: {
340
340
  organizationCode: any;
341
341
  }): Promise<AxiosResponse<T, any>>;
342
- postMembersPaginatedV2<T>({ organizationCode, accountCodes, email, page, pageSize, }: {
342
+ postMembersPaginatedV2<T>({ organizationCode, accountCodes, search, status, roleId, statuses, roleIds, page, pageSize, }: {
343
343
  organizationCode: any;
344
344
  accountCodes: any;
345
- email: any;
345
+ search: any;
346
+ status: any;
347
+ roleId: any;
348
+ statuses: any;
349
+ roleIds: any;
346
350
  page: any;
347
351
  pageSize: any;
348
352
  }): Promise<AxiosResponse<T, any>>;
@@ -6,12 +6,6 @@ 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
- }>;
15
9
  }
16
10
  export interface GetPaymentsEvaluatedParams {
17
11
  start_date: string | Date;
@@ -133,12 +127,6 @@ export interface GetTransactionsParams {
133
127
  page?: number;
134
128
  size?: number;
135
129
  account_code?: string;
136
- metadata?: Array<{
137
- field: string;
138
- formatType: 'TEXT' | 'NUMBER';
139
- type: string;
140
- values: string | string[];
141
- }>;
142
130
  }
143
131
  export interface GetPayoutDetail {
144
132
  payout_code: string;
@@ -21,3 +21,4 @@ export declare function useGetCredentialsMFA(): UseMutationResult<{
21
21
  password?: string | undefined;
22
22
  accountCode?: string | undefined;
23
23
  }, unknown>;
24
+ export declare function usePostCredentialsWithOtpMfa(): UseMutationResult<unknown>;
@@ -2,9 +2,11 @@ import { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
2
2
  import type { Developer, User } from '../../types';
3
3
  import { CustomizedApiKeys } from '../../types/customized-api-keys';
4
4
  import { AllowedList } from '../../types/allowed-list';
5
- export declare function useGetCredentials({ password, accountCode, }: {
5
+ export declare function useGetCredentials({ password, accountCode, otp, mfaToken, }: {
6
6
  password: string;
7
7
  accountCode: string;
8
+ otp?: string;
9
+ mfaToken?: string;
8
10
  }): UseQueryResult<Developer.DeveloperCredentials, unknown>;
9
11
  export declare function useGetCustomizedApiKeysMembers(): UseQueryResult<User.ICustomizedApiKeysMembers, unknown>;
10
12
  export declare function useGetAllowedIps(): UseQueryResult<AllowedList.Response, unknown>;
@@ -2,10 +2,14 @@ import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { AxiosError } from 'axios';
3
3
  import { Team } from '../../types';
4
4
  export declare function useGetTeamsFiltersMembers(): UseQueryResult<Team.TeamList[], unknown>;
5
- export declare function usePostMembersPaginatedV2({ organizationCode, accountCodes, email, page, pageSize, }: {
5
+ export declare function usePostMembersPaginatedV2({ organizationCode, accountCodes, search, status, roleId, statuses, roleIds, page, pageSize, }: {
6
6
  organizationCode: any;
7
7
  accountCodes: any;
8
- email: any;
8
+ search: any;
9
+ status: any;
10
+ roleId: any;
11
+ statuses: any;
12
+ roleIds: any;
9
13
  page: any;
10
14
  pageSize: any;
11
15
  }): UseQueryResult<Team.TeamResponse, unknown>;
@@ -1,5 +1,5 @@
1
1
  export declare namespace DataReport {
2
- export enum InsightsVolumeMetricsV2Path {
2
+ 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
- export interface SmartRouting {
11
+ interface SmartRouting {
12
12
  version: string;
13
13
  code_integration: string;
14
14
  Conditions: {
@@ -21,46 +21,31 @@ export declare namespace DataReport {
21
21
  cost: number;
22
22
  }[];
23
23
  }
24
- export enum OverviewMetricType {
24
+ 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 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;
30
+ interface InsightMetricParams {
31
+ [a: string]: string | boolean | number | string[] | undefined;
43
32
  account_code?: string;
44
33
  connection_name?: string;
45
- metadata?: MetadataField[];
46
34
  }
47
- export interface InsightMetricBody {
35
+ interface InsightMetricBody {
48
36
  account_codes?: string[];
49
37
  account_code?: string[];
50
38
  connection_name?: string[];
51
- metadata_filters?: MetadataFieldFilter[];
52
- metadata?: MetadataField[];
53
39
  }
54
- export interface InsightExportParams {
40
+ interface InsightExportParams {
55
41
  type?: string;
56
42
  code?: string;
57
43
  }
58
- export interface InsightsHomeMetrics {
44
+ interface InsightsHomeMetrics {
59
45
  account_codes?: string[];
60
46
  organization_code?: string;
61
47
  currency_code?: string;
62
48
  timezone?: string;
63
49
  isLiveMode?: boolean;
64
50
  }
65
- export {};
66
51
  }