@yuno-payments/dashboard-api-mfe 0.37.1 → 0.38.2

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.
@@ -1,7 +1,7 @@
1
1
  import { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
2
2
  import { HttpClient } from '../lib/http-client';
3
3
  import { GetPaymentsParams, GetReconciliationMetricParams, FirebaseUserSubscribe, PathNotification, TimeZoneCatalog, GetTransactionDetailsV2Params, MfaUserSubscribe, UserInviteMultiaccountPayload, GetTransactionsParams, PaymentsSettings, GetPayoutDetail, GetPayoutTransactionDetail, PinnedSections, ThemeSettings } from './api.types';
4
- import { Audit, OperationTransaction, Organization, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection, TemplateReporting } from '../types';
4
+ import { Audit, OperationTransaction, Organization, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection, TemplateReporting, GetUserFullResponse } from '../types';
5
5
  import { ConversionRateParams, ConversionRateBody, ConversionRateOverview, ConversionRateOverviewFraud3ds } from '../types/data-report/conversion-rate.types';
6
6
  import { RoutingMonitors } from '../types/routing-monitors';
7
7
  import { ChangePaymentsWebhook } from '../mutations';
@@ -279,9 +279,10 @@ export declare class Api extends HttpClient {
279
279
  updateScheduledReport<T>(reportCode: string, payload: IListScheduledReportsResponse): Promise<AxiosResponse<T>>;
280
280
  deleteScheduledReport<T>(reportCode: string): Promise<AxiosResponse<T>>;
281
281
  getProfile<T>(): Promise<AxiosResponse<T, any>>;
282
+ getUserFull(): Promise<AxiosResponse<GetUserFullResponse, any>>;
282
283
  getImpersonationUsers<T>(): Promise<AxiosResponse<T, any>>;
283
284
  getImpersonationEnabled<T>(): Promise<AxiosResponse<T, any>>;
284
- getUsersToImpersonate(organizationCode: string, accountCodes?: string[], page?: number, pageSize?: number): Promise<AxiosResponse<User.UsersToImpersonateResponse>>;
285
+ getUsersToImpersonate(organizationCode: string, accountCodes?: string[], page?: number, pageSize?: number, searchValue?: string): Promise<AxiosResponse<User.UsersToImpersonateResponse>>;
285
286
  getAccountsForImpersonation(organizationCode: string): Promise<AxiosResponse<{
286
287
  response: Array<{
287
288
  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;
@@ -1,13 +1,14 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { AxiosError } from 'axios';
3
- import { Accounts, User, AI } from '../../types';
3
+ import { Accounts, User, AI, GetUserFullResponse } from '../../types';
4
4
  export declare function useGetProfile(): UseQueryResult<User.UserResponsePayload, unknown>;
5
+ export declare function useGetUserFull(): UseQueryResult<GetUserFullResponse, unknown>;
5
6
  export declare function useGetPermissions(organizationCode: any, accountCode: any): UseQueryResult<Accounts.PermissionsResponse[], unknown>;
6
7
  export declare function useEmailVerification(email: string): UseQueryResult<User.UserResponseEmailVerification | string, unknown>;
7
8
  export declare function useGetLoginMethods(): UseQueryResult<unknown, unknown>;
8
9
  export declare function useGetImpersonationUsers(): UseQueryResult<User.ImpersonationUser[], AxiosError>;
9
10
  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>;
11
+ export declare function useGetUsersToImpersonate(organizationCode: string, accountCodes?: string[], page?: number, pageSize?: number, searchValue?: string): UseQueryResult<User.UsersToImpersonateResponse, AxiosError>;
11
12
  export declare function useCommunications(payload: {
12
13
  start_date: string;
13
14
  end_date: string;
@@ -174,3 +174,8 @@ export declare namespace User {
174
174
  users: UsersToImpersonateUser[];
175
175
  }
176
176
  }
177
+ export interface GetUserFullResponse {
178
+ user: User.UserResponsePayload;
179
+ organizations: Organization.Organization;
180
+ accounts_user: Organization.Account[];
181
+ }
@@ -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';