@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>;
|
package/build/index.d.ts
CHANGED
|
@@ -4007,6 +4007,7 @@ declare namespace StylingSettings {
|
|
|
4007
4007
|
mobile?: 'SEAMLESS' | 'FULL';
|
|
4008
4008
|
};
|
|
4009
4009
|
card?: {
|
|
4010
|
+
enable_ocr?: boolean;
|
|
4010
4011
|
save_on_success?: boolean;
|
|
4011
4012
|
visualization_mode?: VisualizationMode;
|
|
4012
4013
|
};
|
|
@@ -4841,7 +4842,7 @@ interface ChartGPTExecuteResponse {
|
|
|
4841
4842
|
results: ChartGPTResult[];
|
|
4842
4843
|
}
|
|
4843
4844
|
interface ChartGPTChart {
|
|
4844
|
-
|
|
4845
|
+
chart_id: string;
|
|
4845
4846
|
name: string;
|
|
4846
4847
|
type: string;
|
|
4847
4848
|
user_prompt: string;
|
|
@@ -4859,10 +4860,10 @@ interface PatchAndExecuteChartResult {
|
|
|
4859
4860
|
chart: ChartGPTChart;
|
|
4860
4861
|
execution: ChartGPTExecuteResponse;
|
|
4861
4862
|
}
|
|
4862
|
-
declare function useChartExecute(
|
|
4863
|
+
declare function useChartExecute(chart_id: string): UseQueryResult<ChartGPTExecuteResponse, unknown>;
|
|
4863
4864
|
declare function useGetChartsByUser(): UseQueryResult<ChartGPTChart[], unknown>;
|
|
4864
4865
|
declare function useGetChartsByUserWithResults(): UseQueryResult<ChartGPTChartWithResults[], unknown>;
|
|
4865
|
-
declare function usePatchAndExecuteChart(
|
|
4866
|
+
declare function usePatchAndExecuteChart(chart_id: string, patchPayload: PatchChartGPTPayload, enabled?: boolean): UseQueryResult<PatchAndExecuteChartResult, unknown>;
|
|
4866
4867
|
|
|
4867
4868
|
declare function useGetLanguages(): UseQueryResult<Translation.Languages, AxiosError>;
|
|
4868
4869
|
declare function useGetTranslations(): UseQueryResult<Translation.Translations, AxiosError>;
|
|
@@ -4882,7 +4883,7 @@ interface ErrorChartGPTResponse {
|
|
|
4882
4883
|
}[];
|
|
4883
4884
|
}
|
|
4884
4885
|
interface PatchChartGPTChartPayload {
|
|
4885
|
-
|
|
4886
|
+
chart_id: string;
|
|
4886
4887
|
type: string;
|
|
4887
4888
|
name: string;
|
|
4888
4889
|
}
|
|
@@ -4892,7 +4893,7 @@ interface CreateAndExecuteChartPayload {
|
|
|
4892
4893
|
interface CreateAndExecuteChartResult {
|
|
4893
4894
|
chart: ChartGPTChart;
|
|
4894
4895
|
execution: ChartGPTExecuteResponse;
|
|
4895
|
-
|
|
4896
|
+
chart_id: string;
|
|
4896
4897
|
}
|
|
4897
4898
|
declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
|
|
4898
4899
|
declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
|
|
@@ -5377,6 +5378,7 @@ declare class Api extends HttpClient {
|
|
|
5377
5378
|
patchChartGPTChart<T>(chartgpt_id: string, payload: {
|
|
5378
5379
|
type: string;
|
|
5379
5380
|
name: string;
|
|
5381
|
+
user_prompt: string;
|
|
5380
5382
|
}): Promise<AxiosResponse<T, any>>;
|
|
5381
5383
|
executeChartGPTChart<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
|
|
5382
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
|
+
}
|