@yuno-payments/dashboard-api-mfe 0.40.26-beta.1 → 0.41.0-DAS-12434.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 (34) hide show
  1. package/build/cjs/index.js +6 -6
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/types/api/api.d.ts +6 -1
  4. package/build/cjs/types/mutations/index.d.ts +1 -0
  5. package/build/cjs/types/mutations/organization-config/index.d.ts +1 -0
  6. package/build/cjs/types/mutations/organization-config/organization-config.mutation.d.ts +6 -0
  7. package/build/cjs/types/mutations/payments/payments.mutation.d.ts +4 -0
  8. package/build/cjs/types/mutations/reports/reports.mutation.d.ts +1 -0
  9. package/build/cjs/types/queries/index.d.ts +1 -0
  10. package/build/cjs/types/queries/organization-config/index.d.ts +1 -0
  11. package/build/cjs/types/queries/organization-config/organization-config.query.d.ts +4 -0
  12. package/build/cjs/types/types/index.d.ts +1 -0
  13. package/build/cjs/types/types/organization-config/index.d.ts +1 -0
  14. package/build/cjs/types/types/organization-config/organization-config.d.ts +34 -0
  15. package/build/cjs/types/types/payment/payment.d.ts +7 -0
  16. package/build/cjs/types/types/reports/reports.d.ts +16 -3
  17. package/build/esm/index.js +6 -6
  18. package/build/esm/index.js.map +1 -1
  19. package/build/esm/types/api/api.d.ts +6 -1
  20. package/build/esm/types/mutations/index.d.ts +1 -0
  21. package/build/esm/types/mutations/organization-config/index.d.ts +1 -0
  22. package/build/esm/types/mutations/organization-config/organization-config.mutation.d.ts +6 -0
  23. package/build/esm/types/mutations/payments/payments.mutation.d.ts +4 -0
  24. package/build/esm/types/mutations/reports/reports.mutation.d.ts +1 -0
  25. package/build/esm/types/queries/index.d.ts +1 -0
  26. package/build/esm/types/queries/organization-config/index.d.ts +1 -0
  27. package/build/esm/types/queries/organization-config/organization-config.query.d.ts +4 -0
  28. package/build/esm/types/types/index.d.ts +1 -0
  29. package/build/esm/types/types/organization-config/index.d.ts +1 -0
  30. package/build/esm/types/types/organization-config/organization-config.d.ts +34 -0
  31. package/build/esm/types/types/payment/payment.d.ts +7 -0
  32. package/build/esm/types/types/reports/reports.d.ts +16 -3
  33. package/build/index.d.ts +75 -5
  34. 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, GetInstallmentPlansResponse, Connection, TemplateReporting, GetUserFullResponse } from '../types';
4
+ import { Audit, OperationTransaction, Organization, OrganizationConfig, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection, GetInstallmentPlansResponse, Connection, 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';
@@ -55,6 +55,7 @@ export declare class Api extends HttpClient {
55
55
  getPaymentMethodsAndProviders<T>(): Promise<AxiosResponse<T, any>>;
56
56
  getTransactionDetailsV2<T>(params: GetTransactionDetailsV2Params): Promise<AxiosResponse<T, any>>;
57
57
  getTransactionRawResponse<T>(params: GetTransactionDetailsV2Params): Promise<AxiosResponse<T, any>>;
58
+ postProviderRawResponse<T>(transactionCode: string, payload: Payment.ProviderRawResponse.Request): Promise<AxiosResponse<T, any>>;
58
59
  uploadChargebacks<T>(payload: Payment.UploadRequest, paymentId: string, transactionId: string, handleSetProgress: (progress: number) => void): Promise<AxiosResponse<T, any>>;
59
60
  getPaymentTransactionsDetails<T>({ transaction_code, }: {
60
61
  transaction_code: any;
@@ -78,6 +79,9 @@ export declare class Api extends HttpClient {
78
79
  costs: Cost[];
79
80
  }): Promise<AxiosResponse<T>>;
80
81
  updateOrganizationStatus<T>(): Promise<AxiosResponse<T>>;
82
+ getOrganizationConfigs<T>(): Promise<AxiosResponse<T, any>>;
83
+ postOrganizationConfigs<T>(payload: OrganizationConfig.PostConfigsRequest): Promise<AxiosResponse<T, any>>;
84
+ putOrganizationConfigsByAccount<T>(payload: OrganizationConfig.PutConfigsByAccountRequest): Promise<AxiosResponse<T, any>>;
81
85
  getIntegrationParams<T>({ accountCode, integration_code, }: {
82
86
  accountCode: any;
83
87
  integration_code: any;
@@ -252,6 +256,7 @@ export declare class Api extends HttpClient {
252
256
  }): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any, {}>>;
253
257
  emailVerification<T>(email: any): Promise<AxiosResponse<T, any>>;
254
258
  createReconciliationsReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
259
+ createReconciliationsReportV3<T>(payload: any): Promise<AxiosResponse<T>>;
255
260
  createReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
256
261
  getTotalRowsForExport<T>(payload: any): Promise<AxiosResponse<T>>;
257
262
  reportsList<T>(): Promise<AxiosResponse<T>>;
@@ -28,3 +28,4 @@ export * from './saml-config';
28
28
  export * from './ai';
29
29
  export * from './chartgpt';
30
30
  export * from './template-reporting';
31
+ export * from './organization-config';
@@ -0,0 +1 @@
1
+ export * from './organization-config.mutation';
@@ -0,0 +1,6 @@
1
+ import { UseMutationResult } from '@tanstack/react-query';
2
+ import { OrganizationConfig } from '../../types';
3
+ import { AxiosResponse } from 'axios';
4
+ import { BFFErrorResponse } from '../smart-routing';
5
+ export declare function usePostOrganizationConfigs(): UseMutationResult<AxiosResponse<OrganizationConfig.PostConfigsResponse>, BFFErrorResponse, OrganizationConfig.PostConfigsRequest>;
6
+ export declare function usePutOrganizationConfigsByAccount(): UseMutationResult<AxiosResponse<OrganizationConfig.PutConfigsByAccountResponse>, BFFErrorResponse, OrganizationConfig.PutConfigsByAccountRequest>;
@@ -11,3 +11,7 @@ export declare function useChargebacksUpload(): import("@tanstack/react-query").
11
11
  transactionId: string;
12
12
  handleSetProgress: (progress: number) => void;
13
13
  }, unknown>;
14
+ export declare function useProviderRawResponse(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Payment.ProviderRawResponse.Response, any, {}>, unknown, {
15
+ transactionCode: string;
16
+ payload: Payment.ProviderRawResponse.Request;
17
+ }, unknown>;
@@ -1,6 +1,7 @@
1
1
  import { Reports } from '../../types';
2
2
  import { UseMutationResult } from '@tanstack/react-query';
3
3
  export declare function useCreateReconciliationsReportV2(): UseMutationResult<Reports.ICreateReportsResponse, unknown>;
4
+ export declare function useCreateReconciliationsReportV3(): UseMutationResult<Reports.ICreateReportsResponse, unknown>;
4
5
  export declare function useCreateReportV2(): UseMutationResult<Reports.ICreateReportsResponse, unknown>;
5
6
  export declare function useCountRowsForReport(): UseMutationResult<Reports.CountRowsReportsResponse, unknown>;
6
7
  export declare function useCancelReport(): UseMutationResult<string, unknown>;
@@ -29,3 +29,4 @@ export * from './network-tokens';
29
29
  export * from './smart-recovery';
30
30
  export * from './network-tokens';
31
31
  export * from './template-reporting';
32
+ export * from './organization-config';
@@ -0,0 +1 @@
1
+ export * from './organization-config.query';
@@ -0,0 +1,4 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { OrganizationConfig } from '../../types';
3
+ import { BFFErrorResponse } from '../../mutations';
4
+ export declare function useGetOrganizationConfigs(): UseQueryResult<OrganizationConfig.GetConfigsResponse, BFFErrorResponse>;
@@ -30,3 +30,4 @@ export * from './translation';
30
30
  export * from './ai';
31
31
  export * from './smart-recovery';
32
32
  export * from './template-reporting';
33
+ export * from './organization-config';
@@ -0,0 +1 @@
1
+ export * from './organization-config';
@@ -0,0 +1,34 @@
1
+ export declare namespace OrganizationConfig {
2
+ enum ConfigType {
3
+ YUNO_SMART_TOKENS = "YUNO_SMART_TOKENS",
4
+ CUSTOM_ROUTING_RULES = "CUSTOM_ROUTING_RULES",
5
+ CUSTOM_RETRY_WITH_PAN = "CUSTOM_RETRY_WITH_PAN"
6
+ }
7
+ interface OrganizationConfigItem {
8
+ id: number;
9
+ organization_code: string;
10
+ account_code: string;
11
+ config: ConfigType;
12
+ created_at: string;
13
+ updated_at: string;
14
+ }
15
+ interface GetConfigsResponse {
16
+ organization_configs: OrganizationConfigItem[];
17
+ }
18
+ interface PostConfigsRequest {
19
+ yuno_smart_tokens_config?: string[];
20
+ custom_routing_rules_config?: string[];
21
+ custom_retry_with_pan_config?: string[];
22
+ }
23
+ interface PostConfigsResponse {
24
+ created: OrganizationConfigItem[];
25
+ }
26
+ interface PutConfigsByAccountRequest {
27
+ yuno_smart_tokens_config?: string[];
28
+ custom_routing_rules_config?: string[];
29
+ custom_retry_with_pan_config?: string[];
30
+ }
31
+ interface PutConfigsByAccountResponse {
32
+ updated: OrganizationConfigItem[];
33
+ }
34
+ }
@@ -490,6 +490,13 @@ export declare namespace Payment {
490
490
  transaction_type: string;
491
491
  description?: string;
492
492
  }
493
+ namespace ProviderRawResponse {
494
+ interface Request {
495
+ trace_id: string;
496
+ provider_id: string;
497
+ }
498
+ type Response = Record<string, any>;
499
+ }
493
500
  }
494
501
  export interface PaymentMethodStyled {
495
502
  description: string;
@@ -6,9 +6,17 @@ export declare namespace Reports {
6
6
  merchant_reference_id: string;
7
7
  }
8
8
  interface ICreateReportsResponse {
9
- status: 'COMPLETED' | 'PENDING';
10
- total_lines: number;
11
- url: string | null;
9
+ report_id: string;
10
+ report_type: string;
11
+ status: 'COMPLETED' | 'PENDING' | 'IN_PROCESS';
12
+ merchant_reference_id: string;
13
+ start_date: string;
14
+ end_date: string;
15
+ created_at: string;
16
+ updated_at: string;
17
+ user_code: string;
18
+ url?: string | null;
19
+ total_lines?: number;
12
20
  }
13
21
  interface CountRowsReportsResponse {
14
22
  total_rows: number;
@@ -118,6 +126,11 @@ export interface ICreateReportsRequest {
118
126
  updated_at_end?: string;
119
127
  };
120
128
  }
129
+ export interface ICreateReconciliationsReportV3Request {
130
+ accounts: string[];
131
+ columns: string[];
132
+ filters: Record<string, unknown>;
133
+ }
121
134
  export interface IListScheduledReportsResponse {
122
135
  id?: string;
123
136
  code?: string;