@yuno-payments/dashboard-api-mfe 0.36.43 → 0.36.46
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 +2 -2
- 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 +2 -2
- package/build/cjs/types/queries/chartgpt/chartgpt.query.d.ts +3 -3
- package/build/cjs/types/types/checkout/styling/styling.d.ts +1 -0
- package/build/esm/index.js +2 -2
- 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 +2 -2
- package/build/esm/types/queries/chartgpt/chartgpt.query.d.ts +3 -3
- package/build/esm/types/types/checkout/styling/styling.d.ts +1 -0
- package/build/index.d.ts +7 -5
- package/package.json +2 -2
|
@@ -489,6 +489,7 @@ export declare class Api extends HttpClient {
|
|
|
489
489
|
patchChartGPTChart<T>(chartgpt_id: string, payload: {
|
|
490
490
|
type: string;
|
|
491
491
|
name: string;
|
|
492
|
+
user_prompt: string;
|
|
492
493
|
}): Promise<AxiosResponse<T, any>>;
|
|
493
494
|
executeChartGPTChart<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
|
|
494
495
|
getChartsByUser<T>(): Promise<AxiosResponse<T, any>>;
|
|
@@ -16,7 +16,7 @@ export interface ErrorChartGPTResponse {
|
|
|
16
16
|
}[];
|
|
17
17
|
}
|
|
18
18
|
export interface PatchChartGPTChartPayload {
|
|
19
|
-
|
|
19
|
+
chart_id: string;
|
|
20
20
|
type: string;
|
|
21
21
|
name: string;
|
|
22
22
|
}
|
|
@@ -26,7 +26,7 @@ export interface CreateAndExecuteChartPayload {
|
|
|
26
26
|
export interface CreateAndExecuteChartResult {
|
|
27
27
|
chart: ChartGPTChart;
|
|
28
28
|
execution: ChartGPTExecuteResponse;
|
|
29
|
-
|
|
29
|
+
chart_id: string;
|
|
30
30
|
}
|
|
31
31
|
export declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
|
|
32
32
|
export declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
|
|
@@ -10,7 +10,7 @@ export interface ChartGPTExecuteResponse {
|
|
|
10
10
|
results: ChartGPTResult[];
|
|
11
11
|
}
|
|
12
12
|
export interface ChartGPTChart {
|
|
13
|
-
|
|
13
|
+
chart_id: string;
|
|
14
14
|
name: string;
|
|
15
15
|
type: string;
|
|
16
16
|
user_prompt: string;
|
|
@@ -28,7 +28,7 @@ export interface PatchAndExecuteChartResult {
|
|
|
28
28
|
chart: ChartGPTChart;
|
|
29
29
|
execution: ChartGPTExecuteResponse;
|
|
30
30
|
}
|
|
31
|
-
export declare function useChartExecute(
|
|
31
|
+
export declare function useChartExecute(chart_id: string): UseQueryResult<ChartGPTExecuteResponse, unknown>;
|
|
32
32
|
export declare function useGetChartsByUser(): UseQueryResult<ChartGPTChart[], unknown>;
|
|
33
33
|
export declare function useGetChartsByUserWithResults(): UseQueryResult<ChartGPTChartWithResults[], unknown>;
|
|
34
|
-
export declare function usePatchAndExecuteChart(
|
|
34
|
+
export declare function usePatchAndExecuteChart(chart_id: string, patchPayload: PatchChartGPTPayload, enabled?: boolean): UseQueryResult<PatchAndExecuteChartResult, unknown>;
|