@yuno-payments/dashboard-api-mfe 0.34.34-beta.1 → 0.35.0-beta.10

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.
@@ -581,12 +581,12 @@ export declare class Api extends HttpClient {
581
581
  createChartGPTChart<T>(payload: {
582
582
  user_prompt: string;
583
583
  }): Promise<AxiosResponse<T, any>>;
584
- deleteChartGPTChart<T>(chartGptId: string): Promise<AxiosResponse<T, any>>;
585
- patchChartGPTChart<T>(chartGptId: string, payload: {
584
+ deleteChartGPTChart<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
585
+ patchChartGPTChart<T>(chartgpt_id: string, payload: {
586
586
  type: string;
587
587
  name: string;
588
588
  }): Promise<AxiosResponse<T, any>>;
589
+ executeChartGPTChart<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
589
590
  getChartsByUser<T>(): Promise<AxiosResponse<T, any>>;
590
- executeChartGPTChart<T>(chartGptId: string): Promise<AxiosResponse<T, any>>;
591
591
  }
592
592
  export {};
@@ -1 +1 @@
1
- export declare const worker: any;
1
+ export declare const worker: import("msw/browser").SetupWorker;
@@ -1 +1 @@
1
- export declare const handlers: any[];
1
+ export declare const handlers: import("msw/lib/core/handlers/HttpHandler").HttpHandler[];
@@ -4,6 +4,6 @@ export declare enum OverviewMetricType {
4
4
  STATUS = "status",
5
5
  SUBSCRIPTIONS = "subscriptions"
6
6
  }
7
- export declare const oldOverviewMetricsHandler: any;
8
- export declare const newOverviewMetricsHandlers: any[];
9
- export declare const overviewMetricsHandlers: any[];
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[];
@@ -1,3 +1,21 @@
1
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>;
2
+ export interface ChartGPTResult {
3
+ key: string;
4
+ value: string;
5
+ }
6
+ export interface ChartGPTExecuteResponse {
7
+ results: ChartGPTResult[];
8
+ }
9
+ export interface ChartGPTChart {
10
+ chartgpt_id: string;
11
+ name: string;
12
+ type: string;
13
+ summary: string;
14
+ status: string;
15
+ }
16
+ export interface ChartGPTChartWithResults extends ChartGPTChart {
17
+ results: ChartGPTResult[];
18
+ }
19
+ export declare function useChartExecute(chartgpt_id: string): UseQueryResult<ChartGPTExecuteResponse, unknown>;
20
+ export declare function useGetChartsByUser(): UseQueryResult<ChartGPTChart[], unknown>;
21
+ export declare function useGetChartsByUserWithResults(): UseQueryResult<ChartGPTChartWithResults[], unknown>;