@yuno-payments/dashboard-api-mfe 2.2.1 → 2.3.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 +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +3 -9
- package/build/cjs/types/mutations/audit/audit-subscriptions-v2.mutation.d.ts +12 -0
- package/build/cjs/types/mutations/audit/index.d.ts +1 -1
- package/build/cjs/types/queries/audit/audit-subscriptions-v2.query.d.ts +4 -0
- package/build/cjs/types/queries/audit/audit.query.d.ts +0 -6
- package/build/cjs/types/queries/audit/index.d.ts +1 -1
- package/build/cjs/types/types/audit/audit.d.ts +12 -10
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +3 -9
- package/build/esm/types/mutations/audit/audit-subscriptions-v2.mutation.d.ts +12 -0
- package/build/esm/types/mutations/audit/index.d.ts +1 -1
- package/build/esm/types/queries/audit/audit-subscriptions-v2.query.d.ts +4 -0
- package/build/esm/types/queries/audit/audit.query.d.ts +0 -6
- package/build/esm/types/queries/audit/index.d.ts +1 -1
- package/build/esm/types/types/audit/audit.d.ts +12 -10
- package/build/index.d.ts +22 -72
- package/package.json +1 -1
- package/build/cjs/types/mutations/audit/audit-subscriptions.mutation.d.ts +0 -41
- package/build/cjs/types/queries/audit/audit-subscriptions.query.d.ts +0 -15
- package/build/esm/types/mutations/audit/audit-subscriptions.mutation.d.ts +0 -41
- package/build/esm/types/queries/audit/audit-subscriptions.query.d.ts +0 -15
|
@@ -160,9 +160,6 @@ 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
164
|
getAuditExportsList<T>(reportType: Audit.AuditExportReportType): Promise<AxiosResponse<T>>;
|
|
168
165
|
getAuditExportDownload<T>(reportId: string): Promise<AxiosResponse<T>>;
|
|
@@ -170,12 +167,9 @@ export declare class Api extends HttpClient {
|
|
|
170
167
|
postUnifiedExport<T>(tab: Audit.UnifiedExportTabType, payload: Audit.UnifiedExportRequest): Promise<AxiosResponse<T>>;
|
|
171
168
|
getUnifiedExportStatus<T>(tab: Audit.UnifiedExportTabType, exportId: string): Promise<AxiosResponse<T>>;
|
|
172
169
|
getUnifiedExportsList<T>(tab: Audit.UnifiedExportTabType, page?: number, size?: number): Promise<AxiosResponse<T>>;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
createAuditSubscription<T>(payload: Audit.CreateAuditSubscriptionPayload): Promise<AxiosResponse<T>>;
|
|
177
|
-
listAuditSubscriptions<T>(): Promise<AxiosResponse<T>>;
|
|
178
|
-
deleteAuditSubscription<T>(code: string): Promise<AxiosResponse<T>>;
|
|
170
|
+
createAuditSubscriptionV2<T>(payload: Audit.CreateAuditSubscriptionV2Payload): Promise<AxiosResponse<T>>;
|
|
171
|
+
listAuditSubscriptionsV2<T>(params?: Audit.ListAuditSubscriptionsV2Params): Promise<AxiosResponse<T>>;
|
|
172
|
+
deleteAuditSubscriptionV2<T>(code: string): Promise<AxiosResponse<T>>;
|
|
179
173
|
useGetCountriesConfig<T>(): Promise<AxiosResponse<T, any>>;
|
|
180
174
|
useGetCountriesConfigV2<T>(acceptLanguage?: string): Promise<AxiosResponse<T, any>>;
|
|
181
175
|
getSmartRoutingMethods<T>(accountCode: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
|
|
@@ -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,9 +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 useGetApiLogsStatsRequests(params: Audit.ApiLogsStatsParams): UseQueryResult<Audit.ApiLogsStatsResponse, BFFErrorResponse>;
|
|
47
|
-
export declare function useGetApiLogsStatsErrors(params: Audit.ApiLogsStatsParams): UseQueryResult<Audit.ApiLogsStatsResponse, BFFErrorResponse>;
|
|
48
|
-
export declare function useGetApiLogsStatsErrorsByEndpoint(params: Audit.ApiLogsStatsParams): UseQueryResult<Audit.ApiLogsErrorsByEndpointResponse, BFFErrorResponse>;
|
|
49
43
|
export declare function useGetApiLogsStatsRequestsV2(params: Audit.ApiLogsStatsParams): UseQueryResult<Audit.ApiLogsStatsResponse, BFFErrorResponse>;
|
|
50
44
|
export declare function useGetApiLogsStatsErrorsV2(params: Audit.ApiLogsStatsParams): UseQueryResult<Audit.ApiLogsStatsResponse, BFFErrorResponse>;
|
|
51
45
|
export declare function useGetApiLogsStatsErrorsByEndpointV2(params: Audit.ApiLogsStatsParams): UseQueryResult<Audit.ApiLogsErrorsByEndpointResponse, BFFErrorResponse>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './audit.query';
|
|
2
|
-
export * from './audit-subscriptions.query';
|
|
2
|
+
export * from './audit-subscriptions-v2.query';
|
|
@@ -312,26 +312,28 @@ export declare namespace Audit {
|
|
|
312
312
|
total_pages: number;
|
|
313
313
|
data: ApiLogV3Item[];
|
|
314
314
|
}
|
|
315
|
-
interface
|
|
316
|
-
events: string[];
|
|
317
|
-
}
|
|
318
|
-
interface AuditSubscriptionGroup {
|
|
315
|
+
interface AuditSubscriptionGroupV2 {
|
|
319
316
|
code: string;
|
|
320
317
|
user_code: string;
|
|
321
318
|
user_email: string;
|
|
322
319
|
organization_code: string;
|
|
323
|
-
sources:
|
|
320
|
+
sources: string[];
|
|
321
|
+
events: string[];
|
|
324
322
|
account_codes: string[];
|
|
325
323
|
enabled: boolean;
|
|
326
324
|
created_at: string;
|
|
327
325
|
updated_at: string;
|
|
328
326
|
last_fired_at?: string | null;
|
|
329
327
|
}
|
|
330
|
-
|
|
331
|
-
sources:
|
|
328
|
+
interface CreateAuditSubscriptionV2Payload {
|
|
329
|
+
sources: string[];
|
|
330
|
+
events: string[];
|
|
332
331
|
account_codes: string[];
|
|
333
|
-
}
|
|
334
|
-
interface
|
|
335
|
-
|
|
332
|
+
}
|
|
333
|
+
interface ListAuditSubscriptionsV2Params {
|
|
334
|
+
account_code?: string;
|
|
335
|
+
}
|
|
336
|
+
interface ListAuditSubscriptionsV2Response {
|
|
337
|
+
data: AuditSubscriptionGroupV2[];
|
|
336
338
|
}
|
|
337
339
|
}
|