@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;
package/build/index.d.ts CHANGED
@@ -2662,7 +2662,7 @@ declare namespace Team {
2662
2662
  }
2663
2663
 
2664
2664
  declare namespace DataReport {
2665
- export enum InsightsVolumeMetricsV2Path {
2665
+ enum InsightsVolumeMetricsV2Path {
2666
2666
  REFUNDS_AND_CHARGEBACKS = "refunds-and-chargebacks",
2667
2667
  APPROVED_PAYMENTS = "approved-payments",
2668
2668
  PAYMENT_METHODS = "payment-methods",
@@ -2674,7 +2674,7 @@ declare namespace DataReport {
2674
2674
  CARD_BRANDS = "card-brands",
2675
2675
  ISSUERS = "issuers"
2676
2676
  }
2677
- export interface SmartRouting {
2677
+ interface SmartRouting {
2678
2678
  version: string;
2679
2679
  code_integration: string;
2680
2680
  Conditions: {
@@ -2687,7 +2687,7 @@ declare namespace DataReport {
2687
2687
  cost: number;
2688
2688
  }[];
2689
2689
  }
2690
- export enum OverviewMetricType {
2690
+ enum OverviewMetricType {
2691
2691
  GENERAL = "volume-and-total-payments",
2692
2692
  LATENCY = "provider-latency",
2693
2693
  STATUS = "status",
@@ -2704,32 +2704,71 @@ declare namespace DataReport {
2704
2704
  conditional: string;
2705
2705
  values: string | string[];
2706
2706
  }
2707
- export interface InsightMetricParams {
2707
+ interface InsightMetricParams {
2708
2708
  [a: string]: string | boolean | number | string[] | MetadataField[] | undefined;
2709
2709
  account_code?: string;
2710
2710
  connection_name?: string;
2711
2711
  stored_credentials_usage?: string;
2712
2712
  metadata?: MetadataField[];
2713
2713
  }
2714
- export interface InsightMetricBody {
2714
+ /**
2715
+ * Full body shape expected by the BFF / datalake-ms for /insights/* endpoints.
2716
+ * All filters are sent as JSON body (no query params).
2717
+ */
2718
+ interface InsightMetricBody {
2719
+ organization_code?: string;
2715
2720
  account_codes?: string[];
2721
+ /** @deprecated use account_codes */
2716
2722
  account_code?: string[];
2723
+ start_date?: string;
2724
+ end_date?: string;
2725
+ timezone?: string;
2726
+ periodicity?: string;
2727
+ currency_codes?: string[];
2728
+ payment_method_types?: string[];
2729
+ provider_ids?: string[];
2730
+ payment_statuses?: string[];
2731
+ card_types?: string[];
2732
+ condition_set_ids?: string[];
2733
+ card_country_code?: string[];
2734
+ card_iins?: string[];
2735
+ stored_credentials_usage?: string[];
2736
+ card_brand?: string[];
2717
2737
  connection_name?: string[];
2738
+ country?: string[];
2739
+ authentication_method?: string[];
2740
+ nts?: string[];
2741
+ attempts?: string[];
2742
+ has_cvv?: string[];
2743
+ bin?: string;
2744
+ brand?: string;
2745
+ card_type?: string;
2746
+ issuer_name?: string;
2747
+ decline_reason?: string;
2748
+ chargebacks_filtered_date?: string;
2749
+ size?: number;
2750
+ page?: number;
2751
+ export?: boolean;
2752
+ sorted_params?: {
2753
+ field: string;
2754
+ order: string;
2755
+ };
2718
2756
  metadata_filters?: MetadataFieldFilter[];
2719
2757
  metadata?: MetadataField[];
2758
+ source?: string;
2759
+ new_version?: boolean;
2720
2760
  }
2721
- export interface InsightExportParams {
2761
+ interface InsightExportParams {
2722
2762
  type?: string;
2723
2763
  code?: string;
2724
2764
  }
2725
- export interface InsightsHomeMetrics {
2765
+ interface InsightsHomeMetrics {
2726
2766
  account_codes?: string[];
2727
2767
  organization_code?: string;
2728
2768
  currency_code?: string;
2729
2769
  timezone?: string;
2730
2770
  isLiveMode?: boolean;
2731
2771
  }
2732
- export {};
2733
2772
  }
2734
2773
 
2735
2774
  interface InsightsFraudParams {
@@ -2745,9 +2784,26 @@ interface InsightsFraudParams {
2745
2784
  payment_statuses: string;
2746
2785
  card_brand: string;
2747
2786
  }
2787
+ /**
2788
+ * Body shape sent to datalake-ms /insights/* endpoints.
2789
+ * account_codes and connection_name are the legacy body fields; additional
2790
+ * filter fields (plural array names) come from merging InsightsFraudParams
2791
+ * inside each api method.
2792
+ */
2748
2793
  interface InsightsFraudBody {
2749
2794
  account_codes: string[];
2750
2795
  connection_name: string[];
2796
+ start_date?: string;
2797
+ end_date?: string;
2798
+ periodicity?: string;
2799
+ timezone?: string;
2800
+ currency_codes?: string[];
2801
+ payment_method_types?: string[];
2802
+ provider_ids?: string[];
2803
+ payment_statuses?: string[];
2804
+ card_brand?: string[];
2805
+ source?: string;
2806
+ new_version?: boolean;
2751
2807
  }
2752
2808
  interface PeriodicityRecord {
2753
2809
  [key: string]: number;
@@ -2898,6 +2954,9 @@ interface InsightsChargebacksByCardBrand {
2898
2954
  }[];
2899
2955
  }
2900
2956
 
2957
+ /**
2958
+ * @deprecated Use ConversionRateBody directly — all fields have been merged into the body.
2959
+ */
2901
2960
  interface ConversionRateParams {
2902
2961
  start_date: string;
2903
2962
  end_date: string;
@@ -2911,9 +2970,24 @@ interface ConversionRateParams {
2911
2970
  payment_statuses: string;
2912
2971
  card_brand: string;
2913
2972
  }
2973
+ /**
2974
+ * Full body sent to datalake-ms /v3/insights/conversion-rate/* endpoints.
2975
+ * All filters are in the request body; no query params are used.
2976
+ */
2914
2977
  interface ConversionRateBody {
2915
2978
  account_codes: string[];
2916
- connection_name: string[];
2979
+ start_date?: string;
2980
+ end_date?: string;
2981
+ periodicity?: string;
2982
+ timezone?: string;
2983
+ currency_codes?: string[];
2984
+ payment_method_types?: string[];
2985
+ provider_ids?: string[];
2986
+ payment_statuses?: string[];
2987
+ connection_name?: string[];
2988
+ card_brand?: string[];
2989
+ source?: string;
2990
+ new_version?: boolean;
2917
2991
  }
2918
2992
  interface ConversionRatePeriodicityRecord {
2919
2993
  [key: string]: number;
@@ -5633,6 +5707,8 @@ declare namespace ConciergeAccess {
5633
5707
  interface SlackChannels {
5634
5708
  channel_ids: string[];
5635
5709
  dm_user_ids: string[];
5710
+ channel_names?: string[];
5711
+ dm_user_emails?: string[];
5636
5712
  }
5637
5713
  interface WhatsappChannels {
5638
5714
  group_ids: string[];
@@ -5656,6 +5732,7 @@ declare namespace ConciergeAccess {
5656
5732
  day_of_month: string;
5657
5733
  delivery_time: string;
5658
5734
  content: string;
5735
+ preferred_language?: string;
5659
5736
  }
5660
5737
  interface HeartbeatConfig {
5661
5738
  merchant_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/dashboard-api-mfe",
3
- "version": "2.7.3",
3
+ "version": "2.9.0",
4
4
  "types": "build/index.d.ts",
5
5
  "main": "build/cjs/index.js",
6
6
  "module": "build/esm/index.js",