@yuno-payments/dashboard-api-mfe 2.2.1 → 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 -6
- 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 +0 -6
- package/build/cjs/types/queries/audit/index.d.ts +1 -0
- package/build/cjs/types/types/audit/audit.d.ts +24 -0
- package/build/esm/index.js +3 -3
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +3 -6
- 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 +0 -6
- package/build/esm/types/queries/audit/index.d.ts +1 -0
- package/build/esm/types/types/audit/audit.d.ts +24 -0
- package/build/index.d.ts +40 -14
- package/package.json +1 -1
|
@@ -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,12 @@ 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
|
-
postApiLogsStatsRequests<T>(payload: Audit.ApiLogsStatsParams): Promise<AxiosResponse<T>>;
|
|
174
|
-
postApiLogsStatsErrors<T>(payload: Audit.ApiLogsStatsParams): Promise<AxiosResponse<T>>;
|
|
175
|
-
postApiLogsStatsErrorsByEndpoint<T>(payload: Audit.ApiLogsStatsParams): Promise<AxiosResponse<T>>;
|
|
176
170
|
createAuditSubscription<T>(payload: Audit.CreateAuditSubscriptionPayload): Promise<AxiosResponse<T>>;
|
|
177
171
|
listAuditSubscriptions<T>(): Promise<AxiosResponse<T>>;
|
|
178
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>>;
|
|
179
176
|
useGetCountriesConfig<T>(): Promise<AxiosResponse<T, any>>;
|
|
180
177
|
useGetCountriesConfigV2<T>(acceptLanguage?: string): Promise<AxiosResponse<T, any>>;
|
|
181
178
|
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>;
|
|
@@ -334,4 +334,28 @@ export declare namespace Audit {
|
|
|
334
334
|
interface ListAuditSubscriptionsResponse {
|
|
335
335
|
data: AuditSubscriptionGroup[];
|
|
336
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
|
+
}
|
|
337
361
|
}
|