@yuno-payments/dashboard-api-mfe 0.36.45 → 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/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/index.d.ts +6 -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>;
|
package/build/index.d.ts
CHANGED
|
@@ -4842,7 +4842,7 @@ interface ChartGPTExecuteResponse {
|
|
|
4842
4842
|
results: ChartGPTResult[];
|
|
4843
4843
|
}
|
|
4844
4844
|
interface ChartGPTChart {
|
|
4845
|
-
|
|
4845
|
+
chart_id: string;
|
|
4846
4846
|
name: string;
|
|
4847
4847
|
type: string;
|
|
4848
4848
|
user_prompt: string;
|
|
@@ -4860,10 +4860,10 @@ interface PatchAndExecuteChartResult {
|
|
|
4860
4860
|
chart: ChartGPTChart;
|
|
4861
4861
|
execution: ChartGPTExecuteResponse;
|
|
4862
4862
|
}
|
|
4863
|
-
declare function useChartExecute(
|
|
4863
|
+
declare function useChartExecute(chart_id: string): UseQueryResult<ChartGPTExecuteResponse, unknown>;
|
|
4864
4864
|
declare function useGetChartsByUser(): UseQueryResult<ChartGPTChart[], unknown>;
|
|
4865
4865
|
declare function useGetChartsByUserWithResults(): UseQueryResult<ChartGPTChartWithResults[], unknown>;
|
|
4866
|
-
declare function usePatchAndExecuteChart(
|
|
4866
|
+
declare function usePatchAndExecuteChart(chart_id: string, patchPayload: PatchChartGPTPayload, enabled?: boolean): UseQueryResult<PatchAndExecuteChartResult, unknown>;
|
|
4867
4867
|
|
|
4868
4868
|
declare function useGetLanguages(): UseQueryResult<Translation.Languages, AxiosError>;
|
|
4869
4869
|
declare function useGetTranslations(): UseQueryResult<Translation.Translations, AxiosError>;
|
|
@@ -4883,7 +4883,7 @@ interface ErrorChartGPTResponse {
|
|
|
4883
4883
|
}[];
|
|
4884
4884
|
}
|
|
4885
4885
|
interface PatchChartGPTChartPayload {
|
|
4886
|
-
|
|
4886
|
+
chart_id: string;
|
|
4887
4887
|
type: string;
|
|
4888
4888
|
name: string;
|
|
4889
4889
|
}
|
|
@@ -4893,7 +4893,7 @@ interface CreateAndExecuteChartPayload {
|
|
|
4893
4893
|
interface CreateAndExecuteChartResult {
|
|
4894
4894
|
chart: ChartGPTChart;
|
|
4895
4895
|
execution: ChartGPTExecuteResponse;
|
|
4896
|
-
|
|
4896
|
+
chart_id: string;
|
|
4897
4897
|
}
|
|
4898
4898
|
declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
|
|
4899
4899
|
declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
|
|
@@ -5378,6 +5378,7 @@ declare class Api extends HttpClient {
|
|
|
5378
5378
|
patchChartGPTChart<T>(chartgpt_id: string, payload: {
|
|
5379
5379
|
type: string;
|
|
5380
5380
|
name: string;
|
|
5381
|
+
user_prompt: string;
|
|
5381
5382
|
}): Promise<AxiosResponse<T, any>>;
|
|
5382
5383
|
executeChartGPTChart<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
|
|
5383
5384
|
getChartsByUser<T>(): Promise<AxiosResponse<T, any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuno-payments/dashboard-api-mfe",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.46",
|
|
4
4
|
"types": "build/index.d.ts",
|
|
5
5
|
"main": "build/cjs/index.js",
|
|
6
6
|
"module": "build/esm/index.js",
|
|
@@ -105,4 +105,4 @@
|
|
|
105
105
|
"ts-loader": "^9.4.4",
|
|
106
106
|
"uuid": "^11.1.0"
|
|
107
107
|
}
|
|
108
|
-
}
|
|
108
|
+
}
|