@yuno-payments/dashboard-api-mfe 0.37.1 → 0.38.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 +7 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +1 -1
- package/build/cjs/types/common/config.d.ts +5 -0
- package/build/cjs/types/mutations/chartgpt/chartgpt.mutation.d.ts +5 -3
- package/build/cjs/types/queries/chartgpt/chartgpt.query.d.ts +1 -1
- package/build/cjs/types/queries/users/users.query.d.ts +1 -1
- package/build/cjs/types/websockets/index.d.ts +1 -0
- package/build/cjs/types/websockets/use-chart-assistant-socket.d.ts +17 -0
- package/build/cjs/types/websockets/use-chart-assistant-socket.test.d.ts +1 -0
- package/build/cjs/types/yuno-dashboard-api-mfe.d.ts +1 -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 -1
- package/build/esm/types/common/config.d.ts +5 -0
- package/build/esm/types/mutations/chartgpt/chartgpt.mutation.d.ts +5 -3
- package/build/esm/types/queries/chartgpt/chartgpt.query.d.ts +1 -1
- package/build/esm/types/queries/users/users.query.d.ts +1 -1
- package/build/esm/types/websockets/index.d.ts +1 -0
- package/build/esm/types/websockets/use-chart-assistant-socket.d.ts +17 -0
- package/build/esm/types/websockets/use-chart-assistant-socket.test.d.ts +1 -0
- package/build/esm/types/yuno-dashboard-api-mfe.d.ts +1 -0
- package/build/index.d.ts +27 -8
- package/package.json +1 -1
|
@@ -281,7 +281,7 @@ export declare class Api extends HttpClient {
|
|
|
281
281
|
getProfile<T>(): Promise<AxiosResponse<T, any>>;
|
|
282
282
|
getImpersonationUsers<T>(): Promise<AxiosResponse<T, any>>;
|
|
283
283
|
getImpersonationEnabled<T>(): Promise<AxiosResponse<T, any>>;
|
|
284
|
-
getUsersToImpersonate(organizationCode: string, accountCodes?: string[], page?: number, pageSize?: number): Promise<AxiosResponse<User.UsersToImpersonateResponse>>;
|
|
284
|
+
getUsersToImpersonate(organizationCode: string, accountCodes?: string[], page?: number, pageSize?: number, searchValue?: string): Promise<AxiosResponse<User.UsersToImpersonateResponse>>;
|
|
285
285
|
getAccountsForImpersonation(organizationCode: string): Promise<AxiosResponse<{
|
|
286
286
|
response: Array<{
|
|
287
287
|
name: string;
|
|
@@ -5,4 +5,9 @@ export declare const environment: {
|
|
|
5
5
|
BFF_URL_STG: string | undefined;
|
|
6
6
|
BFF_URL_DEV: string | undefined;
|
|
7
7
|
BFF_URL_LOCAL: string | undefined;
|
|
8
|
+
WS_URL_LOCAL: string | undefined;
|
|
9
|
+
WS_URL_PROD: string | undefined;
|
|
10
|
+
WS_URL_SBX: string | undefined;
|
|
11
|
+
WS_URL_STG: string | undefined;
|
|
12
|
+
WS_URL_DEV: string | undefined;
|
|
8
13
|
};
|
|
@@ -25,9 +25,11 @@ export interface CreateAndExecuteChartPayload {
|
|
|
25
25
|
user_prompt: string;
|
|
26
26
|
}
|
|
27
27
|
export interface CreateAndExecuteChartResult {
|
|
28
|
-
|
|
29
|
-
execution
|
|
30
|
-
|
|
28
|
+
chart_id?: string;
|
|
29
|
+
execution?: ChartGPTExecuteResponse;
|
|
30
|
+
chart?: ChartGPTChart;
|
|
31
|
+
status?: string;
|
|
32
|
+
type?: string;
|
|
31
33
|
}
|
|
32
34
|
export declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
|
|
33
35
|
export declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
|
|
@@ -7,7 +7,7 @@ export declare function useEmailVerification(email: string): UseQueryResult<User
|
|
|
7
7
|
export declare function useGetLoginMethods(): UseQueryResult<unknown, unknown>;
|
|
8
8
|
export declare function useGetImpersonationUsers(): UseQueryResult<User.ImpersonationUser[], AxiosError>;
|
|
9
9
|
export declare function useGetImpersonationEnabled(): UseQueryResult<User.ImpersonationEnabledResponse, AxiosError>;
|
|
10
|
-
export declare function useGetUsersToImpersonate(organizationCode: string, accountCodes?: string[], page?: number, pageSize?: number): UseQueryResult<User.UsersToImpersonateResponse, AxiosError>;
|
|
10
|
+
export declare function useGetUsersToImpersonate(organizationCode: string, accountCodes?: string[], page?: number, pageSize?: number, searchValue?: string): UseQueryResult<User.UsersToImpersonateResponse, AxiosError>;
|
|
11
11
|
export declare function useCommunications(payload: {
|
|
12
12
|
start_date: string;
|
|
13
13
|
end_date: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-chart-assistant-socket';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface WebSocketMessage {
|
|
2
|
+
type: string;
|
|
3
|
+
chart_id?: string;
|
|
4
|
+
token?: string;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export declare const useChartAssistantSocket: () => {
|
|
8
|
+
subscribe: (chart_id: string) => void;
|
|
9
|
+
unsubscribe: (chart_id: string) => void;
|
|
10
|
+
disconnect: () => void;
|
|
11
|
+
connect: () => void;
|
|
12
|
+
clearChartData: () => void;
|
|
13
|
+
isConnected: boolean;
|
|
14
|
+
chartData: any;
|
|
15
|
+
connectionError: string | null;
|
|
16
|
+
};
|
|
17
|
+
export default useChartAssistantSocket;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|