@yuno-payments/dashboard-api-mfe 0.36.47 → 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.
@@ -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>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
488
- getChartById<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
489
- patchChartGPTChart<T>(chartgpt_id: string, payload: {
490
- type: string;
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>>;
@@ -0,0 +1,7 @@
1
+ import { UseMutationResult } from '@tanstack/react-query';
2
+ export declare function useRetryWebhooks(): UseMutationResult<any, unknown, {
3
+ codes: string[];
4
+ }>;
5
+ export declare function useExportApiLogs(): UseMutationResult<any, unknown, {
6
+ payload: any;
7
+ }>;
@@ -1 +1,2 @@
1
1
  export * from './audit.mutation';
2
+ export * from './audit-api.mutation';
@@ -19,6 +19,7 @@ export interface PatchChartGPTChartPayload {
19
19
  chart_id: string;
20
20
  type: string;
21
21
  name: string;
22
+ user_prompt: string;
22
23
  }
23
24
  export interface CreateAndExecuteChartPayload {
24
25
  user_prompt: string;
@@ -26,7 +27,7 @@ export interface CreateAndExecuteChartPayload {
26
27
  export interface CreateAndExecuteChartResult {
27
28
  chart: ChartGPTChart;
28
29
  execution: ChartGPTExecuteResponse;
29
- chart_id: string;
30
+ chartgpt_id: string;
30
31
  }
31
32
  export declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
32
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 {