@yuno-payments/dashboard-api-mfe 0.42.0 → 0.42.2

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.
@@ -6,6 +6,12 @@ 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
+ }>;
9
15
  }
10
16
  export interface GetPaymentsEvaluatedParams {
11
17
  start_date: string | Date;
@@ -127,6 +133,12 @@ export interface GetTransactionsParams {
127
133
  page?: number;
128
134
  size?: number;
129
135
  account_code?: string;
136
+ metadata?: Array<{
137
+ field: string;
138
+ formatType: 'TEXT' | 'NUMBER';
139
+ type: string;
140
+ values: string | string[];
141
+ }>;
130
142
  }
131
143
  export interface GetPayoutDetail {
132
144
  payout_code: string;
@@ -1,5 +1,5 @@
1
1
  export declare namespace DataReport {
2
- enum InsightsVolumeMetricsV2Path {
2
+ export 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
- interface SmartRouting {
11
+ export interface SmartRouting {
12
12
  version: string;
13
13
  code_integration: string;
14
14
  Conditions: {
@@ -21,31 +21,46 @@ export declare namespace DataReport {
21
21
  cost: number;
22
22
  }[];
23
23
  }
24
- enum OverviewMetricType {
24
+ export 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 InsightMetricParams {
31
- [a: string]: string | boolean | number | string[] | undefined;
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;
32
43
  account_code?: string;
33
44
  connection_name?: string;
45
+ metadata?: MetadataField[];
34
46
  }
35
- interface InsightMetricBody {
47
+ export interface InsightMetricBody {
36
48
  account_codes?: string[];
37
49
  account_code?: string[];
38
50
  connection_name?: string[];
51
+ metadata_filters?: MetadataFieldFilter[];
52
+ metadata?: MetadataField[];
39
53
  }
40
- interface InsightExportParams {
54
+ export interface InsightExportParams {
41
55
  type?: string;
42
56
  code?: string;
43
57
  }
44
- interface InsightsHomeMetrics {
58
+ export interface InsightsHomeMetrics {
45
59
  account_codes?: string[];
46
60
  organization_code?: string;
47
61
  currency_code?: string;
48
62
  timezone?: string;
49
63
  isLiveMode?: boolean;
50
64
  }
65
+ export {};
51
66
  }
package/build/index.d.ts CHANGED
@@ -199,6 +199,12 @@ interface GetPaymentsParams {
199
199
  enabled?: boolean;
200
200
  account_code?: string;
201
201
  payment_link_code?: string;
202
+ metadata?: Array<{
203
+ field: string;
204
+ formatType: 'TEXT' | 'NUMBER';
205
+ type: string;
206
+ values: string | string[];
207
+ }>;
202
208
  }
203
209
  interface GetPaymentsEvaluatedParams {
204
210
  start_date: string | Date;
@@ -320,6 +326,12 @@ interface GetTransactionsParams {
320
326
  page?: number;
321
327
  size?: number;
322
328
  account_code?: string;
329
+ metadata?: Array<{
330
+ field: string;
331
+ formatType: 'TEXT' | 'NUMBER';
332
+ type: string;
333
+ values: string | string[];
334
+ }>;
323
335
  }
324
336
  interface GetPayoutDetail {
325
337
  payout_code: string;
@@ -2457,7 +2469,7 @@ declare namespace Team {
2457
2469
  }
2458
2470
 
2459
2471
  declare namespace DataReport {
2460
- enum InsightsVolumeMetricsV2Path {
2472
+ export enum InsightsVolumeMetricsV2Path {
2461
2473
  REFUNDS_AND_CHARGEBACKS = "refunds-and-chargebacks",
2462
2474
  APPROVED_PAYMENTS = "approved-payments",
2463
2475
  PAYMENT_METHODS = "payment-methods",
@@ -2466,7 +2478,7 @@ declare namespace DataReport {
2466
2478
  UNIQUE_CUSTOMER_PAYMENTS = "unique-customer-payments",
2467
2479
  TOTAL_PAYMENTS = "total-payments"
2468
2480
  }
2469
- interface SmartRouting {
2481
+ export interface SmartRouting {
2470
2482
  version: string;
2471
2483
  code_integration: string;
2472
2484
  Conditions: {
@@ -2479,33 +2491,48 @@ declare namespace DataReport {
2479
2491
  cost: number;
2480
2492
  }[];
2481
2493
  }
2482
- enum OverviewMetricType {
2494
+ export enum OverviewMetricType {
2483
2495
  GENERAL = "volume-and-total-payments",
2484
2496
  LATENCY = "provider-latency",
2485
2497
  STATUS = "status",
2486
2498
  SUBSCRIPTIONS = "subscriptions"
2487
2499
  }
2488
- interface InsightMetricParams {
2489
- [a: string]: string | boolean | number | string[] | undefined;
2500
+ interface MetadataField {
2501
+ field: string;
2502
+ formatType: 'TEXT' | 'NUMBER';
2503
+ type: string;
2504
+ values: string | string[];
2505
+ }
2506
+ interface MetadataFieldFilter {
2507
+ key: string;
2508
+ conditional: string;
2509
+ values: string | string[];
2510
+ }
2511
+ export interface InsightMetricParams {
2512
+ [a: string]: string | boolean | number | string[] | MetadataField[] | undefined;
2490
2513
  account_code?: string;
2491
2514
  connection_name?: string;
2515
+ metadata?: MetadataField[];
2492
2516
  }
2493
- interface InsightMetricBody {
2517
+ export interface InsightMetricBody {
2494
2518
  account_codes?: string[];
2495
2519
  account_code?: string[];
2496
2520
  connection_name?: string[];
2521
+ metadata_filters?: MetadataFieldFilter[];
2522
+ metadata?: MetadataField[];
2497
2523
  }
2498
- interface InsightExportParams {
2524
+ export interface InsightExportParams {
2499
2525
  type?: string;
2500
2526
  code?: string;
2501
2527
  }
2502
- interface InsightsHomeMetrics {
2528
+ export interface InsightsHomeMetrics {
2503
2529
  account_codes?: string[];
2504
2530
  organization_code?: string;
2505
2531
  currency_code?: string;
2506
2532
  timezone?: string;
2507
2533
  isLiveMode?: boolean;
2508
2534
  }
2535
+ export {};
2509
2536
  }
2510
2537
 
2511
2538
  interface InsightsFraudParams {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/dashboard-api-mfe",
3
- "version": "0.42.0",
3
+ "version": "0.42.2",
4
4
  "types": "build/index.d.ts",
5
5
  "main": "build/cjs/index.js",
6
6
  "module": "build/esm/index.js",