@yuno-payments/dashboard-api-mfe 0.35.0-beta.11 → 0.35.0-beta.13
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 +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +1 -0
- package/build/cjs/types/queries/chartgpt/chartgpt.query.d.ts +11 -0
- package/build/esm/index.js +7 -7
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +1 -0
- package/build/esm/types/queries/chartgpt/chartgpt.query.d.ts +11 -0
- package/build/index.d.ts +14 -2
- package/package.json +1 -1
|
@@ -582,6 +582,7 @@ export declare class Api extends HttpClient {
|
|
|
582
582
|
user_prompt: string;
|
|
583
583
|
}): Promise<AxiosResponse<T, any>>;
|
|
584
584
|
deleteChartGPTChart<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
|
|
585
|
+
getChartById<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
|
|
585
586
|
patchChartGPTChart<T>(chartgpt_id: string, payload: {
|
|
586
587
|
type: string;
|
|
587
588
|
name: string;
|
|
@@ -4,18 +4,29 @@ export interface ChartGPTResult {
|
|
|
4
4
|
value: string;
|
|
5
5
|
}
|
|
6
6
|
export interface ChartGPTExecuteResponse {
|
|
7
|
+
available_types?: string[];
|
|
7
8
|
results: ChartGPTResult[];
|
|
8
9
|
}
|
|
9
10
|
export interface ChartGPTChart {
|
|
10
11
|
chartgpt_id: string;
|
|
11
12
|
name: string;
|
|
12
13
|
type: string;
|
|
14
|
+
user_prompt: string;
|
|
13
15
|
summary: string;
|
|
14
16
|
status: string;
|
|
15
17
|
}
|
|
16
18
|
export interface ChartGPTChartWithResults extends ChartGPTChart {
|
|
17
19
|
results: ChartGPTResult[];
|
|
18
20
|
}
|
|
21
|
+
export interface PatchChartGPTPayload {
|
|
22
|
+
type: string;
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
export interface PatchAndExecuteChartResult {
|
|
26
|
+
chart: ChartGPTChart;
|
|
27
|
+
execution: ChartGPTExecuteResponse;
|
|
28
|
+
}
|
|
19
29
|
export declare function useChartExecute(chartgpt_id: string): UseQueryResult<ChartGPTExecuteResponse, unknown>;
|
|
20
30
|
export declare function useGetChartsByUser(): UseQueryResult<ChartGPTChart[], unknown>;
|
|
21
31
|
export declare function useGetChartsByUserWithResults(): UseQueryResult<ChartGPTChartWithResults[], unknown>;
|
|
32
|
+
export declare function usePatchAndExecuteChart(chartgpt_id: string, patchPayload: PatchChartGPTPayload, enabled?: boolean): UseQueryResult<PatchAndExecuteChartResult, unknown>;
|