@yuno-payments/dashboard-api-mfe 2.7.3 → 2.9.0

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.
@@ -2,6 +2,8 @@ export declare namespace ConciergeAccess {
2
2
  interface SlackChannels {
3
3
  channel_ids: string[];
4
4
  dm_user_ids: string[];
5
+ channel_names?: string[];
6
+ dm_user_emails?: string[];
5
7
  }
6
8
  interface WhatsappChannels {
7
9
  group_ids: string[];
@@ -25,6 +27,7 @@ export declare namespace ConciergeAccess {
25
27
  day_of_month: string;
26
28
  delivery_time: string;
27
29
  content: string;
30
+ preferred_language?: string;
28
31
  }
29
32
  interface HeartbeatConfig {
30
33
  merchant_id: string;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated Use ConversionRateBody directly — all fields have been merged into the body.
3
+ */
1
4
  export interface ConversionRateParams {
2
5
  start_date: string;
3
6
  end_date: string;
@@ -11,9 +14,24 @@ export interface ConversionRateParams {
11
14
  payment_statuses: string;
12
15
  card_brand: string;
13
16
  }
17
+ /**
18
+ * Full body sent to datalake-ms /v3/insights/conversion-rate/* endpoints.
19
+ * All filters are in the request body; no query params are used.
20
+ */
14
21
  export interface ConversionRateBody {
15
22
  account_codes: string[];
16
- connection_name: string[];
23
+ start_date?: string;
24
+ end_date?: string;
25
+ periodicity?: string;
26
+ timezone?: string;
27
+ currency_codes?: string[];
28
+ payment_method_types?: string[];
29
+ provider_ids?: string[];
30
+ payment_statuses?: string[];
31
+ connection_name?: string[];
32
+ card_brand?: string[];
33
+ source?: string;
34
+ new_version?: boolean;
17
35
  }
18
36
  export interface ConversionRatePeriodicityRecord {
19
37
  [key: string]: number;
@@ -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",
@@ -11,7 +11,7 @@ export declare namespace DataReport {
11
11
  CARD_BRANDS = "card-brands",
12
12
  ISSUERS = "issuers"
13
13
  }
14
- export interface SmartRouting {
14
+ interface SmartRouting {
15
15
  version: string;
16
16
  code_integration: string;
17
17
  Conditions: {
@@ -24,7 +24,7 @@ export declare namespace DataReport {
24
24
  cost: number;
25
25
  }[];
26
26
  }
27
- export enum OverviewMetricType {
27
+ enum OverviewMetricType {
28
28
  GENERAL = "volume-and-total-payments",
29
29
  LATENCY = "provider-latency",
30
30
  STATUS = "status",
@@ -41,30 +41,69 @@ export declare namespace DataReport {
41
41
  conditional: string;
42
42
  values: string | string[];
43
43
  }
44
- export interface InsightMetricParams {
44
+ interface InsightMetricParams {
45
45
  [a: string]: string | boolean | number | string[] | MetadataField[] | undefined;
46
46
  account_code?: string;
47
47
  connection_name?: string;
48
48
  stored_credentials_usage?: string;
49
49
  metadata?: MetadataField[];
50
50
  }
51
- export interface InsightMetricBody {
51
+ /**
52
+ * Full body shape expected by the BFF / datalake-ms for /insights/* endpoints.
53
+ * All filters are sent as JSON body (no query params).
54
+ */
55
+ interface InsightMetricBody {
56
+ organization_code?: string;
52
57
  account_codes?: string[];
58
+ /** @deprecated use account_codes */
53
59
  account_code?: string[];
60
+ start_date?: string;
61
+ end_date?: string;
62
+ timezone?: string;
63
+ periodicity?: string;
64
+ currency_codes?: string[];
65
+ payment_method_types?: string[];
66
+ provider_ids?: string[];
67
+ payment_statuses?: string[];
68
+ card_types?: string[];
69
+ condition_set_ids?: string[];
70
+ card_country_code?: string[];
71
+ card_iins?: string[];
72
+ stored_credentials_usage?: string[];
73
+ card_brand?: string[];
54
74
  connection_name?: string[];
75
+ country?: string[];
76
+ authentication_method?: string[];
77
+ nts?: string[];
78
+ attempts?: string[];
79
+ has_cvv?: string[];
80
+ bin?: string;
81
+ brand?: string;
82
+ card_type?: string;
83
+ issuer_name?: string;
84
+ decline_reason?: string;
85
+ chargebacks_filtered_date?: string;
86
+ size?: number;
87
+ page?: number;
88
+ export?: boolean;
89
+ sorted_params?: {
90
+ field: string;
91
+ order: string;
92
+ };
55
93
  metadata_filters?: MetadataFieldFilter[];
56
94
  metadata?: MetadataField[];
95
+ source?: string;
96
+ new_version?: boolean;
57
97
  }
58
- export interface InsightExportParams {
98
+ interface InsightExportParams {
59
99
  type?: string;
60
100
  code?: string;
61
101
  }
62
- export interface InsightsHomeMetrics {
102
+ interface InsightsHomeMetrics {
63
103
  account_codes?: string[];
64
104
  organization_code?: string;
65
105
  currency_code?: string;
66
106
  timezone?: string;
67
107
  isLiveMode?: boolean;
68
108
  }
69
- export {};
70
109
  }
@@ -11,9 +11,26 @@ export interface InsightsFraudParams {
11
11
  payment_statuses: string;
12
12
  card_brand: string;
13
13
  }
14
+ /**
15
+ * Body shape sent to datalake-ms /insights/* endpoints.
16
+ * account_codes and connection_name are the legacy body fields; additional
17
+ * filter fields (plural array names) come from merging InsightsFraudParams
18
+ * inside each api method.
19
+ */
14
20
  export interface InsightsFraudBody {
15
21
  account_codes: string[];
16
22
  connection_name: string[];
23
+ start_date?: string;
24
+ end_date?: string;
25
+ periodicity?: string;
26
+ timezone?: string;
27
+ currency_codes?: string[];
28
+ payment_method_types?: string[];
29
+ provider_ids?: string[];
30
+ payment_statuses?: string[];
31
+ card_brand?: string[];
32
+ source?: string;
33
+ new_version?: boolean;
17
34
  }
18
35
  export interface PeriodicityRecord {
19
36
  [key: string]: number;