@yuno-payments/dashboard-api-mfe 0.35.0-beta.11 → 0.35.0-beta.14
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/mutations/chartgpt/chartgpt.mutation.d.ts +11 -0
- package/build/cjs/types/queries/chartgpt/chartgpt.query.d.ts +2 -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/mutations/chartgpt/chartgpt.mutation.d.ts +11 -0
- package/build/esm/types/queries/chartgpt/chartgpt.query.d.ts +2 -0
- package/build/index.d.ts +62 -49
- 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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
|
+
import { ChartGPTChart, ChartGPTExecuteResponse } from '../../queries';
|
|
3
4
|
export interface CreateChartGPTChartPayload {
|
|
4
5
|
user_prompt: string;
|
|
5
6
|
}
|
|
@@ -19,6 +20,16 @@ export interface PatchChartGPTChartPayload {
|
|
|
19
20
|
type: string;
|
|
20
21
|
name: string;
|
|
21
22
|
}
|
|
23
|
+
export interface CreateAndExecuteChartPayload {
|
|
24
|
+
type: string;
|
|
25
|
+
name: string;
|
|
26
|
+
user_prompt: string;
|
|
27
|
+
}
|
|
28
|
+
export interface CreateAndExecuteChartResult {
|
|
29
|
+
chart: ChartGPTChart;
|
|
30
|
+
execution: ChartGPTExecuteResponse;
|
|
31
|
+
}
|
|
22
32
|
export declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
|
|
23
33
|
export declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
|
|
24
34
|
export declare function usePatchChartName(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, PatchChartGPTChartPayload>;
|
|
35
|
+
export declare function useCreateAndExecuteChart(): UseMutationResult<CreateAndExecuteChartResult, AxiosError<ErrorChartGPTResponse>, CreateAndExecuteChartPayload>;
|
|
@@ -4,12 +4,14 @@ 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
|
}
|