@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.
- package/build/cjs/index.js +7 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +3 -2
- 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 +3 -2
- package/build/cjs/types/types/user/user.d.ts +5 -0
- 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 +3 -2
- 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 +3 -2
- package/build/esm/types/types/user/user.d.ts +5 -0
- 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 +34 -8
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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>;
|
|
@@ -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;
|
|
@@ -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 {};
|