@yuno-payments/dashboard-api-mfe 0.42.8 → 0.42.14-beta.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.
- package/build/cjs/index.js +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +10 -2
- package/build/cjs/types/mutations/audit/audit-api.mutation.d.ts +3 -0
- package/build/cjs/types/queries/audit/audit.query.d.ts +5 -0
- package/build/cjs/types/types/audit/audit.d.ts +90 -0
- package/build/esm/index.js +6 -6
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +10 -2
- package/build/esm/types/mutations/audit/audit-api.mutation.d.ts +3 -0
- package/build/esm/types/queries/audit/audit.query.d.ts +5 -0
- package/build/esm/types/types/audit/audit.d.ts +90 -0
- package/build/index.d.ts +109 -3
- package/package.json +1 -1
|
@@ -134,10 +134,18 @@ export declare class Api extends HttpClient {
|
|
|
134
134
|
postResendWebhooks<T>({ codes, }: Audit.AuditWebhooksResendParams): Promise<AxiosResponse<T>>;
|
|
135
135
|
postExportApiLogs<T>(payload: Audit.ExportApiLogsRequest): Promise<AxiosResponse<T>>;
|
|
136
136
|
postExportWebhooksLogs<T>(payload: Audit.ExportWebhooksLogsRequest): Promise<AxiosResponse<T>>;
|
|
137
|
+
postExportDashboardLogs<T>(payload: Audit.ExportDashboardLogsRequest): Promise<AxiosResponse<T>>;
|
|
138
|
+
postExportMonitorsLogs<T>(payload: Audit.ExportMonitorsLogsRequest): Promise<AxiosResponse<T>>;
|
|
139
|
+
getAuditExportsList<T>(reportType: Audit.AuditExportReportType): Promise<AxiosResponse<T>>;
|
|
140
|
+
getAuditExportDownload<T>(reportId: string): Promise<AxiosResponse<T>>;
|
|
141
|
+
postApiLogsExport<T>(payload: Audit.ApiLogsExportRequest): Promise<AxiosResponse<T>>;
|
|
142
|
+
getApiLogsExportStatus<T>(exportId: string): Promise<AxiosResponse<T>>;
|
|
143
|
+
getApiLogsExportsList<T>(page?: number, size?: number): Promise<AxiosResponse<T>>;
|
|
137
144
|
postApiLogs<T>({ payload: { account_code, ...rest }, }: {
|
|
138
145
|
payload: Audit.AuditApiLogsParams;
|
|
139
146
|
}): Promise<AxiosResponse<T>>;
|
|
140
147
|
getApiLogsDetailByPaymentCode<T>(paymentCode: string): Promise<AxiosResponse<T>>;
|
|
148
|
+
getApiLogsByTransactionCode<T>(transactionCode: string, accountCode: string): Promise<AxiosResponse<T>>;
|
|
141
149
|
useGetPaymentStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
|
|
142
150
|
useGetTransactionStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
|
|
143
151
|
useGetReconciliationTransactionStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
|
|
@@ -505,14 +513,14 @@ export declare class Api extends HttpClient {
|
|
|
505
513
|
postCreateRuleMultiAccount<T>(payload: any, accountCode: any): Promise<AxiosResponse<T, any>>;
|
|
506
514
|
postEditRule<T>(payload: any, ruleId: any, accountCode: any): Promise<AxiosResponse<T, any>>;
|
|
507
515
|
postApiKeysRoll<T>(payload: any, keyCode: any, password: any): Promise<AxiosResponse<T, any>>;
|
|
508
|
-
patchApiKeysEditNote<T>(payload: any, keyCode: any): Promise<AxiosResponse<T, any>>;
|
|
516
|
+
patchApiKeysEditNote<T>(payload: any, keyCode: any, password: any): Promise<AxiosResponse<T, any>>;
|
|
509
517
|
getCustomizedApiKeysMembers<T>(): Promise<AxiosResponse<T, any>>;
|
|
510
518
|
getCustomizedApiKeysAccounts<T>(): Promise<AxiosResponse<T, any>>;
|
|
511
519
|
postCreateCustomizedApiKeys<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
512
520
|
pathCreateCustomizedApiKeys<T>(payload: any, code: any): Promise<AxiosResponse<T, any>>;
|
|
513
521
|
postCustomizedApiKeys<T>(accountCodes: string[]): Promise<AxiosResponse<T, any>>;
|
|
514
522
|
getCustomizedApiKeysProducts<T>(): Promise<AxiosResponse<T, any>>;
|
|
515
|
-
getCustomizedApiKeysToken<T>(code:
|
|
523
|
+
getCustomizedApiKeysToken<T>(code: string, password?: string, otp?: string, mfaToken?: string): Promise<AxiosResponse<T, any>>;
|
|
516
524
|
validatePasswordStatus<T>(): Promise<AxiosResponse<T, any, {}>>;
|
|
517
525
|
deleteCustomizedApiKeys<T>(code: any): Promise<AxiosResponse<T, any>>;
|
|
518
526
|
postCreateInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
@@ -2,5 +2,8 @@ import { UseMutationResult } from '@tanstack/react-query';
|
|
|
2
2
|
import { Audit } from '../../types';
|
|
3
3
|
import { BFFErrorResponse } from '../smart-routing';
|
|
4
4
|
export declare function useResendWebhooks(): UseMutationResult<void, BFFErrorResponse, Audit.AuditWebhooksResendParams>;
|
|
5
|
+
export declare function useApiLogsExport(): UseMutationResult<Audit.ApiLogsExportStartResponse, BFFErrorResponse, Audit.ApiLogsExportRequest>;
|
|
5
6
|
export declare function useExportApiLogs(): UseMutationResult<string, BFFErrorResponse, Audit.ExportApiLogsRequest>;
|
|
6
7
|
export declare function useExportWebhooksLogs(): UseMutationResult<string, BFFErrorResponse, Audit.ExportWebhooksLogsRequest>;
|
|
8
|
+
export declare function useExportDashboardLogs(): UseMutationResult<Audit.AuditExportResponse, BFFErrorResponse, Audit.ExportDashboardLogsRequest>;
|
|
9
|
+
export declare function useExportMonitorsLogs(): UseMutationResult<Audit.AuditExportResponse, BFFErrorResponse, Audit.ExportMonitorsLogsRequest>;
|
|
@@ -9,3 +9,8 @@ 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>;
|
|
13
|
+
export declare function useGetAuditExportsList(reportType: Audit.AuditExportReportType, enabled?: boolean): UseQueryResult<Audit.AuditExportResponse[], BFFErrorResponse>;
|
|
14
|
+
export declare function useGetAuditExportDownload(reportId: string, enabled?: boolean, onSuccess?: (data: Audit.AuditExportDownloadResponse) => void): UseQueryResult<Audit.AuditExportDownloadResponse, BFFErrorResponse>;
|
|
15
|
+
export declare function useGetApiLogsExportStatus(exportId: string, enabled?: boolean, onSuccess?: (data: Audit.ApiLogsExportStatusResponse) => void): UseQueryResult<Audit.ApiLogsExportStatusResponse, BFFErrorResponse>;
|
|
16
|
+
export declare function useGetApiLogsExportsList(page?: number, size?: number, enabled?: boolean): UseQueryResult<Audit.ApiLogsExportListResponse, BFFErrorResponse>;
|
|
@@ -203,4 +203,94 @@ 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
|
+
}
|
|
220
|
+
enum AuditExportReportType {
|
|
221
|
+
DASHBOARD = "DASHBOARD",
|
|
222
|
+
API = "API",
|
|
223
|
+
WEBHOOKS = "WEBHOOKS",
|
|
224
|
+
MONITORS = "MONITORS"
|
|
225
|
+
}
|
|
226
|
+
type AuditExportStatus = 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED';
|
|
227
|
+
interface ExportDashboardLogsRequest {
|
|
228
|
+
report_name: string;
|
|
229
|
+
account_code?: string[];
|
|
230
|
+
start_date: string;
|
|
231
|
+
end_date: string;
|
|
232
|
+
time_zone: string;
|
|
233
|
+
event?: string[];
|
|
234
|
+
source?: string[];
|
|
235
|
+
search?: string[];
|
|
236
|
+
}
|
|
237
|
+
interface ExportMonitorsLogsRequest {
|
|
238
|
+
report_name: string;
|
|
239
|
+
account_codes?: string[];
|
|
240
|
+
start_date: string;
|
|
241
|
+
end_date: string;
|
|
242
|
+
time_zone: string;
|
|
243
|
+
status?: string[];
|
|
244
|
+
payment_methods?: string[];
|
|
245
|
+
providers?: string[];
|
|
246
|
+
traffic_redistribution?: boolean;
|
|
247
|
+
}
|
|
248
|
+
interface ApiLogsExportRequest {
|
|
249
|
+
start_date: string;
|
|
250
|
+
end_date: string;
|
|
251
|
+
export_name: string;
|
|
252
|
+
timezone: string;
|
|
253
|
+
accounts?: string[];
|
|
254
|
+
columns?: string[];
|
|
255
|
+
}
|
|
256
|
+
interface ApiLogsExportStartResponse {
|
|
257
|
+
export_id: string;
|
|
258
|
+
status: AuditExportStatus;
|
|
259
|
+
message: string;
|
|
260
|
+
}
|
|
261
|
+
interface ApiLogsExportStatusResponse {
|
|
262
|
+
export_id: string;
|
|
263
|
+
status: AuditExportStatus;
|
|
264
|
+
download_url?: string;
|
|
265
|
+
created_at: string;
|
|
266
|
+
export_name: string;
|
|
267
|
+
error_message?: string | null;
|
|
268
|
+
}
|
|
269
|
+
interface ApiLogsExportListResponse {
|
|
270
|
+
exports: ApiLogsExportStatusResponse[];
|
|
271
|
+
total: number;
|
|
272
|
+
page: number;
|
|
273
|
+
size: number;
|
|
274
|
+
}
|
|
275
|
+
interface AuditExportResponse {
|
|
276
|
+
report_id: string;
|
|
277
|
+
report_type: AuditExportReportType;
|
|
278
|
+
status: AuditExportStatus;
|
|
279
|
+
name: string;
|
|
280
|
+
start_date: string;
|
|
281
|
+
end_date: string;
|
|
282
|
+
created_at: string;
|
|
283
|
+
updated_at: string;
|
|
284
|
+
url?: string | null;
|
|
285
|
+
}
|
|
286
|
+
interface AuditExportListResponse {
|
|
287
|
+
data: AuditExportResponse[];
|
|
288
|
+
page: number;
|
|
289
|
+
size: number;
|
|
290
|
+
total_rows: number;
|
|
291
|
+
total_pages: number;
|
|
292
|
+
}
|
|
293
|
+
interface AuditExportDownloadResponse {
|
|
294
|
+
redirect_link: string;
|
|
295
|
+
}
|
|
206
296
|
}
|