@yuno-payments/dashboard-api-mfe 0.34.30 → 0.35.0-beta.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.
@@ -577,6 +577,16 @@ export declare class Api extends HttpClient {
577
577
  getInsightsConversionRateOverview(body: ConversionRateBody, params: ConversionRateParams): Promise<AxiosResponse<ConversionRateOverview>>;
578
578
  getInsightsConversionRateOverviewFraud3ds(body: ConversionRateBody, params: ConversionRateParams): Promise<AxiosResponse<ConversionRateOverviewFraud3ds>>;
579
579
  getConversionRateChargebacksByCardBrand(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
580
- get3DSExemptions(): Promise<AxiosResponse<string[]>>;
580
+ get3DSExemptions(): Promise<AxiosResponse<SmartRouting.ThreeDSExemptionsResponse>>;
581
+ createChartGPTChart<T>(payload: {
582
+ user_prompt: string;
583
+ }): Promise<AxiosResponse<T, any>>;
584
+ deleteChartGPTChart<T>(chartGptId: string): Promise<AxiosResponse<T, any>>;
585
+ patchChartGPTChart<T>(chartGptId: string, payload: {
586
+ type: string;
587
+ name: string;
588
+ }): Promise<AxiosResponse<T, any>>;
589
+ getChartsByUser<T>(): Promise<AxiosResponse<T, any>>;
590
+ executeChartGPTChart<T>(chartGptId: string): Promise<AxiosResponse<T, any>>;
581
591
  }
582
592
  export {};
@@ -1 +1 @@
1
- export declare const worker: import("msw/browser").SetupWorker;
1
+ export declare const worker: any;
@@ -1 +1 @@
1
- export declare const handlers: import("msw/lib/core/handlers/HttpHandler").HttpHandler[];
1
+ export declare const handlers: any[];
@@ -4,6 +4,6 @@ export declare enum OverviewMetricType {
4
4
  STATUS = "status",
5
5
  SUBSCRIPTIONS = "subscriptions"
6
6
  }
7
- export declare const oldOverviewMetricsHandler: import("msw/lib/core/handlers/HttpHandler").HttpHandler;
8
- export declare const newOverviewMetricsHandlers: import("msw/lib/core/handlers/HttpHandler").HttpHandler[];
9
- export declare const overviewMetricsHandlers: import("msw/lib/core/handlers/HttpHandler").HttpHandler[];
7
+ export declare const oldOverviewMetricsHandler: any;
8
+ export declare const newOverviewMetricsHandlers: any[];
9
+ export declare const overviewMetricsHandlers: any[];
@@ -0,0 +1,24 @@
1
+ import { UseMutationResult } from '@tanstack/react-query';
2
+ import { AxiosError } from 'axios';
3
+ export interface CreateChartGPTChartPayload {
4
+ user_prompt: string;
5
+ }
6
+ export interface CreateChartGPTChartResponse {
7
+ [key: string]: any;
8
+ }
9
+ export interface ErrorChartGPTResponse {
10
+ errors: {
11
+ message: string;
12
+ code: string;
13
+ params?: string[];
14
+ param?: string;
15
+ }[];
16
+ }
17
+ export interface PatchChartGPTChartPayload {
18
+ chartgpt_id: string;
19
+ type: string;
20
+ name: string;
21
+ }
22
+ export declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
23
+ export declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
24
+ export declare function usePatchChartName(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, PatchChartGPTChartPayload>;
@@ -0,0 +1 @@
1
+ export * from './chartgpt.mutation';
@@ -25,3 +25,4 @@ export * from './reconciliations';
25
25
  export * from './insights';
26
26
  export * from './saml-config';
27
27
  export * from './ai';
28
+ export * from './chartgpt';
@@ -0,0 +1,3 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ export declare function useGetChartsByUser(): UseQueryResult<any, unknown>;
3
+ export declare function useChartExecute(chartgptId: string): UseQueryResult<any, unknown>;
@@ -0,0 +1 @@
1
+ export * from './chartgpt.query';
@@ -1,5 +1,6 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { SmartRouting } from '../../types';
3
+ import { AxiosResponse } from 'axios';
3
4
  export interface ErrorProp {
4
5
  name?: string;
5
6
  }
@@ -25,4 +26,4 @@ export declare function useGetSmartRoutingSearchConditionValues({ text, conditio
25
26
  conditionType: string;
26
27
  }): UseQueryResult<SmartRouting.ConditionTypeValues & ErrorProp, unknown>;
27
28
  export declare function useProviderConversionRatesData(): UseQueryResult<SmartRouting.SRConversionRates[] & ErrorProp, unknown>;
28
- export declare function use3DSExemptions(): UseQueryResult<SmartRouting.ThreeDSExemptionsResponse>;
29
+ export declare function use3DSExemptions(): UseQueryResult<AxiosResponse<SmartRouting.ThreeDSExemptionsResponse>>;