@yuno-payments/dashboard-api-mfe 0.38.4 → 0.38.6

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 (30) hide show
  1. package/build/cjs/index.js +201 -36
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/types/api/api.d.ts +4 -1
  4. package/build/cjs/types/api/api.types.d.ts +0 -12
  5. package/build/cjs/types/lib/http-client/http-client.d.ts +7 -0
  6. package/build/cjs/types/mutations/chartgpt/chartgpt.mutation.d.ts +4 -0
  7. package/build/cjs/types/mutations/connections/connections.mutation.d.ts +5 -0
  8. package/build/cjs/types/queries/index.d.ts +1 -0
  9. package/build/cjs/types/queries/network-tokens/index.d.ts +1 -0
  10. package/build/cjs/types/queries/network-tokens/network-tokens.query.d.ts +5 -0
  11. package/build/cjs/types/types/audit/audit.d.ts +3 -2
  12. package/build/cjs/types/types/connection/connection.d.ts +18 -0
  13. package/build/cjs/types/types/data-report/data-report.d.ts +8 -23
  14. package/build/cjs/types/types/organization/organization.d.ts +2 -0
  15. package/build/esm/index.js +201 -36
  16. package/build/esm/index.js.map +1 -1
  17. package/build/esm/types/api/api.d.ts +4 -1
  18. package/build/esm/types/api/api.types.d.ts +0 -12
  19. package/build/esm/types/lib/http-client/http-client.d.ts +7 -0
  20. package/build/esm/types/mutations/chartgpt/chartgpt.mutation.d.ts +4 -0
  21. package/build/esm/types/mutations/connections/connections.mutation.d.ts +5 -0
  22. package/build/esm/types/queries/index.d.ts +1 -0
  23. package/build/esm/types/queries/network-tokens/index.d.ts +1 -0
  24. package/build/esm/types/queries/network-tokens/network-tokens.query.d.ts +5 -0
  25. package/build/esm/types/types/audit/audit.d.ts +3 -2
  26. package/build/esm/types/types/connection/connection.d.ts +18 -0
  27. package/build/esm/types/types/data-report/data-report.d.ts +8 -23
  28. package/build/esm/types/types/organization/organization.d.ts +2 -0
  29. package/build/index.d.ts +46 -38
  30. package/package.json +25 -25
@@ -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, GetUserFullResponse } 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, 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';
@@ -510,8 +510,11 @@ export declare class Api extends HttpClient {
510
510
  getConversionRateChargebacksByCardBrand(body: InsightsFraudBody, params: InsightsFraudParams): Promise<AxiosResponse<any, any>>;
511
511
  get3DSExemptions(): Promise<AxiosResponse<SmartRouting.ThreeDSExemptionsResponse>>;
512
512
  getNetworkTokensOnboarding(): Promise<AxiosResponse<SmartRouting.NetworkTokensOnboardingResponse>>;
513
+ getNetworkTokensOnboardingByOrganization(organizationCode: string): Promise<AxiosResponse<Connection.NetworkTokensOnboardingData>>;
514
+ postNetworkTokensOnboarding(payload: Connection.NetworkTokensOnboardingData, organizationCode: string): Promise<AxiosResponse<Connection.NetworkTokensOnboardingData>>;
513
515
  createChartGPTChart<T>(payload: {
514
516
  user_prompt: string;
517
+ timezone?: string;
515
518
  }): Promise<AxiosResponse<T, any>>;
516
519
  deleteChartGPTChart<T>(chart_id: string): Promise<AxiosResponse<T, any>>;
517
520
  getChartById<T>(chart_id: string): Promise<AxiosResponse<T, any>>;
@@ -6,12 +6,6 @@ export interface GetPaymentsParams {
6
6
  enabled?: boolean;
7
7
  account_code?: string;
8
8
  payment_link_code?: string;
9
- metadata?: Array<{
10
- field: string;
11
- formatType: 'TEXT' | 'NUMBER';
12
- type: string;
13
- values: string | string[];
14
- }>;
15
9
  }
16
10
  export interface GetPaymentsEvaluatedParams {
17
11
  start_date: string | Date;
@@ -133,12 +127,6 @@ export interface GetTransactionsParams {
133
127
  page?: number;
134
128
  size?: number;
135
129
  account_code?: string;
136
- metadata?: Array<{
137
- field: string;
138
- formatType: 'TEXT' | 'NUMBER';
139
- type: string;
140
- values: string | string[];
141
- }>;
142
130
  }
143
131
  export interface GetPayoutDetail {
144
132
  payout_code: string;
@@ -1,5 +1,12 @@
1
1
  import { Axios } from './axios';
2
2
  import { AxiosRequestConfig, AxiosResponse, AxiosError, CancelTokenSource } from 'axios';
3
+ /**
4
+ * Serializes parameters for URL query string with proper encoding
5
+ * and handling of arrays without duplication
6
+ * @param params - Object with parameters to serialize
7
+ * @returns URL encoded query string
8
+ */
9
+ export declare const serializeParams: (params: Record<string, any>) => string;
3
10
  /**
4
11
  * @class Api Class is a fancy es6 wrapper class for axios.
5
12
  *
@@ -3,6 +3,7 @@ import { AxiosError } from 'axios';
3
3
  import { ChartGPTChart, ChartGPTExecuteResponse } from '../../queries';
4
4
  export interface CreateChartGPTChartPayload {
5
5
  user_prompt: string;
6
+ timezone?: string;
6
7
  }
7
8
  export interface CreateChartGPTChartResponse {
8
9
  [key: string]: any;
@@ -23,6 +24,7 @@ export interface PatchChartGPTChartPayload {
23
24
  }
24
25
  export interface CreateAndExecuteChartPayload {
25
26
  user_prompt: string;
27
+ timezone?: string;
26
28
  }
27
29
  export interface CreateAndExecuteChartResult {
28
30
  chart_id?: string;
@@ -35,3 +37,5 @@ export declare function useCreateChart(): UseMutationResult<CreateChartGPTChartR
35
37
  export declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
36
38
  export declare function usePatchChartName(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, PatchChartGPTChartPayload>;
37
39
  export declare function useCreateAndExecuteChart(): UseMutationResult<CreateAndExecuteChartResult, AxiosError<ErrorChartGPTResponse>, CreateAndExecuteChartPayload>;
40
+ export declare function useCreateChartWithTimezone(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
41
+ export declare function useCreateAndExecuteChartWithTimezone(): UseMutationResult<CreateAndExecuteChartResult, AxiosError<ErrorChartGPTResponse>, CreateAndExecuteChartPayload>;
@@ -31,6 +31,11 @@ export declare function useValidateCredentials(): import("@tanstack/react-query"
31
31
  provider_type: string;
32
32
  integration_code: string;
33
33
  payment_method: string;
34
+ country_code?: string;
34
35
  };
35
36
  }, unknown>;
37
+ export declare function usePostNetworkTokensOnboarding(): import("@tanstack/react-query").UseMutationResult<Connection.NetworkTokensOnboardingData, unknown, {
38
+ payload: Connection.NetworkTokensOnboardingData;
39
+ organizationCode: string;
40
+ }, unknown>;
36
41
  export {};
@@ -25,4 +25,5 @@ export * from './mfa';
25
25
  export * from './saml-config';
26
26
  export * from './chartgpt';
27
27
  export * from './translation';
28
+ export * from './network-tokens';
28
29
  export * from './template-reporting';
@@ -0,0 +1 @@
1
+ export * from './network-tokens.query';
@@ -0,0 +1,5 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { AxiosError } from 'axios';
3
+ import { Connection } from '../../types';
4
+ import { CustomAxiosResponse } from '../../utils/handler-error';
5
+ export declare function useGetNetworkTokensOnboardingByOrganization(organizationCode: string): UseQueryResult<Connection.NetworkTokensOnboardingData, AxiosError<CustomAxiosResponse>>;
@@ -109,12 +109,13 @@ export declare namespace Audit {
109
109
  }
110
110
  interface ExportApiLogsRequest {
111
111
  report_name: string;
112
- account_code: string[];
112
+ account_code?: string[];
113
113
  start_date: string;
114
114
  end_date: string;
115
115
  time_zone: string;
116
- method?: string[];
117
116
  organizationCode?: string;
117
+ status_codes?: string[];
118
+ methods?: string[];
118
119
  }
119
120
  interface AuditApiJSON {
120
121
  [key: string]: string;
@@ -51,4 +51,22 @@ export declare namespace Connection {
51
51
  }
52
52
  ];
53
53
  };
54
+ interface NetworkTokensOnboardingData {
55
+ name: string;
56
+ legal_name: string;
57
+ website: string;
58
+ identification_type: string;
59
+ identification_number: string;
60
+ address_line_1: string;
61
+ address_line_2: string;
62
+ city: string;
63
+ state: string;
64
+ country: string;
65
+ zip_code: string;
66
+ phone: string;
67
+ contact_first_name: string;
68
+ contact_last_name: string;
69
+ contact_email: string;
70
+ account_codes: string[];
71
+ }
54
72
  }
@@ -1,5 +1,5 @@
1
1
  export declare namespace DataReport {
2
- export enum InsightsVolumeMetricsV2Path {
2
+ enum InsightsVolumeMetricsV2Path {
3
3
  REFUNDS_AND_CHARGEBACKS = "refunds-and-chargebacks",
4
4
  APPROVED_PAYMENTS = "approved-payments",
5
5
  PAYMENT_METHODS = "payment-methods",
@@ -8,7 +8,7 @@ export declare namespace DataReport {
8
8
  UNIQUE_CUSTOMER_PAYMENTS = "unique-customer-payments",
9
9
  TOTAL_PAYMENTS = "total-payments"
10
10
  }
11
- export interface SmartRouting {
11
+ interface SmartRouting {
12
12
  version: string;
13
13
  code_integration: string;
14
14
  Conditions: {
@@ -21,46 +21,31 @@ export declare namespace DataReport {
21
21
  cost: number;
22
22
  }[];
23
23
  }
24
- export enum OverviewMetricType {
24
+ enum OverviewMetricType {
25
25
  GENERAL = "volume-and-total-payments",
26
26
  LATENCY = "provider-latency",
27
27
  STATUS = "status",
28
28
  SUBSCRIPTIONS = "subscriptions"
29
29
  }
30
- interface MetadataField {
31
- field: string;
32
- formatType: 'TEXT' | 'NUMBER';
33
- type: string;
34
- values: string | string[];
35
- }
36
- interface MetadataFieldFilter {
37
- key: string;
38
- conditional: string;
39
- values: string | string[];
40
- }
41
- export interface InsightMetricParams {
42
- [a: string]: string | boolean | number | string[] | MetadataField[] | undefined;
30
+ interface InsightMetricParams {
31
+ [a: string]: string | boolean | number | string[] | undefined;
43
32
  account_code?: string;
44
33
  connection_name?: string;
45
- metadata?: MetadataField[];
46
34
  }
47
- export interface InsightMetricBody {
35
+ interface InsightMetricBody {
48
36
  account_codes?: string[];
49
37
  account_code?: string[];
50
38
  connection_name?: string[];
51
- metadata_filters?: MetadataFieldFilter[];
52
- metadata?: MetadataField[];
53
39
  }
54
- export interface InsightExportParams {
40
+ interface InsightExportParams {
55
41
  type?: string;
56
42
  code?: string;
57
43
  }
58
- export interface InsightsHomeMetrics {
44
+ interface InsightsHomeMetrics {
59
45
  account_codes?: string[];
60
46
  organization_code?: string;
61
47
  currency_code?: string;
62
48
  timezone?: string;
63
49
  isLiveMode?: boolean;
64
50
  }
65
- export {};
66
51
  }
@@ -16,6 +16,7 @@ export declare namespace Organization {
16
16
  allowed_sections?: {
17
17
  nova: boolean;
18
18
  reconciliations: boolean;
19
+ future_providers: boolean;
19
20
  };
20
21
  }
21
22
  enum CustomClaims {
@@ -32,6 +33,7 @@ export declare namespace Organization {
32
33
  params: Connection.ConnectionPayload[];
33
34
  provider: {
34
35
  async: boolean;
36
+ location_coverage: string[];
35
37
  };
36
38
  code: number;
37
39
  }