@yuno-payments/dashboard-api-mfe 0.36.27 → 0.36.31
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 +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +15 -1
- package/build/cjs/types/queries/users/users.query.d.ts +15 -1
- package/build/cjs/types/types/ai/ai.d.ts +50 -0
- package/build/cjs/types/types/user/user.d.ts +10 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +15 -1
- package/build/esm/types/queries/users/users.query.d.ts +15 -1
- package/build/esm/types/types/ai/ai.d.ts +50 -0
- package/build/esm/types/types/user/user.d.ts +10 -0
- package/build/index.d.ts +90 -2
- package/package.json +1 -1
|
@@ -243,6 +243,7 @@ export declare class Api extends HttpClient {
|
|
|
243
243
|
getProfile<T>(): Promise<AxiosResponse<T, any>>;
|
|
244
244
|
getImpersonationUsers<T>(): Promise<AxiosResponse<T, any>>;
|
|
245
245
|
getImpersonationEnabled<T>(): Promise<AxiosResponse<T, any>>;
|
|
246
|
+
getUsersToImpersonate<T>(organizationCode: string): Promise<AxiosResponse<T, any>>;
|
|
246
247
|
updateProfile<T>(payload: User.UserRequestPayload): Promise<AxiosResponse<T>>;
|
|
247
248
|
inviteUsersMassive<T>(data: UserInviteMultiaccountPayload, organizationCode: string): Promise<AxiosResponse<T>>;
|
|
248
249
|
unInviteUsersV2<T>({ userCode, organizationCode, }: {
|
|
@@ -474,6 +475,19 @@ export declare class Api extends HttpClient {
|
|
|
474
475
|
executeChartGPTChart<T>(chartgpt_id: string): Promise<AxiosResponse<T, any>>;
|
|
475
476
|
getChartsByUser<T>(): Promise<AxiosResponse<T, any>>;
|
|
476
477
|
getLanguages<T>(): Promise<AxiosResponse<T, any>>;
|
|
477
|
-
getTranslations<T>(): Promise<AxiosResponse<T, any>>;
|
|
478
|
+
getTranslations<T>(lang: string): Promise<AxiosResponse<T, any>>;
|
|
479
|
+
getCommunications<T>(payload: {
|
|
480
|
+
start_date: string;
|
|
481
|
+
end_date: string;
|
|
482
|
+
account_codes: string[];
|
|
483
|
+
country: string[];
|
|
484
|
+
status: string[];
|
|
485
|
+
focus: string[];
|
|
486
|
+
skip: number;
|
|
487
|
+
limit: number;
|
|
488
|
+
search_value: string;
|
|
489
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
490
|
+
getCommunicationsFilters<T>(): Promise<AxiosResponse<T, any>>;
|
|
491
|
+
getCommunicationDetails<T>(communicationId: string, accountCode: string): Promise<AxiosResponse<T, any>>;
|
|
478
492
|
}
|
|
479
493
|
export {};
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
|
-
import { Accounts, User } from '../../types';
|
|
3
|
+
import { Accounts, User, AI } from '../../types';
|
|
4
4
|
export declare function useGetProfile(): UseQueryResult<User.UserResponsePayload, unknown>;
|
|
5
5
|
export declare function useGetPermissions(organizationCode: any, accountCode: any): UseQueryResult<Accounts.PermissionsResponse[], unknown>;
|
|
6
6
|
export declare function useEmailVerification(email: string): UseQueryResult<User.UserResponseEmailVerification | string, unknown>;
|
|
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): UseQueryResult<User.UsersToImpersonateUser[], AxiosError>;
|
|
11
|
+
export declare function useCommunications(payload: {
|
|
12
|
+
start_date: string;
|
|
13
|
+
end_date: string;
|
|
14
|
+
account_codes: string[];
|
|
15
|
+
country: string[];
|
|
16
|
+
status: string[];
|
|
17
|
+
focus: string[];
|
|
18
|
+
skip: number;
|
|
19
|
+
limit: number;
|
|
20
|
+
search_value: string;
|
|
21
|
+
}): UseQueryResult<AI.CommunicationsListResponse, AxiosError>;
|
|
22
|
+
export declare function useCommunicationsFilters(): UseQueryResult<AI.CommunicationsFiltersResponse, AxiosError>;
|
|
23
|
+
export declare function useCommunicationDetails(communicationId: string, accountCode: string): UseQueryResult<AI.CommunicationDetailsResponse, AxiosError>;
|
|
@@ -23,4 +23,54 @@ export declare namespace AI {
|
|
|
23
23
|
REFUSED = "REFUSED",
|
|
24
24
|
FRONT_FAILED = "FRONT_FAILED"
|
|
25
25
|
}
|
|
26
|
+
type CommunicationItem = {
|
|
27
|
+
communication_id: string;
|
|
28
|
+
order_id: string;
|
|
29
|
+
payment_id: string;
|
|
30
|
+
status: string;
|
|
31
|
+
destination_phone: string | null;
|
|
32
|
+
duration: number;
|
|
33
|
+
country: string;
|
|
34
|
+
channel: string;
|
|
35
|
+
messages: number;
|
|
36
|
+
focus: string | null;
|
|
37
|
+
created_at: string;
|
|
38
|
+
};
|
|
39
|
+
type CommunicationsListResponse = {
|
|
40
|
+
total: number;
|
|
41
|
+
skip: number;
|
|
42
|
+
limit: number;
|
|
43
|
+
data: CommunicationItem[];
|
|
44
|
+
};
|
|
45
|
+
type CommunicationsFiltersResponse = {
|
|
46
|
+
countries: string[];
|
|
47
|
+
status: string[];
|
|
48
|
+
focus: string[];
|
|
49
|
+
};
|
|
50
|
+
type TranscriptionMessage = {
|
|
51
|
+
id: string;
|
|
52
|
+
role: string;
|
|
53
|
+
content: string | null;
|
|
54
|
+
created_at: string;
|
|
55
|
+
provider_status: string;
|
|
56
|
+
status: string;
|
|
57
|
+
content_type: string | null;
|
|
58
|
+
media_content_type: string | null;
|
|
59
|
+
media_url: string | null;
|
|
60
|
+
};
|
|
61
|
+
type CommunicationDetailsResponse = {
|
|
62
|
+
communication_id: string;
|
|
63
|
+
order_id: string;
|
|
64
|
+
payment_id: string;
|
|
65
|
+
status: string;
|
|
66
|
+
destination_phone: string | null;
|
|
67
|
+
duration: number;
|
|
68
|
+
country: string;
|
|
69
|
+
channel: string;
|
|
70
|
+
messages: number;
|
|
71
|
+
focus: string | null;
|
|
72
|
+
created_at: string;
|
|
73
|
+
summary: string;
|
|
74
|
+
transcription: TranscriptionMessage[];
|
|
75
|
+
};
|
|
26
76
|
}
|
|
@@ -148,4 +148,14 @@ export declare namespace User {
|
|
|
148
148
|
interface ImpersonationEnabledResponse {
|
|
149
149
|
enabled: 'true' | 'false';
|
|
150
150
|
}
|
|
151
|
+
interface UsersToImpersonateUser {
|
|
152
|
+
code: string;
|
|
153
|
+
first_name: string;
|
|
154
|
+
last_name: string;
|
|
155
|
+
email: string;
|
|
156
|
+
status: string;
|
|
157
|
+
}
|
|
158
|
+
interface UsersToImpersonateResponse {
|
|
159
|
+
users: UsersToImpersonateUser[];
|
|
160
|
+
}
|
|
151
161
|
}
|