@yuno-payments/dashboard-api-mfe 0.36.57-RC.4 → 0.36.57-beta.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.
Files changed (36) hide show
  1. package/build/cjs/index.js +7 -7
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/types/api/api.d.ts +1 -17
  4. package/build/cjs/types/mutations/audit/index.d.ts +0 -1
  5. package/build/cjs/types/mutations/index.d.ts +0 -1
  6. package/build/cjs/types/queries/accounts/accounts.query.d.ts +0 -6
  7. package/build/cjs/types/queries/audit/audit.query.d.ts +0 -6
  8. package/build/cjs/types/queries/index.d.ts +1 -0
  9. package/build/cjs/types/queries/smart-recovery/index.d.ts +1 -0
  10. package/build/cjs/types/queries/smart-recovery/smart-recovery-overview.query.d.ts +4 -0
  11. package/build/cjs/types/queries/users/users.query.d.ts +1 -1
  12. package/build/cjs/types/types/audit/audit.d.ts +0 -81
  13. package/build/cjs/types/types/index.d.ts +1 -0
  14. package/build/cjs/types/types/smart-recovery/index.d.ts +1 -0
  15. package/build/cjs/types/types/smart-recovery/smart-recovery-overview.types.d.ts +57 -0
  16. package/build/cjs/types/types/user/user.d.ts +0 -8
  17. package/build/esm/index.js +7 -7
  18. package/build/esm/index.js.map +1 -1
  19. package/build/esm/types/api/api.d.ts +1 -17
  20. package/build/esm/types/mutations/audit/index.d.ts +0 -1
  21. package/build/esm/types/mutations/index.d.ts +0 -1
  22. package/build/esm/types/queries/accounts/accounts.query.d.ts +0 -6
  23. package/build/esm/types/queries/audit/audit.query.d.ts +0 -6
  24. package/build/esm/types/queries/index.d.ts +1 -0
  25. package/build/esm/types/queries/smart-recovery/index.d.ts +1 -0
  26. package/build/esm/types/queries/smart-recovery/smart-recovery-overview.query.d.ts +4 -0
  27. package/build/esm/types/queries/users/users.query.d.ts +1 -1
  28. package/build/esm/types/types/audit/audit.d.ts +0 -81
  29. package/build/esm/types/types/index.d.ts +1 -0
  30. package/build/esm/types/types/smart-recovery/index.d.ts +1 -0
  31. package/build/esm/types/types/smart-recovery/smart-recovery-overview.types.d.ts +57 -0
  32. package/build/esm/types/types/user/user.d.ts +0 -8
  33. package/build/index.d.ts +65 -123
  34. package/package.json +1 -1
  35. package/build/cjs/types/mutations/audit/audit-api.mutation.d.ts +0 -5
  36. package/build/esm/types/mutations/audit/audit-api.mutation.d.ts +0 -5
@@ -120,15 +120,6 @@ export declare class Api extends HttpClient {
120
120
  deleteWebhookV2<T>(code: string, accountCode: string): Promise<AxiosResponse<T>>;
121
121
  updateWebhookV2<T>(code: string, payload: any, accountCode: string): Promise<AxiosResponse<T>>;
122
122
  getMenu<T>(): Promise<AxiosResponse<T>>;
123
- postWebhookLogs<T>({ payload: { account_code, ...rest }, }: {
124
- payload: Audit.AuditWebhooksParams;
125
- }): Promise<AxiosResponse<T>>;
126
- postResendWebhooks<T>({ codes, }: Audit.AuditWebhooksResendParams): Promise<AxiosResponse<T>>;
127
- postExportApiLogs<T>(payload: Audit.ExportApiLogsRequest): Promise<AxiosResponse<T>>;
128
- postApiLogs<T>({ payload: { account_code, ...rest }, }: {
129
- payload: Audit.AuditApiLogsParams;
130
- }): Promise<AxiosResponse<T>>;
131
- getApiLogsDetailByPaymentCode<T>(paymentCode: string): Promise<AxiosResponse<T>>;
132
123
  useGetPaymentStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
133
124
  useGetTransactionStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
134
125
  useGetReconciliationTransactionStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
@@ -269,14 +260,7 @@ export declare class Api extends HttpClient {
269
260
  getProfile<T>(): Promise<AxiosResponse<T, any>>;
270
261
  getImpersonationUsers<T>(): Promise<AxiosResponse<T, any>>;
271
262
  getImpersonationEnabled<T>(): Promise<AxiosResponse<T, any>>;
272
- getUsersToImpersonate(organizationCode: string, accountCodes?: string[]): Promise<AxiosResponse<User.UsersToImpersonateResponse>>;
273
- getAccountsForImpersonation(organizationCode: string): Promise<AxiosResponse<{
274
- response: Array<{
275
- name: string;
276
- code_live: string;
277
- code_testing: string;
278
- }>;
279
- }>>;
263
+ getUsersToImpersonate(organizationCode: string): Promise<AxiosResponse<User.UsersToImpersonateResponse>>;
280
264
  updateProfile<T>(payload: User.UserRequestPayload): Promise<AxiosResponse<T>>;
281
265
  inviteUsersMassive<T>(data: UserInviteMultiaccountPayload, organizationCode: string): Promise<AxiosResponse<T>>;
282
266
  unInviteUsersV2<T>({ userCode, organizationCode, }: {
@@ -1,2 +1 @@
1
1
  export * from './audit.mutation';
2
- export * from './audit-api.mutation';
@@ -21,7 +21,6 @@ export * from './scheduled-reports';
21
21
  export * from './velocity-rules';
22
22
  export * from './developers';
23
23
  export * from './audit';
24
- export * from './audit/audit-api.mutation';
25
24
  export * from './reconciliations';
26
25
  export * from './insights';
27
26
  export * from './saml-config';
@@ -16,9 +16,3 @@ export declare function useGetAccountsByUser(userCode: string): UseQueryResult<{
16
16
  accountsV2ByUser: Organization.Account[];
17
17
  error?: AxiosError;
18
18
  }, unknown>;
19
- export declare function useGetAccountsForImpersonation(organizationCode?: string, isTesting?: boolean): UseQueryResult<Array<{
20
- label: string;
21
- value: string;
22
- code_live: string;
23
- code_testing: string;
24
- }>, unknown>;
@@ -1,11 +1,5 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { AxiosError } from 'axios';
3
3
  import type { Audit } from '../../types';
4
- import { BFFErrorResponse } from '../../mutations';
5
4
  export declare function useGetAuditEvents(params: Audit.AuditEventsParams): UseQueryResult<Audit.AuditEvents, AxiosError>;
6
5
  export declare function useGetAuditMonitorEventDetail(id: number | null): UseQueryResult<Audit.AuditMonitorDetail, AxiosError>;
7
- export declare function usePostApiLogs(params: Audit.AuditApiLogsParams): UseQueryResult<Audit.AuditApiLogsResponse, BFFErrorResponse>;
8
- export declare function usePostWebhookLogs({ params, }: {
9
- params: Audit.AuditWebhooksParams;
10
- }): UseQueryResult<Audit.AuditWebhooksResponse, BFFErrorResponse>;
11
- export declare function useGetApiLogsDetailByPaymentCode(code: string): UseQueryResult<unknown, BFFErrorResponse>;
@@ -25,3 +25,4 @@ export * from './mfa';
25
25
  export * from './saml-config';
26
26
  export * from './chartgpt';
27
27
  export * from './translation';
28
+ export * from './smart-recovery';
@@ -0,0 +1 @@
1
+ export * from './smart-recovery-overview.query';
@@ -0,0 +1,4 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import { SmartRecoveryOverviewData, SmartRecoveryOverviewQueryParams } from '../../types/smart-recovery';
3
+ export declare const getSmartRecoveryOverview: (params: SmartRecoveryOverviewQueryParams) => Promise<SmartRecoveryOverviewData>;
4
+ export declare const useSmartRecoveryOverview: (params: SmartRecoveryOverviewQueryParams, options?: UseQueryOptions<SmartRecoveryOverviewData>) => import("@tanstack/react-query").UseQueryResult<SmartRecoveryOverviewData, unknown>;
@@ -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[]): UseQueryResult<User.UsersToImpersonateUser[], AxiosError>;
10
+ export declare function useGetUsersToImpersonate(organizationCode: string): UseQueryResult<User.UsersToImpersonateUser[], AxiosError>;
11
11
  export declare function useCommunications(payload: {
12
12
  start_date: string;
13
13
  end_date: string;
@@ -107,85 +107,4 @@ export declare namespace Audit {
107
107
  type: string;
108
108
  percentage: number;
109
109
  }
110
- interface ExportApiLogsRequest {
111
- report_name: string;
112
- account_code: string[];
113
- start_date: string;
114
- end_date: string;
115
- time_zone: string;
116
- method?: string[];
117
- organizationCode?: string;
118
- }
119
- interface AuditApiJSON {
120
- [key: string]: string;
121
- }
122
- interface AuditApiLogs {
123
- code: string;
124
- url: string;
125
- method: string;
126
- source: string;
127
- headers: AuditApiJSON;
128
- request: AuditApiJSON;
129
- response: AuditApiJSON;
130
- account_name: string;
131
- account_code: string;
132
- status_code: number;
133
- trace_id: string;
134
- created_at: string;
135
- }
136
- interface AuditApiLogsResponse {
137
- data: AuditApiLogs[];
138
- page: number;
139
- size: number;
140
- total_rows: number;
141
- total_pages: number;
142
- }
143
- interface AuditApiLogsParams {
144
- page: number;
145
- size: number;
146
- periodicity?: string;
147
- account_code?: string[];
148
- organizationCode?: string;
149
- status_codes?: string[];
150
- methods?: string[];
151
- }
152
- interface AuditWebhooksParams {
153
- page: number;
154
- size: number;
155
- organizationCode?: string;
156
- periodicity?: string;
157
- account_code?: string[];
158
- status_codes?: string[];
159
- methods?: string[];
160
- }
161
- interface AuditWebhooks {
162
- id: number;
163
- organization_code: string;
164
- account_code: string;
165
- type: string;
166
- created_at: string;
167
- updated_at: string;
168
- time: number;
169
- http_method: string;
170
- url: string;
171
- request: string;
172
- response: string;
173
- response_status: number;
174
- connect_timeout: number;
175
- read_timeout: number;
176
- exception: string;
177
- headers: string;
178
- trace_id: string;
179
- origin_id: string;
180
- }
181
- interface AuditWebhooksResponse {
182
- data: AuditWebhooks[];
183
- page: number;
184
- size: number;
185
- total_rows: number;
186
- total_pages: number;
187
- }
188
- interface AuditWebhooksResendParams {
189
- codes: string[];
190
- }
191
110
  }
@@ -28,3 +28,4 @@ export * from './s3-client';
28
28
  export * from './mfa';
29
29
  export * from './translation';
30
30
  export * from './ai';
31
+ export * from './smart-recovery';
@@ -0,0 +1 @@
1
+ export * from './smart-recovery-overview.types';
@@ -0,0 +1,57 @@
1
+ export interface CommunicationDistribution {
2
+ key: string;
3
+ total: number;
4
+ percentage?: number;
5
+ current_label?: string;
6
+ current_amount?: number;
7
+ past_amount?: number;
8
+ }
9
+ export interface CommunicationStatusDistribution {
10
+ key: 'CREATED' | 'SUCCEEDED' | 'PENDING' | 'DECLINED';
11
+ total: number;
12
+ percentage: number;
13
+ amount?: number;
14
+ }
15
+ export interface DailyCommunicationsAndConversionRate {
16
+ communications: {
17
+ distribution: CommunicationDistribution[];
18
+ total: number;
19
+ };
20
+ conversion_rate: {
21
+ distribution: CommunicationDistribution[];
22
+ total: number;
23
+ };
24
+ completed_communications: {
25
+ distribution: CommunicationDistribution[];
26
+ total: number;
27
+ };
28
+ }
29
+ export interface CommunicationsBySubStatus {
30
+ distribution: CommunicationStatusDistribution[];
31
+ total: number;
32
+ }
33
+ export interface DailyCommunicationsSubStatusDistribution {
34
+ [key: string]: CommunicationDistribution[];
35
+ }
36
+ export interface RecoveredPayments {
37
+ distribution: CommunicationDistribution[];
38
+ total: number;
39
+ total_amount: number;
40
+ }
41
+ export interface SmartRecoveryOverviewData {
42
+ daily_communications_and_conversion_rate: DailyCommunicationsAndConversionRate;
43
+ communications_by_sub_status: CommunicationsBySubStatus;
44
+ daily_communications_sub_status_distribution: DailyCommunicationsSubStatusDistribution;
45
+ recovered_payments: RecoveredPayments;
46
+ }
47
+ export interface SmartRecoveryOverviewFilters {
48
+ date?: string;
49
+ start_date?: string;
50
+ end_date?: string;
51
+ account_code?: string[];
52
+ communication_type?: string[];
53
+ sub_status?: string[];
54
+ }
55
+ export interface SmartRecoveryOverviewQueryParams extends SmartRecoveryOverviewFilters {
56
+ organization_code: string;
57
+ }
@@ -153,14 +153,6 @@ export declare namespace User {
153
153
  first_name: string;
154
154
  last_name: string;
155
155
  email: string;
156
- account_code: string;
157
- account_code_live: string;
158
- account_code_testing: string;
159
- account_name: string;
160
- role: {
161
- id: string;
162
- name: string;
163
- };
164
156
  }
165
157
  interface UsersToImpersonateResponse {
166
158
  users: UsersToImpersonateUser[];