@yuno-payments/dashboard-api-mfe 0.42.7 → 0.42.10
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 +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +3 -1
- package/build/cjs/types/mutations/developers/developers.mutation.d.ts +1 -0
- package/build/cjs/types/queries/audit/audit.query.d.ts +1 -0
- package/build/cjs/types/queries/developers/developers.query.d.ts +3 -1
- package/build/cjs/types/queries/payments/payouts-timeline.query.test.d.ts +1 -0
- package/build/cjs/types/queries/payments/payouts.query.d.ts +1 -0
- package/build/cjs/types/types/audit/audit.d.ts +14 -0
- package/build/cjs/types/types/payouts/payouts.d.ts +19 -0
- package/build/esm/index.js +6 -6
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +3 -1
- package/build/esm/types/mutations/developers/developers.mutation.d.ts +1 -0
- package/build/esm/types/queries/audit/audit.query.d.ts +1 -0
- package/build/esm/types/queries/developers/developers.query.d.ts +3 -1
- package/build/esm/types/queries/payments/payouts-timeline.query.test.d.ts +1 -0
- package/build/esm/types/queries/payments/payouts.query.d.ts +1 -0
- package/build/esm/types/types/audit/audit.d.ts +14 -0
- package/build/esm/types/types/payouts/payouts.d.ts +19 -0
- package/build/index.d.ts +43 -3
- package/package.json +1 -1
|
@@ -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>>;
|
|
@@ -137,6 +138,7 @@ export declare class Api extends HttpClient {
|
|
|
137
138
|
payload: Audit.AuditApiLogsParams;
|
|
138
139
|
}): Promise<AxiosResponse<T>>;
|
|
139
140
|
getApiLogsDetailByPaymentCode<T>(paymentCode: string): Promise<AxiosResponse<T>>;
|
|
141
|
+
getApiLogsByTransactionCode<T>(transactionCode: string, accountCode: string): Promise<AxiosResponse<T>>;
|
|
140
142
|
useGetPaymentStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
|
|
141
143
|
useGetTransactionStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
|
|
142
144
|
useGetReconciliationTransactionStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
|
|
@@ -9,3 +9,4 @@ export declare function usePostWebhookLogs({ params, }: {
|
|
|
9
9
|
params: Audit.AuditWebhooksParams;
|
|
10
10
|
}): UseQueryResult<Audit.AuditWebhooksResponse, BFFErrorResponse>;
|
|
11
11
|
export declare function useGetApiLogsDetailByPaymentCode(code: string | null | undefined): UseQueryResult<unknown, BFFErrorResponse>;
|
|
12
|
+
export declare function useGetApiLogsByTransactionCode(transactionCode: string | null | undefined, accountCode: string | null | undefined): UseQueryResult<Audit.ApiLogByTransactionCode, BFFErrorResponse>;
|
|
@@ -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>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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>;
|
|
@@ -203,4 +203,18 @@ export declare namespace Audit {
|
|
|
203
203
|
interface AuditWebhooksResendParams {
|
|
204
204
|
codes: string[];
|
|
205
205
|
}
|
|
206
|
+
interface ApiLogByTransactionCode {
|
|
207
|
+
code: string;
|
|
208
|
+
url: string;
|
|
209
|
+
method: string;
|
|
210
|
+
source: string;
|
|
211
|
+
headers: AuditApiJSON;
|
|
212
|
+
request: AuditApiJSON;
|
|
213
|
+
response: AuditApiJSON;
|
|
214
|
+
account_name: string;
|
|
215
|
+
account_code: string;
|
|
216
|
+
status_code: number;
|
|
217
|
+
trace_id: string;
|
|
218
|
+
created_at: string;
|
|
219
|
+
}
|
|
206
220
|
}
|
|
@@ -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
|
}
|