@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.
- package/build/cjs/index.js +212 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +3 -3
- package/build/cjs/types/msw/browser.d.ts +1 -1
- package/build/cjs/types/msw/handlers.d.ts +1 -1
- package/build/cjs/types/msw/mocks/insights/overview/overview-metrics.mock.d.ts +3 -3
- package/build/cjs/types/queries/chartgpt/chartgpt.query.d.ts +20 -2
- package/build/esm/index.js +212 -6
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +3 -3
- package/build/esm/types/msw/browser.d.ts +1 -1
- package/build/esm/types/msw/handlers.d.ts +1 -1
- package/build/esm/types/msw/mocks/insights/overview/overview-metrics.mock.d.ts +3 -3
- package/build/esm/types/queries/chartgpt/chartgpt.query.d.ts +20 -2
- package/build/index.d.ts +10 -9
- package/package.json +1 -1
|
@@ -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>(
|
|
585
|
-
patchChartGPTChart<T>(
|
|
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:
|
|
1
|
+
export declare const worker: import("msw/browser").SetupWorker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const handlers:
|
|
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:
|
|
8
|
-
export declare const newOverviewMetricsHandlers:
|
|
9
|
-
export declare const overviewMetricsHandlers:
|
|
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
|
|
3
|
-
|
|
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>;
|