@delopay/sdk 0.66.1 → 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 +33 -2
- package/dist/index.d.ts +33 -2
- package/dist/internal.d.cts +6 -0
- package/dist/internal.d.ts +6 -0
- package/package.json +17 -16
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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/internal.d.cts
CHANGED
|
@@ -173,6 +173,12 @@ interface AdminTransactionListParams {
|
|
|
173
173
|
shop_id?: string | null;
|
|
174
174
|
payment_id?: string | null;
|
|
175
175
|
status?: string | null;
|
|
176
|
+
/** Exact match on the active attempt's connector (e.g. `stripe`). */
|
|
177
|
+
connector?: string | null;
|
|
178
|
+
/** Exact match on the active attempt's payment method (e.g. `card`). */
|
|
179
|
+
payment_method?: string | null;
|
|
180
|
+
/** Exact match on the active attempt's method sub-type (e.g. `apple_pay`). */
|
|
181
|
+
payment_method_type?: string | null;
|
|
176
182
|
/** `true` = test only, `false` = live only, omitted = both. */
|
|
177
183
|
test_mode?: boolean | null;
|
|
178
184
|
/** Inclusive lower bound on the payment amount, in minor units. */
|
package/dist/internal.d.ts
CHANGED
|
@@ -173,6 +173,12 @@ interface AdminTransactionListParams {
|
|
|
173
173
|
shop_id?: string | null;
|
|
174
174
|
payment_id?: string | null;
|
|
175
175
|
status?: string | null;
|
|
176
|
+
/** Exact match on the active attempt's connector (e.g. `stripe`). */
|
|
177
|
+
connector?: string | null;
|
|
178
|
+
/** Exact match on the active attempt's payment method (e.g. `card`). */
|
|
179
|
+
payment_method?: string | null;
|
|
180
|
+
/** Exact match on the active attempt's method sub-type (e.g. `apple_pay`). */
|
|
181
|
+
payment_method_type?: string | null;
|
|
176
182
|
/** `true` = test only, `false` = live only, omitted = both. */
|
|
177
183
|
test_mode?: boolean | null;
|
|
178
184
|
/** Inclusive lower bound on the payment amount, in minor units. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delopay/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.67.0",
|
|
4
4
|
"description": "Official Delopay TypeScript SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,6 +32,20 @@
|
|
|
32
32
|
"files": [
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsup",
|
|
37
|
+
"prepublishOnly": "tsup",
|
|
38
|
+
"test": "vitest run",
|
|
39
|
+
"test:watch": "vitest",
|
|
40
|
+
"typecheck": "tsc --noEmit",
|
|
41
|
+
"lint": "oxlint && eslint .",
|
|
42
|
+
"lint:fix": "oxlint --fix && eslint . --fix",
|
|
43
|
+
"format": "prettier --write .",
|
|
44
|
+
"format:check": "prettier --check .",
|
|
45
|
+
"check": "pnpm typecheck && pnpm lint && pnpm format:check && pnpm test && pnpm check:parity",
|
|
46
|
+
"check:parity": "node scripts/parity-check.mjs",
|
|
47
|
+
"validate:types": "npx tsx scripts/validate-types.ts"
|
|
48
|
+
},
|
|
35
49
|
"devDependencies": {
|
|
36
50
|
"@eslint/js": "^10.0.1",
|
|
37
51
|
"@types/node": "^25.6.0",
|
|
@@ -46,18 +60,5 @@
|
|
|
46
60
|
"engines": {
|
|
47
61
|
"node": ">=18.0.0"
|
|
48
62
|
},
|
|
49
|
-
"license": "MIT"
|
|
50
|
-
|
|
51
|
-
"build": "tsup",
|
|
52
|
-
"test": "vitest run",
|
|
53
|
-
"test:watch": "vitest",
|
|
54
|
-
"typecheck": "tsc --noEmit",
|
|
55
|
-
"lint": "oxlint && eslint .",
|
|
56
|
-
"lint:fix": "oxlint --fix && eslint . --fix",
|
|
57
|
-
"format": "prettier --write .",
|
|
58
|
-
"format:check": "prettier --check .",
|
|
59
|
-
"check": "pnpm typecheck && pnpm lint && pnpm format:check && pnpm test && pnpm check:parity",
|
|
60
|
-
"check:parity": "node scripts/parity-check.mjs",
|
|
61
|
-
"validate:types": "npx tsx scripts/validate-types.ts"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
63
|
+
"license": "MIT"
|
|
64
|
+
}
|