@delopay/sdk 0.66.2 → 0.67.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.
package/dist/index.d.cts CHANGED
@@ -2928,8 +2928,20 @@ interface AnalyticsScopeRequest {
2928
2928
  * both. Applies to the payment series/connectors; refunds are always included.
2929
2929
  */
2930
2930
  test_mode?: boolean | null;
2931
+ /**
2932
+ * Series bucket size: `"day"` (default) or `"hour"`. Hourly buckets are the
2933
+ * intra-day view for a single selected day — allowed only when the window
2934
+ * spans at most 48 hours — and are UTC hours. Requires a backend that
2935
+ * supports intra-day analytics; older backends ignore the field and return
2936
+ * daily buckets.
2937
+ */
2938
+ granularity?: string | null;
2931
2939
  }
2932
- /** One day of aggregated payment activity. Volumes are in USD major units. */
2940
+ /**
2941
+ * One bucket of aggregated payment activity — a calendar day, or a single UTC
2942
+ * hour when the response's `granularity` is `"hour"`. Volumes are in USD major
2943
+ * units.
2944
+ */
2933
2945
  interface AnalyticsDayBucket {
2934
2946
  tx: number;
2935
2947
  success: number;
@@ -2942,6 +2954,9 @@ interface AnalyticsDayBucket {
2942
2954
  failed_vol: number;
2943
2955
  processing_vol: number;
2944
2956
  action_vol: number;
2957
+ /** Payments that timed out unpaid (absent on older backends). */
2958
+ expired_tx?: number;
2959
+ expired_vol?: number;
2945
2960
  }
2946
2961
  /** One day of a processor's volume, split by outcome (major units). */
2947
2962
  interface AnalyticsConnectorDay {
@@ -2978,8 +2993,24 @@ interface AnalyticsScopeResponse {
2978
2993
  end_date: string;
2979
2994
  /** "root" | "merchant" | "project" | "shop". */
2980
2995
  level: string;
2996
+ /**
2997
+ * Bucket size of `series` / `previous_series` / `connectors[].days`: `"day"`
2998
+ * or `"hour"` (intra-day view; one bucket per UTC hour). Absent on older
2999
+ * backends, which always return daily buckets.
3000
+ */
3001
+ granularity?: string;
3002
+ /**
3003
+ * UTC instant of the first bucket's start when `granularity` is `"hour"`
3004
+ * (`YYYY-MM-DDTHH:00:00Z`); absent for daily buckets, where `end_date` +
3005
+ * `days` describe the axis.
3006
+ */
3007
+ bucket_start?: string | null;
2981
3008
  series: AnalyticsDayBucket[];
2982
- /** Equal-length previous window (for period-over-period deltas + comparison). */
3009
+ /**
3010
+ * Equal-length previous window (for period-over-period deltas + comparison).
3011
+ * For hourly buckets this is the same time span exactly 24h earlier, so
3012
+ * bucket `i` compares hour-for-hour with the previous day.
3013
+ */
2983
3014
  previous_series: AnalyticsDayBucket[];
2984
3015
  connectors: AnalyticsConnectorSeries[];
2985
3016
  children: AnalyticsChild[];
package/dist/index.d.ts CHANGED
@@ -2928,8 +2928,20 @@ interface AnalyticsScopeRequest {
2928
2928
  * both. Applies to the payment series/connectors; refunds are always included.
2929
2929
  */
2930
2930
  test_mode?: boolean | null;
2931
+ /**
2932
+ * Series bucket size: `"day"` (default) or `"hour"`. Hourly buckets are the
2933
+ * intra-day view for a single selected day — allowed only when the window
2934
+ * spans at most 48 hours — and are UTC hours. Requires a backend that
2935
+ * supports intra-day analytics; older backends ignore the field and return
2936
+ * daily buckets.
2937
+ */
2938
+ granularity?: string | null;
2931
2939
  }
2932
- /** One day of aggregated payment activity. Volumes are in USD major units. */
2940
+ /**
2941
+ * One bucket of aggregated payment activity — a calendar day, or a single UTC
2942
+ * hour when the response's `granularity` is `"hour"`. Volumes are in USD major
2943
+ * units.
2944
+ */
2933
2945
  interface AnalyticsDayBucket {
2934
2946
  tx: number;
2935
2947
  success: number;
@@ -2942,6 +2954,9 @@ interface AnalyticsDayBucket {
2942
2954
  failed_vol: number;
2943
2955
  processing_vol: number;
2944
2956
  action_vol: number;
2957
+ /** Payments that timed out unpaid (absent on older backends). */
2958
+ expired_tx?: number;
2959
+ expired_vol?: number;
2945
2960
  }
2946
2961
  /** One day of a processor's volume, split by outcome (major units). */
2947
2962
  interface AnalyticsConnectorDay {
@@ -2978,8 +2993,24 @@ interface AnalyticsScopeResponse {
2978
2993
  end_date: string;
2979
2994
  /** "root" | "merchant" | "project" | "shop". */
2980
2995
  level: string;
2996
+ /**
2997
+ * Bucket size of `series` / `previous_series` / `connectors[].days`: `"day"`
2998
+ * or `"hour"` (intra-day view; one bucket per UTC hour). Absent on older
2999
+ * backends, which always return daily buckets.
3000
+ */
3001
+ granularity?: string;
3002
+ /**
3003
+ * UTC instant of the first bucket's start when `granularity` is `"hour"`
3004
+ * (`YYYY-MM-DDTHH:00:00Z`); absent for daily buckets, where `end_date` +
3005
+ * `days` describe the axis.
3006
+ */
3007
+ bucket_start?: string | null;
2981
3008
  series: AnalyticsDayBucket[];
2982
- /** Equal-length previous window (for period-over-period deltas + comparison). */
3009
+ /**
3010
+ * Equal-length previous window (for period-over-period deltas + comparison).
3011
+ * For hourly buckets this is the same time span exactly 24h earlier, so
3012
+ * bucket `i` compares hour-for-hour with the previous day.
3013
+ */
2983
3014
  previous_series: AnalyticsDayBucket[];
2984
3015
  connectors: AnalyticsConnectorSeries[];
2985
3016
  children: AnalyticsChild[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delopay/sdk",
3
- "version": "0.66.2",
3
+ "version": "0.67.0",
4
4
  "description": "Official Delopay TypeScript SDK",
5
5
  "type": "module",
6
6
  "sideEffects": false,