@yuno-payments/dashboard-api-mfe 0.36.48 → 0.36.50-DAS-93.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 +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +19 -9
- package/build/cjs/types/mutations/audit/audit-api.mutation.d.ts +7 -0
- package/build/cjs/types/mutations/audit/index.d.ts +1 -0
- package/build/cjs/types/mutations/chartgpt/chartgpt.mutation.d.ts +1 -1
- package/build/cjs/types/mutations/index.d.ts +1 -0
- package/build/cjs/types/queries/audit/audit.query.d.ts +5 -0
- package/build/cjs/types/queries/chartgpt/chartgpt.query.d.ts +5 -0
- package/build/cjs/types/types/smart-routing/smart-routing.d.ts +1 -1
- package/build/esm/index.js +7 -7
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +19 -9
- package/build/esm/types/mutations/audit/audit-api.mutation.d.ts +7 -0
- package/build/esm/types/mutations/audit/index.d.ts +1 -0
- package/build/esm/types/mutations/chartgpt/chartgpt.mutation.d.ts +1 -1
- package/build/esm/types/mutations/index.d.ts +1 -0
- package/build/esm/types/queries/audit/audit.query.d.ts +5 -0
- package/build/esm/types/queries/chartgpt/chartgpt.query.d.ts +5 -0
- package/build/esm/types/types/smart-routing/smart-routing.d.ts +1 -1
- package/build/index.d.ts +38 -11
- package/package.json +3 -2
|
@@ -10,7 +10,7 @@ import { AllowedList } from '../types/allowed-list';
|
|
|
10
10
|
import { Cost } from '../types/connection/costs';
|
|
11
11
|
import { Styling, StylingSettings, UpdateStylingThemeParams } from '../types/checkout/styling/styling';
|
|
12
12
|
import { FeatureFlags } from '../types/feature-flags/intex';
|
|
13
|
-
import { FeatureFlagsResult } from '../queries';
|
|
13
|
+
import { FeatureFlagsResult, PatchChartGPTPayload } from '../queries';
|
|
14
14
|
interface S3Payload {
|
|
15
15
|
payload: S3Client.PayloadV2;
|
|
16
16
|
handleSetProgress?: (progress: number) => void;
|
|
@@ -120,6 +120,20 @@ export declare class Api extends HttpClient {
|
|
|
120
120
|
deleteWebhookV2<T>(code: string, accountCode: string): Promise<AxiosResponse<T>>;
|
|
121
121
|
updateWebhookV2<T>(code: string, payload: any, accountCode: string): Promise<AxiosResponse<T>>;
|
|
122
122
|
getMenu<T>(): Promise<AxiosResponse<T>>;
|
|
123
|
+
postWebhookLogs<T>({ payload: { account_code, ...rest }, }: {
|
|
124
|
+
payload: any;
|
|
125
|
+
}): Promise<AxiosResponse<T>>;
|
|
126
|
+
getWebhookDetail<T>(code: string): Promise<AxiosResponse<T>>;
|
|
127
|
+
postRetryWebhooks<T>({ codes, }: {
|
|
128
|
+
codes: string[];
|
|
129
|
+
}): Promise<AxiosResponse<T>>;
|
|
130
|
+
postExportApiLogs<T>({ payload, }: {
|
|
131
|
+
payload: any;
|
|
132
|
+
}): Promise<AxiosResponse<T>>;
|
|
133
|
+
postApiLogs<T>({ payload: { account_code, ...rest }, }: {
|
|
134
|
+
payload: any;
|
|
135
|
+
}): Promise<AxiosResponse<T>>;
|
|
136
|
+
getApiLogDetail<T>(code: string): Promise<AxiosResponse<T>>;
|
|
123
137
|
useGetPaymentStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
|
|
124
138
|
useGetTransactionStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
|
|
125
139
|
useGetReconciliationTransactionStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
|
|
@@ -484,14 +498,10 @@ export declare class Api extends HttpClient {
|
|
|
484
498
|
createChartGPTChart<T>(payload: {
|
|
485
499
|
user_prompt: string;
|
|
486
500
|
}): Promise<AxiosResponse<T, any>>;
|
|
487
|
-
deleteChartGPTChart<T>(
|
|
488
|
-
getChartById<T>(
|
|
489
|
-
patchChartGPTChart<T>(
|
|
490
|
-
|
|
491
|
-
name: string;
|
|
492
|
-
user_prompt: string;
|
|
493
|
-
}): Promise<AxiosResponse<T, any>>;
|
|
494
|
-
executeChartGPTChart<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
|
|
501
|
+
deleteChartGPTChart<T>(chart_id: string): Promise<AxiosResponse<T, any>>;
|
|
502
|
+
getChartById<T>(chart_id: string): Promise<AxiosResponse<T, any>>;
|
|
503
|
+
patchChartGPTChart<T>(chart_id: string, payload: PatchChartGPTPayload): Promise<AxiosResponse<T, any>>;
|
|
504
|
+
executeChartGPTChart<T>(chart_id?: string): Promise<AxiosResponse<T, any>>;
|
|
495
505
|
getChartsByUser<T>(): Promise<AxiosResponse<T, any>>;
|
|
496
506
|
getLanguages<T>(): Promise<AxiosResponse<T, any>>;
|
|
497
507
|
getTranslations<T>(lang: string): Promise<AxiosResponse<T, any>>;
|
|
@@ -27,7 +27,7 @@ export interface CreateAndExecuteChartPayload {
|
|
|
27
27
|
export interface CreateAndExecuteChartResult {
|
|
28
28
|
chart: ChartGPTChart;
|
|
29
29
|
execution: ChartGPTExecuteResponse;
|
|
30
|
-
|
|
30
|
+
chartgpt_id: string;
|
|
31
31
|
}
|
|
32
32
|
export declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
|
|
33
33
|
export declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
|
|
@@ -21,6 +21,7 @@ export * from './scheduled-reports';
|
|
|
21
21
|
export * from './velocity-rules';
|
|
22
22
|
export * from './developers';
|
|
23
23
|
export * from './audit';
|
|
24
|
+
export * from './audit/audit-api.mutation';
|
|
24
25
|
export * from './reconciliations';
|
|
25
26
|
export * from './insights';
|
|
26
27
|
export * from './saml-config';
|
|
@@ -3,3 +3,8 @@ import { AxiosError } from 'axios';
|
|
|
3
3
|
import type { Audit } from '../../types';
|
|
4
4
|
export declare function useGetAuditEvents(params: Audit.AuditEventsParams): UseQueryResult<Audit.AuditEvents, AxiosError>;
|
|
5
5
|
export declare function useGetAuditMonitorEventDetail(id: number | null): UseQueryResult<Audit.AuditMonitorDetail, AxiosError>;
|
|
6
|
+
export declare function usePostApiLogs(params: any): UseQueryResult<any, unknown>;
|
|
7
|
+
export declare function usePostWebhookLogs({ params, }: {
|
|
8
|
+
params: any;
|
|
9
|
+
}): UseQueryResult<any, unknown>;
|
|
10
|
+
export declare function useGetWebhookDetail(code: string): UseQueryResult<any, unknown>;
|
|
@@ -11,6 +11,7 @@ export interface ChartGPTExecuteResponse {
|
|
|
11
11
|
sql_query?: string;
|
|
12
12
|
user_prompt?: string;
|
|
13
13
|
type: 'BOX' | 'BAR' | 'LINE' | 'PIE' | 'MULTIPLE_LINES';
|
|
14
|
+
unit_to_display?: 'currency' | 'percentage' | 'number';
|
|
14
15
|
}
|
|
15
16
|
export interface ChartGPTChart {
|
|
16
17
|
chart_id?: string;
|
|
@@ -21,6 +22,7 @@ export interface ChartGPTChart {
|
|
|
21
22
|
user_prompt: string;
|
|
22
23
|
summary: string;
|
|
23
24
|
status: string;
|
|
25
|
+
unit_to_display?: 'currency' | 'percentage' | 'number';
|
|
24
26
|
}
|
|
25
27
|
export interface ChartGPTChartWithResults extends ChartGPTChart {
|
|
26
28
|
results: ChartGPTResult[];
|
|
@@ -28,6 +30,9 @@ export interface ChartGPTChartWithResults extends ChartGPTChart {
|
|
|
28
30
|
export interface PatchChartGPTPayload {
|
|
29
31
|
type: string;
|
|
30
32
|
name: string;
|
|
33
|
+
user_prompt?: string;
|
|
34
|
+
chart_id?: string;
|
|
35
|
+
code?: string;
|
|
31
36
|
}
|
|
32
37
|
export interface PatchAndExecuteChartResult {
|
|
33
38
|
chart: ChartGPTChart;
|
|
@@ -220,7 +220,7 @@ export declare namespace SmartRouting {
|
|
|
220
220
|
}
|
|
221
221
|
export type ConditionActions = 'ADD_PROVIDER' | 'ADD_FRAUD_PROVIDER' | 'REFUND' | 'DECLINE' | 'CANCEL';
|
|
222
222
|
export type ProviderType = 'PAYMENT' | 'FRAUD';
|
|
223
|
-
export type AvailableActions = 'END' | 'DECLINE' | 'CAPTURE' | 'CANCEL' | 'REVERT';
|
|
223
|
+
export type AvailableActions = 'END' | 'DECLINE' | 'CAPTURE' | 'CANCEL' | 'REVERT' | 'RETRY';
|
|
224
224
|
export type OutputType = 'SUCCESS' | 'ERROR' | 'WARNING';
|
|
225
225
|
export type StatusTransaction = 'SUCCEEDED' | 'PENDING' | 'PROCEED' | 'ERROR' | 'DECLINED' | 'DECLINE_GROUP';
|
|
226
226
|
export interface TransactionStatuses {
|