@yuno-payments/dashboard-api-mfe 2.2.0 → 2.3.0
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 +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +3 -12
- package/build/cjs/types/mutations/audit/audit-api.mutation.d.ts +0 -3
- package/build/cjs/types/mutations/audit/audit-subscriptions-v2.mutation.d.ts +12 -0
- package/build/cjs/types/mutations/audit/index.d.ts +1 -0
- package/build/cjs/types/queries/audit/audit-subscriptions-v2.query.d.ts +4 -0
- package/build/cjs/types/queries/audit/audit.query.d.ts +3 -7
- package/build/cjs/types/queries/audit/index.d.ts +1 -0
- package/build/cjs/types/queries/index.d.ts +0 -2
- package/build/cjs/types/types/audit/audit.d.ts +24 -84
- package/build/esm/index.js +5 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +3 -12
- package/build/esm/types/mutations/audit/audit-api.mutation.d.ts +0 -3
- package/build/esm/types/mutations/audit/audit-subscriptions-v2.mutation.d.ts +12 -0
- package/build/esm/types/mutations/audit/index.d.ts +1 -0
- package/build/esm/types/queries/audit/audit-subscriptions-v2.query.d.ts +4 -0
- package/build/esm/types/queries/audit/audit.query.d.ts +3 -7
- package/build/esm/types/queries/audit/index.d.ts +1 -0
- package/build/esm/types/queries/index.d.ts +0 -2
- package/build/esm/types/types/audit/audit.d.ts +24 -84
- package/build/index.d.ts +43 -120
- package/package.json +1 -1
- package/build/cjs/types/msw/handlers/api-logs.d.ts +0 -1
- package/build/cjs/types/msw/handlers/webhooks.d.ts +0 -1
- package/build/cjs/types/msw/mocks/api-logs/api-logs-v3.mock.d.ts +0 -2
- package/build/cjs/types/msw/mocks/webhooks/webhook-timeline.mock.d.ts +0 -2
- package/build/cjs/types/queries/api-logs/api-logs-v3.query.d.ts +0 -9
- package/build/cjs/types/queries/api-logs/index.d.ts +0 -1
- package/build/cjs/types/queries/webhooks/index.d.ts +0 -1
- package/build/cjs/types/queries/webhooks/webhook-timeline.query.d.ts +0 -9
- package/build/esm/types/msw/handlers/api-logs.d.ts +0 -1
- package/build/esm/types/msw/handlers/webhooks.d.ts +0 -1
- package/build/esm/types/msw/mocks/api-logs/api-logs-v3.mock.d.ts +0 -2
- package/build/esm/types/msw/mocks/webhooks/webhook-timeline.mock.d.ts +0 -2
- package/build/esm/types/queries/api-logs/api-logs-v3.query.d.ts +0 -9
- package/build/esm/types/queries/api-logs/index.d.ts +0 -1
- package/build/esm/types/queries/webhooks/index.d.ts +0 -1
- package/build/esm/types/queries/webhooks/webhook-timeline.query.d.ts +0 -9
|
@@ -160,28 +160,19 @@ export declare class Api extends HttpClient {
|
|
|
160
160
|
}): Promise<AxiosResponse<T>>;
|
|
161
161
|
deleteWebhookV2<T>(code: string, accountCode: string): Promise<AxiosResponse<T>>;
|
|
162
162
|
updateWebhookV2<T>(code: string, payload: any, accountCode: string): Promise<AxiosResponse<T>>;
|
|
163
|
-
postWebhookLogs<T>({ payload: { account_code, ...rest }, }: {
|
|
164
|
-
payload: Audit.AuditWebhooksParams;
|
|
165
|
-
}): Promise<AxiosResponse<T>>;
|
|
166
163
|
postResendWebhooks<T>({ codes, }: Audit.AuditWebhooksResendParams): Promise<AxiosResponse<T>>;
|
|
167
|
-
postExportWebhooksLogs<T>(payload: Audit.ExportWebhooksLogsRequest): Promise<AxiosResponse<T>>;
|
|
168
|
-
getApiLogsV3<T>(paymentCode: string): Promise<AxiosResponse<T>>;
|
|
169
|
-
getWebhookTimeline<T>(paymentCode: string): Promise<AxiosResponse<T>>;
|
|
170
|
-
postExportDashboardLogs<T>(payload: Audit.ExportDashboardLogsRequest): Promise<AxiosResponse<T>>;
|
|
171
|
-
postExportMonitorsLogs<T>(payload: Audit.ExportMonitorsLogsRequest): Promise<AxiosResponse<T>>;
|
|
172
164
|
getAuditExportsList<T>(reportType: Audit.AuditExportReportType): Promise<AxiosResponse<T>>;
|
|
173
165
|
getAuditExportDownload<T>(reportId: string): Promise<AxiosResponse<T>>;
|
|
174
166
|
private getUnifiedExportsPath;
|
|
175
167
|
postUnifiedExport<T>(tab: Audit.UnifiedExportTabType, payload: Audit.UnifiedExportRequest): Promise<AxiosResponse<T>>;
|
|
176
168
|
getUnifiedExportStatus<T>(tab: Audit.UnifiedExportTabType, exportId: string): Promise<AxiosResponse<T>>;
|
|
177
169
|
getUnifiedExportsList<T>(tab: Audit.UnifiedExportTabType, page?: number, size?: number): Promise<AxiosResponse<T>>;
|
|
178
|
-
postApiLogsStatsRequests<T>(payload: Audit.ApiLogsStatsParams): Promise<AxiosResponse<T>>;
|
|
179
|
-
postApiLogsStatsErrors<T>(payload: Audit.ApiLogsStatsParams): Promise<AxiosResponse<T>>;
|
|
180
|
-
postApiLogsStatsErrorsByEndpoint<T>(payload: Audit.ApiLogsStatsParams): Promise<AxiosResponse<T>>;
|
|
181
|
-
postApiLogsList<T>(payload: Audit.ApiLogsListParams): Promise<AxiosResponse<T>>;
|
|
182
170
|
createAuditSubscription<T>(payload: Audit.CreateAuditSubscriptionPayload): Promise<AxiosResponse<T>>;
|
|
183
171
|
listAuditSubscriptions<T>(): Promise<AxiosResponse<T>>;
|
|
184
172
|
deleteAuditSubscription<T>(code: string): Promise<AxiosResponse<T>>;
|
|
173
|
+
createAuditSubscriptionV2<T>(payload: Audit.CreateAuditSubscriptionV2Payload): Promise<AxiosResponse<T>>;
|
|
174
|
+
listAuditSubscriptionsV2<T>(params?: Audit.ListAuditSubscriptionsV2Params): Promise<AxiosResponse<T>>;
|
|
175
|
+
deleteAuditSubscriptionV2<T>(code: string): Promise<AxiosResponse<T>>;
|
|
185
176
|
useGetCountriesConfig<T>(): Promise<AxiosResponse<T, any>>;
|
|
186
177
|
useGetCountriesConfigV2<T>(acceptLanguage?: string): Promise<AxiosResponse<T, any>>;
|
|
187
178
|
getSmartRoutingMethods<T>(accountCode: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
|
|
@@ -7,6 +7,3 @@ export interface UnifiedExportStartParams {
|
|
|
7
7
|
payload: Audit.UnifiedExportRequest;
|
|
8
8
|
}
|
|
9
9
|
export declare function useUnifiedExportStart(): UseMutationResult<Audit.UnifiedExportStartResponse, BFFErrorResponse, UnifiedExportStartParams>;
|
|
10
|
-
export declare function useExportWebhooksLogs(): UseMutationResult<string, BFFErrorResponse, Audit.ExportWebhooksLogsRequest>;
|
|
11
|
-
export declare function useExportDashboardLogs(): UseMutationResult<Audit.AuditExportResponse, BFFErrorResponse, Audit.ExportDashboardLogsRequest>;
|
|
12
|
-
export declare function useExportMonitorsLogs(): UseMutationResult<Audit.AuditExportResponse, BFFErrorResponse, Audit.ExportMonitorsLogsRequest>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UseMutationResult } from '@tanstack/react-query';
|
|
2
|
+
import { AxiosError } from 'axios';
|
|
3
|
+
import type { Audit } from '../../types';
|
|
4
|
+
import { BFFErrorResponse } from '../smart-routing';
|
|
5
|
+
export type CreateAuditSubscriptionV2Result = {
|
|
6
|
+
alreadyExists: false;
|
|
7
|
+
subscription: Audit.AuditSubscriptionGroupV2;
|
|
8
|
+
} | {
|
|
9
|
+
alreadyExists: true;
|
|
10
|
+
};
|
|
11
|
+
export declare function useCreateAuditSubscriptionV2(): UseMutationResult<CreateAuditSubscriptionV2Result, AxiosError<BFFErrorResponse>, Audit.CreateAuditSubscriptionV2Payload>;
|
|
12
|
+
export declare function useDeleteAuditSubscriptionV2(): UseMutationResult<void, AxiosError<BFFErrorResponse>, string>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import type { Audit } from '../../types';
|
|
3
|
+
import { BFFErrorResponse } from '../../mutations';
|
|
4
|
+
export declare function useListAuditSubscriptionsV2(params?: Audit.ListAuditSubscriptionsV2Params): UseQueryResult<Audit.AuditSubscriptionGroupV2[], BFFErrorResponse>;
|
|
@@ -17,9 +17,6 @@ export declare function useGetAuditEvents(params: Audit.AuditEventsParams): UseQ
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function useGetAuditEventByCode(eventCode: string | null | undefined, accountCodes: string[] | undefined): UseQueryResult<Audit.AuditEventData, AxiosError>;
|
|
19
19
|
export declare function useGetAuditMonitorEventDetail(id: number | null): UseQueryResult<Audit.AuditMonitorDetail, AxiosError>;
|
|
20
|
-
export declare function usePostWebhookLogs({ params, }: {
|
|
21
|
-
params: Audit.AuditWebhooksParams;
|
|
22
|
-
}): UseQueryResult<Audit.AuditWebhooksResponse, BFFErrorResponse>;
|
|
23
20
|
export declare function usePostWebhookLogsV2({ params, }: {
|
|
24
21
|
params: Audit.AuditWebhooksParams;
|
|
25
22
|
}): UseQueryResult<Audit.AuditWebhooksResponse, BFFErrorResponse>;
|
|
@@ -43,7 +40,6 @@ export interface UnifiedExportsListQueryParams {
|
|
|
43
40
|
enabled?: boolean;
|
|
44
41
|
}
|
|
45
42
|
export declare function useGetUnifiedExportsList({ tab, page, size, enabled, }: UnifiedExportsListQueryParams): UseQueryResult<Audit.UnifiedExportListResponse, BFFErrorResponse>;
|
|
46
|
-
export declare function
|
|
47
|
-
export declare function
|
|
48
|
-
export declare function
|
|
49
|
-
export declare function useGetApiLogsList(params: Audit.ApiLogsListParams): UseQueryResult<Audit.ApiLogsListResponse, BFFErrorResponse>;
|
|
43
|
+
export declare function useGetApiLogsStatsRequestsV2(params: Audit.ApiLogsStatsParams): UseQueryResult<Audit.ApiLogsStatsResponse, BFFErrorResponse>;
|
|
44
|
+
export declare function useGetApiLogsStatsErrorsV2(params: Audit.ApiLogsStatsParams): UseQueryResult<Audit.ApiLogsStatsResponse, BFFErrorResponse>;
|
|
45
|
+
export declare function useGetApiLogsStatsErrorsByEndpointV2(params: Audit.ApiLogsStatsParams): UseQueryResult<Audit.ApiLogsErrorsByEndpointResponse, BFFErrorResponse>;
|
|
@@ -32,8 +32,6 @@ export * from './organization-config';
|
|
|
32
32
|
export * from './onboarding';
|
|
33
33
|
export * from './recipients';
|
|
34
34
|
export * from './installments';
|
|
35
|
-
export * from './api-logs';
|
|
36
|
-
export * from './webhooks';
|
|
37
35
|
export * from './security';
|
|
38
36
|
export * from './concierge';
|
|
39
37
|
export * from './field-visibility';
|
|
@@ -110,18 +110,6 @@ export declare namespace Audit {
|
|
|
110
110
|
type: string;
|
|
111
111
|
percentage: number;
|
|
112
112
|
}
|
|
113
|
-
interface ExportWebhooksLogsRequest {
|
|
114
|
-
report_name: string;
|
|
115
|
-
account_code?: string[];
|
|
116
|
-
start_date: string;
|
|
117
|
-
end_date: string;
|
|
118
|
-
time_zone: string;
|
|
119
|
-
organizationCode?: string;
|
|
120
|
-
status_codes?: string[];
|
|
121
|
-
methods?: string[];
|
|
122
|
-
size?: number;
|
|
123
|
-
page?: number;
|
|
124
|
-
}
|
|
125
113
|
interface AuditApiJSON {
|
|
126
114
|
[key: string]: string;
|
|
127
115
|
}
|
|
@@ -180,28 +168,6 @@ export declare namespace Audit {
|
|
|
180
168
|
payment_code?: string;
|
|
181
169
|
transaction_code?: string;
|
|
182
170
|
}
|
|
183
|
-
interface ApiLogsV3Response {
|
|
184
|
-
data: ApiLogV3[];
|
|
185
|
-
page: number;
|
|
186
|
-
size: number;
|
|
187
|
-
total_rows: number;
|
|
188
|
-
total_pages: number;
|
|
189
|
-
}
|
|
190
|
-
interface ApiLogsV3Params {
|
|
191
|
-
page: number;
|
|
192
|
-
size: number;
|
|
193
|
-
periodicity?: string;
|
|
194
|
-
account_code?: string[];
|
|
195
|
-
organizationCode?: string;
|
|
196
|
-
status_codes?: string[];
|
|
197
|
-
methods?: string[];
|
|
198
|
-
start_date?: string;
|
|
199
|
-
end_date?: string;
|
|
200
|
-
search?: string;
|
|
201
|
-
time_zone?: string;
|
|
202
|
-
now?: string;
|
|
203
|
-
payment_code?: string;
|
|
204
|
-
}
|
|
205
171
|
interface WebhookTimelineItem {
|
|
206
172
|
id: number;
|
|
207
173
|
organization_code: string;
|
|
@@ -224,28 +190,6 @@ export declare namespace Audit {
|
|
|
224
190
|
payment_code?: string;
|
|
225
191
|
transaction_code?: string;
|
|
226
192
|
}
|
|
227
|
-
interface WebhookTimelineResponse {
|
|
228
|
-
data: WebhookTimelineItem[];
|
|
229
|
-
page: number;
|
|
230
|
-
size: number;
|
|
231
|
-
total_rows: number;
|
|
232
|
-
total_pages: number;
|
|
233
|
-
}
|
|
234
|
-
interface WebhookTimelineParams {
|
|
235
|
-
page: number;
|
|
236
|
-
size: number;
|
|
237
|
-
organizationCode?: string;
|
|
238
|
-
periodicity?: string;
|
|
239
|
-
account_code?: string[];
|
|
240
|
-
status_codes?: string[];
|
|
241
|
-
methods?: string[];
|
|
242
|
-
start_date?: string;
|
|
243
|
-
end_date?: string;
|
|
244
|
-
time_zone?: string;
|
|
245
|
-
now?: string;
|
|
246
|
-
payment_code?: string;
|
|
247
|
-
transaction_code?: string;
|
|
248
|
-
}
|
|
249
193
|
enum AuditExportReportType {
|
|
250
194
|
DASHBOARD = "DASHBOARD",
|
|
251
195
|
API = "API",
|
|
@@ -253,27 +197,6 @@ export declare namespace Audit {
|
|
|
253
197
|
MONITORS = "MONITORS"
|
|
254
198
|
}
|
|
255
199
|
type AuditExportStatus = 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED';
|
|
256
|
-
interface ExportDashboardLogsRequest {
|
|
257
|
-
report_name: string;
|
|
258
|
-
account_code?: string[];
|
|
259
|
-
start_date: string;
|
|
260
|
-
end_date: string;
|
|
261
|
-
time_zone: string;
|
|
262
|
-
event?: string[];
|
|
263
|
-
source?: string[];
|
|
264
|
-
search?: string[];
|
|
265
|
-
}
|
|
266
|
-
interface ExportMonitorsLogsRequest {
|
|
267
|
-
report_name: string;
|
|
268
|
-
account_codes?: string[];
|
|
269
|
-
start_date: string;
|
|
270
|
-
end_date: string;
|
|
271
|
-
time_zone: string;
|
|
272
|
-
status?: string[];
|
|
273
|
-
payment_methods?: string[];
|
|
274
|
-
providers?: string[];
|
|
275
|
-
traffic_redistribution?: boolean;
|
|
276
|
-
}
|
|
277
200
|
type UnifiedExportTabType = 'dashboard-logs' | 'api-logs' | 'webhook-logs' | 'monitor-logs';
|
|
278
201
|
interface UnifiedExportRequest {
|
|
279
202
|
start_date: string;
|
|
@@ -358,13 +281,6 @@ export declare namespace Audit {
|
|
|
358
281
|
search?: string;
|
|
359
282
|
accounts?: string[];
|
|
360
283
|
}
|
|
361
|
-
interface ApiLogsListResponse {
|
|
362
|
-
page: number;
|
|
363
|
-
size: number;
|
|
364
|
-
total_rows: number;
|
|
365
|
-
total_pages: number;
|
|
366
|
-
data: ApiLogItem[];
|
|
367
|
-
}
|
|
368
284
|
interface ApiLogItem {
|
|
369
285
|
code: string;
|
|
370
286
|
url: string;
|
|
@@ -418,4 +334,28 @@ export declare namespace Audit {
|
|
|
418
334
|
interface ListAuditSubscriptionsResponse {
|
|
419
335
|
data: AuditSubscriptionGroup[];
|
|
420
336
|
}
|
|
337
|
+
interface AuditSubscriptionGroupV2 {
|
|
338
|
+
code: string;
|
|
339
|
+
user_code: string;
|
|
340
|
+
user_email: string;
|
|
341
|
+
organization_code: string;
|
|
342
|
+
sources: string[];
|
|
343
|
+
events: string[];
|
|
344
|
+
account_codes: string[];
|
|
345
|
+
enabled: boolean;
|
|
346
|
+
created_at: string;
|
|
347
|
+
updated_at: string;
|
|
348
|
+
last_fired_at?: string | null;
|
|
349
|
+
}
|
|
350
|
+
interface CreateAuditSubscriptionV2Payload {
|
|
351
|
+
sources: string[];
|
|
352
|
+
events: string[];
|
|
353
|
+
account_codes: string[];
|
|
354
|
+
}
|
|
355
|
+
interface ListAuditSubscriptionsV2Params {
|
|
356
|
+
account_code?: string;
|
|
357
|
+
}
|
|
358
|
+
interface ListAuditSubscriptionsV2Response {
|
|
359
|
+
data: AuditSubscriptionGroupV2[];
|
|
360
|
+
}
|
|
421
361
|
}
|