@yuno-payments/dashboard-api-mfe 0.35.0-beta.9 → 0.35.2-beta.1
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 +3 -1
- package/build/cjs/types/mutations/chartgpt/chartgpt.mutation.d.ts +10 -0
- package/build/cjs/types/queries/chartgpt/chartgpt.query.d.ts +13 -0
- package/build/cjs/types/queries/index.d.ts +1 -0
- package/build/cjs/types/queries/organizations/organizations.query.d.ts +2 -1
- package/build/cjs/types/types/organization/organization.d.ts +1 -2
- package/build/esm/index.js +7 -7
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +3 -1
- package/build/esm/types/mutations/chartgpt/chartgpt.mutation.d.ts +10 -0
- package/build/esm/types/queries/chartgpt/chartgpt.query.d.ts +13 -0
- package/build/esm/types/queries/index.d.ts +1 -0
- package/build/esm/types/queries/organizations/organizations.query.d.ts +2 -1
- package/build/esm/types/types/organization/organization.d.ts +1 -2
- package/build/index.d.ts +111 -65
- package/package.json +2 -2
|
@@ -94,7 +94,8 @@ export declare class Api extends HttpClient {
|
|
|
94
94
|
costs: Cost[];
|
|
95
95
|
}): Promise<AxiosResponse<T>>;
|
|
96
96
|
updateOrganizationStatus<T>(): Promise<AxiosResponse<T>>;
|
|
97
|
-
getIntegrationParams<T>({ integration_code, }: {
|
|
97
|
+
getIntegrationParams<T>({ accountCode, integration_code, }: {
|
|
98
|
+
accountCode: any;
|
|
98
99
|
integration_code: any;
|
|
99
100
|
}): Promise<AxiosResponse<T, any>>;
|
|
100
101
|
getConnectionsByPaymentMethod<T>(accountCode: string, paymentMethod: string): Promise<AxiosResponse<T>>;
|
|
@@ -582,6 +583,7 @@ export declare class Api extends HttpClient {
|
|
|
582
583
|
user_prompt: string;
|
|
583
584
|
}): Promise<AxiosResponse<T, any>>;
|
|
584
585
|
deleteChartGPTChart<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
|
|
586
|
+
getChartById<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
|
|
585
587
|
patchChartGPTChart<T>(chartgpt_id: string, payload: {
|
|
586
588
|
type: string;
|
|
587
589
|
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,15 @@ export interface PatchChartGPTChartPayload {
|
|
|
19
20
|
type: string;
|
|
20
21
|
name: string;
|
|
21
22
|
}
|
|
23
|
+
export interface CreateAndExecuteChartPayload {
|
|
24
|
+
user_prompt: string;
|
|
25
|
+
}
|
|
26
|
+
export interface CreateAndExecuteChartResult {
|
|
27
|
+
chart: ChartGPTChart;
|
|
28
|
+
execution: ChartGPTExecuteResponse;
|
|
29
|
+
chartgpt_id: string;
|
|
30
|
+
}
|
|
22
31
|
export declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
|
|
23
32
|
export declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
|
|
24
33
|
export declare function usePatchChartName(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, PatchChartGPTChartPayload>;
|
|
34
|
+
export declare function useCreateAndExecuteChart(): UseMutationResult<CreateAndExecuteChartResult, AxiosError<ErrorChartGPTResponse>, CreateAndExecuteChartPayload>;
|
|
@@ -4,18 +4,31 @@ export interface ChartGPTResult {
|
|
|
4
4
|
value: string;
|
|
5
5
|
}
|
|
6
6
|
export interface ChartGPTExecuteResponse {
|
|
7
|
+
status: string;
|
|
8
|
+
summary: string;
|
|
9
|
+
available_types?: string[];
|
|
7
10
|
results: ChartGPTResult[];
|
|
8
11
|
}
|
|
9
12
|
export interface ChartGPTChart {
|
|
10
13
|
chartgpt_id: string;
|
|
11
14
|
name: string;
|
|
12
15
|
type: string;
|
|
16
|
+
user_prompt: string;
|
|
13
17
|
summary: string;
|
|
14
18
|
status: string;
|
|
15
19
|
}
|
|
16
20
|
export interface ChartGPTChartWithResults extends ChartGPTChart {
|
|
17
21
|
results: ChartGPTResult[];
|
|
18
22
|
}
|
|
23
|
+
export interface PatchChartGPTPayload {
|
|
24
|
+
type: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}
|
|
27
|
+
export interface PatchAndExecuteChartResult {
|
|
28
|
+
chart: ChartGPTChart;
|
|
29
|
+
execution: ChartGPTExecuteResponse;
|
|
30
|
+
}
|
|
19
31
|
export declare function useChartExecute(chartgpt_id: string): UseQueryResult<ChartGPTExecuteResponse, unknown>;
|
|
20
32
|
export declare function useGetChartsByUser(): UseQueryResult<ChartGPTChart[], unknown>;
|
|
21
33
|
export declare function useGetChartsByUserWithResults(): UseQueryResult<ChartGPTChartWithResults[], unknown>;
|
|
34
|
+
export declare function usePatchAndExecuteChart(chartgpt_id: string, patchPayload: PatchChartGPTPayload, enabled?: boolean): UseQueryResult<PatchAndExecuteChartResult, unknown>;
|
|
@@ -8,9 +8,10 @@ export declare function useGetAllOrganizations(): UseQueryResult<Organization.Or
|
|
|
8
8
|
export declare function useGetProviderParams(params: {
|
|
9
9
|
id: string;
|
|
10
10
|
}): UseQueryResult<Organization.ProviderParams, CustomAxiosResponse<null>>;
|
|
11
|
-
export declare function useGetIntegrationParams({ integration_code, enabled, }: {
|
|
11
|
+
export declare function useGetIntegrationParams({ integration_code, enabled, accountCode, }: {
|
|
12
12
|
integration_code: string;
|
|
13
13
|
enabled: boolean;
|
|
14
|
+
accountCode?: string;
|
|
14
15
|
}): UseQueryResult<Organization.IntegrationParams, {
|
|
15
16
|
code: string;
|
|
16
17
|
}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Request } from 'express';
|
|
2
|
-
import { Country } from '../country';
|
|
3
2
|
import { Cost } from '../connection/costs';
|
|
4
3
|
import { Connection } from '../connection';
|
|
5
4
|
export declare namespace Organization {
|
|
@@ -47,7 +46,7 @@ export declare namespace Organization {
|
|
|
47
46
|
email: string;
|
|
48
47
|
legal_name: string;
|
|
49
48
|
phone: string;
|
|
50
|
-
country_code:
|
|
49
|
+
country_code: string;
|
|
51
50
|
updated_at: string;
|
|
52
51
|
account_code_live: string;
|
|
53
52
|
account_code_testing: string;
|