@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.
@@ -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
- chart: ChartGPTChart;
29
- execution: ChartGPTExecuteResponse;
30
- chartgpt_id: string;
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>;
@@ -6,7 +6,7 @@ export interface ChartGPTResult {
6
6
  export interface ChartGPTExecuteResponse {
7
7
  status: string;
8
8
  summary: string;
9
- available_types?: string[];
9
+ availableTypes?: string[];
10
10
  results: ChartGPTResult[];
11
11
  sql_query?: string;
12
12
  user_prompt?: 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;
@@ -5,3 +5,4 @@ export * from './api-provider';
5
5
  export * from './store';
6
6
  export * from './types';
7
7
  export * from './constants';
8
+ export * from './websockets';