@delopay/sdk 0.174.0 → 0.175.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 +6 -2
- package/dist/index.d.ts +6 -2
- package/package.json +17 -18
package/dist/index.d.cts
CHANGED
|
@@ -6938,7 +6938,7 @@ type AnalyticsGranularity = 'day' | 'hour' | '30m' | '15m' | '5m';
|
|
|
6938
6938
|
/** The dashboards' four outcomes; `open` is processing + awaiting action. */
|
|
6939
6939
|
type AnalyticsOutcome = 'success' | 'open' | 'failed' | 'void';
|
|
6940
6940
|
/** Checkout channel token, as the device dashboard's channel series names them. */
|
|
6941
|
-
type AnalyticsChannel = 'hosted' | 'embedded' | 'api' | 'dashboard' | 'sdk' | 'unknown';
|
|
6941
|
+
type AnalyticsChannel = 'hosted' | 'embedded' | 'auto_redirect' | 'api' | 'dashboard' | 'sdk' | 'unknown';
|
|
6942
6942
|
/** Sort keys of the payments drill (`GET /analytics/scope/transactions`). */
|
|
6943
6943
|
type ScopeDrillSortKey = 'created_at' | 'payment_created_at' | 'amount' | 'status' | 'connector' | 'method';
|
|
6944
6944
|
/** Sort keys of the geo and device drills: the payments keys plus `time_to_pay`. */
|
|
@@ -7361,6 +7361,9 @@ interface DeviceChannelBucket {
|
|
|
7361
7361
|
hosted: number;
|
|
7362
7362
|
/** Hosted checkout embedded in the merchant's page. */
|
|
7363
7363
|
embedded: number;
|
|
7364
|
+
/** Hosted checkout opened through a merchant-authored auto-redirect link.
|
|
7365
|
+
* Absent on routers predating DeloPay-net/delopay-backend#1768. */
|
|
7366
|
+
auto_redirect?: number;
|
|
7364
7367
|
/** API / server-initiated. */
|
|
7365
7368
|
api: number;
|
|
7366
7369
|
dashboard: number;
|
|
@@ -10140,7 +10143,8 @@ interface StripeHostedConfirmRequest {
|
|
|
10140
10143
|
confirmation_token?: string | null;
|
|
10141
10144
|
/**
|
|
10142
10145
|
* The acquisition channel the checkout reports on the Stripe return URL
|
|
10143
|
-
* (`hosted_checkout` or
|
|
10146
|
+
* (`hosted_checkout`, `hosted_checkout_iframe`, or
|
|
10147
|
+
* `hosted_checkout_auto_redirect`).
|
|
10144
10148
|
*/
|
|
10145
10149
|
pcs?: string | null;
|
|
10146
10150
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6938,7 +6938,7 @@ type AnalyticsGranularity = 'day' | 'hour' | '30m' | '15m' | '5m';
|
|
|
6938
6938
|
/** The dashboards' four outcomes; `open` is processing + awaiting action. */
|
|
6939
6939
|
type AnalyticsOutcome = 'success' | 'open' | 'failed' | 'void';
|
|
6940
6940
|
/** Checkout channel token, as the device dashboard's channel series names them. */
|
|
6941
|
-
type AnalyticsChannel = 'hosted' | 'embedded' | 'api' | 'dashboard' | 'sdk' | 'unknown';
|
|
6941
|
+
type AnalyticsChannel = 'hosted' | 'embedded' | 'auto_redirect' | 'api' | 'dashboard' | 'sdk' | 'unknown';
|
|
6942
6942
|
/** Sort keys of the payments drill (`GET /analytics/scope/transactions`). */
|
|
6943
6943
|
type ScopeDrillSortKey = 'created_at' | 'payment_created_at' | 'amount' | 'status' | 'connector' | 'method';
|
|
6944
6944
|
/** Sort keys of the geo and device drills: the payments keys plus `time_to_pay`. */
|
|
@@ -7361,6 +7361,9 @@ interface DeviceChannelBucket {
|
|
|
7361
7361
|
hosted: number;
|
|
7362
7362
|
/** Hosted checkout embedded in the merchant's page. */
|
|
7363
7363
|
embedded: number;
|
|
7364
|
+
/** Hosted checkout opened through a merchant-authored auto-redirect link.
|
|
7365
|
+
* Absent on routers predating DeloPay-net/delopay-backend#1768. */
|
|
7366
|
+
auto_redirect?: number;
|
|
7364
7367
|
/** API / server-initiated. */
|
|
7365
7368
|
api: number;
|
|
7366
7369
|
dashboard: number;
|
|
@@ -10140,7 +10143,8 @@ interface StripeHostedConfirmRequest {
|
|
|
10140
10143
|
confirmation_token?: string | null;
|
|
10141
10144
|
/**
|
|
10142
10145
|
* The acquisition channel the checkout reports on the Stripe return URL
|
|
10143
|
-
* (`hosted_checkout` or
|
|
10146
|
+
* (`hosted_checkout`, `hosted_checkout_iframe`, or
|
|
10147
|
+
* `hosted_checkout_auto_redirect`).
|
|
10144
10148
|
*/
|
|
10145
10149
|
pcs?: string | null;
|
|
10146
10150
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delopay/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.175.0",
|
|
4
4
|
"description": "Official Delopay TypeScript SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,21 +32,6 @@
|
|
|
32
32
|
"files": [
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build": "tsup",
|
|
37
|
-
"prepublishOnly": "pnpm check && 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
|
-
"gen:parity-corpus": "npx tsx scripts/gen-custom-field-parity-corpus.ts ../delopay-backend/crates/router/src/core/payment_link/custom_fields_parity_corpus.json"
|
|
49
|
-
},
|
|
50
35
|
"devDependencies": {
|
|
51
36
|
"@eslint/js": "^10.0.1",
|
|
52
37
|
"@types/node": "^25.6.0",
|
|
@@ -61,5 +46,19 @@
|
|
|
61
46
|
"engines": {
|
|
62
47
|
"node": ">=18.0.0"
|
|
63
48
|
},
|
|
64
|
-
"license": "MIT"
|
|
65
|
-
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"scripts": {
|
|
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
|
+
"gen:parity-corpus": "npx tsx scripts/gen-custom-field-parity-corpus.ts ../delopay-backend/crates/router/src/core/payment_link/custom_fields_parity_corpus.json"
|
|
63
|
+
}
|
|
64
|
+
}
|