@yuno-payments/dashboard-api-mfe 0.42.7 → 0.42.8

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.
@@ -49,6 +49,7 @@ export declare class Api extends HttpClient {
49
49
  getPayoutDetails<T>(params: GetPayoutDetail): Promise<AxiosResponse<T, any>>;
50
50
  getPayoutTransactionDetails<T>(params: GetPayoutTransactionDetail): Promise<AxiosResponse<T, any>>;
51
51
  getPayoutHistoryDetails<T>(params: GetPayoutDetail, organizationCode: string): Promise<AxiosResponse<T, any>>;
52
+ getPayoutTimeline<T>(payoutCode: string, organizationCode: string): Promise<AxiosResponse<T, any>>;
52
53
  getPaymentMethodsByCountry<T>({ provider_id, country }: Organization.PaymentMethods, organizationCodeFromAccount: any): Promise<AxiosResponse<T, any>>;
53
54
  getOrgByName<T>(name: any): Promise<AxiosResponse<T, any>>;
54
55
  createOperationTransaction<T>(payload: OperationTransaction.Request, transactionId: string, paymentId: string, action: OperationTransaction.Actions): Promise<AxiosResponse<T, any>>;
@@ -63,7 +64,7 @@ export declare class Api extends HttpClient {
63
64
  getTransactionHistoryByPaymentCode<T>({ payment_code, }: {
64
65
  payment_code: any;
65
66
  }): Promise<AxiosResponse<T, any>>;
66
- getDeveloperCredentials<T>(password: any, accountCode: any): Promise<AxiosResponse<T, any>>;
67
+ getDeveloperCredentials<T>(password: any, accountCode: any, otp?: string, mfaToken?: string): Promise<AxiosResponse<T, any>>;
67
68
  getDeveloperCredentialsValidatePassword<T>(password: any): Promise<AxiosResponse<T, any>>;
68
69
  getDeveloperCredentialsValidatePasswordRegularUser<T>(password: any): Promise<AxiosResponse<T, any>>;
69
70
  getAllowedIps<T>(): Promise<AxiosResponse<T, any>>;
@@ -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>;
@@ -4,3 +4,4 @@ import { Payouts } from '../../types/payouts';
4
4
  import { AxiosError } from 'axios';
5
5
  export declare function usePayoutsList(params: GetPaymentsParams | null): UseQueryResult<Payouts.List | AxiosError>;
6
6
  export declare function usePayoutsFilters(enabled?: boolean): UseQueryResult<Payouts.Filters>;
7
+ export declare function useGetPayoutTimeline(payoutCode: string | null, enabled?: boolean): UseQueryResult<Payouts.Timeline | AxiosError>;
@@ -103,4 +103,23 @@ export declare namespace Payouts {
103
103
  document_number: string;
104
104
  document_type: string;
105
105
  }
106
+ interface TimelineEvent {
107
+ id: number;
108
+ payout_id?: string;
109
+ transaction_id?: string;
110
+ category?: string;
111
+ code: string;
112
+ description?: string;
113
+ status?: string;
114
+ amount?: number;
115
+ provider_data?: Record<string, unknown>;
116
+ withdrawal_method_type?: string;
117
+ type?: string;
118
+ metadata?: Record<string, unknown>;
119
+ created_at: string;
120
+ updated_at?: string;
121
+ }
122
+ interface Timeline {
123
+ events: TimelineEvent[];
124
+ }
106
125
  }