@delopay/sdk 0.104.0 → 0.106.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/{chunk-S22IPUCK.js → chunk-P56D2ZU2.js} +57 -1
- package/dist/chunk-P56D2ZU2.js.map +1 -0
- package/dist/index.cjs +56 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +428 -1
- package/dist/index.d.ts +428 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +91 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +27 -3
- package/dist/internal.d.ts +27 -3
- package/dist/internal.js +36 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-S22IPUCK.js.map +0 -1
|
@@ -478,6 +478,24 @@ var Connectors = class {
|
|
|
478
478
|
`/account/${encodeURIComponent(accountId)}/connectors/epayouts/catalog/defaults`
|
|
479
479
|
);
|
|
480
480
|
}
|
|
481
|
+
/**
|
|
482
|
+
* Every connector's native-pane capabilities, as the router itself knows
|
|
483
|
+
* them — which rails a connector supports, and which methods it can publish
|
|
484
|
+
* as a pane with the confirm routing keys each one carries.
|
|
485
|
+
*
|
|
486
|
+
* Capability facts only: no label, sublabel or category comes back. A
|
|
487
|
+
* designer renders a method's copy from its own locale files, keyed by
|
|
488
|
+
* `key`, and takes `payment_method` / `payment_method_type` from here
|
|
489
|
+
* verbatim rather than deriving them client-side.
|
|
490
|
+
*
|
|
491
|
+
* `GET /account/{accountId}/connectors/native-panes/catalog`
|
|
492
|
+
*/
|
|
493
|
+
async getNativePanesCatalog(accountId) {
|
|
494
|
+
return this.request(
|
|
495
|
+
"GET",
|
|
496
|
+
`/account/${encodeURIComponent(accountId)}/connectors/native-panes/catalog`
|
|
497
|
+
);
|
|
498
|
+
}
|
|
481
499
|
/**
|
|
482
500
|
* Sweep the merchant's own e-Payouts module and return the rails it
|
|
483
501
|
* actually has enabled. Server-side this makes many upstream calls, so it
|
|
@@ -3479,6 +3497,44 @@ var Analytics = class {
|
|
|
3479
3497
|
query: params
|
|
3480
3498
|
});
|
|
3481
3499
|
}
|
|
3500
|
+
/**
|
|
3501
|
+
* Subscription analytics over `subscription` and `invoice`: estimated
|
|
3502
|
+
* recurring volume, the invoice funnel, movement (new / expansion /
|
|
3503
|
+
* contraction / churn), both processor axes, plan mix and the breakdown one
|
|
3504
|
+
* level below the scope. Pinned server-side to your own merchant and
|
|
3505
|
+
* drillable via `project_id` / `shop_id` exactly like `scope`.
|
|
3506
|
+
*
|
|
3507
|
+
* Half the figures are **stocks** — a snapshot at the window's end rather
|
|
3508
|
+
* than a sum over it — so `est_monthly_volume_usd` and `active` can match
|
|
3509
|
+
* across a 7-day and a 30-day window while `billed_volume_usd` does not.
|
|
3510
|
+
* Day granularity only. `GET /analytics/subscriptions`
|
|
3511
|
+
*/
|
|
3512
|
+
async subscriptions(params) {
|
|
3513
|
+
return this.request("GET", "/analytics/subscriptions", {
|
|
3514
|
+
query: params
|
|
3515
|
+
});
|
|
3516
|
+
}
|
|
3517
|
+
/**
|
|
3518
|
+
* The billing cycles behind one clicked element of the subscription
|
|
3519
|
+
* dashboard: an invoice outcome, a processor slice on either axis, a plan
|
|
3520
|
+
* row, a subscription status, a movement component, a series bucket or a
|
|
3521
|
+
* breakdown row. Same window/scope/filter contract as `subscriptions`; 50
|
|
3522
|
+
* rows per page (`offset` for the next), newest first, with the full match
|
|
3523
|
+
* count alongside.
|
|
3524
|
+
*
|
|
3525
|
+
* A cycle that never reached a payment is listed too — that is what "still
|
|
3526
|
+
* unpaid" means — and carries its invoice id as `payment_id` with
|
|
3527
|
+
* `invoice_id` set to the same value, so you can always tell which you got.
|
|
3528
|
+
* `GET /analytics/subscriptions/list`
|
|
3529
|
+
*/
|
|
3530
|
+
async subscriptionsList(params) {
|
|
3531
|
+
return this.request("GET", "/analytics/subscriptions/list", {
|
|
3532
|
+
// A discriminated union carries no index signature, so the widening
|
|
3533
|
+
// goes via `unknown` — the union is the point, and the query builder
|
|
3534
|
+
// only ever reads own enumerable keys.
|
|
3535
|
+
query: params
|
|
3536
|
+
});
|
|
3537
|
+
}
|
|
3482
3538
|
/** Global search. `POST /analytics/search` */
|
|
3483
3539
|
async search(params) {
|
|
3484
3540
|
return this.request("POST", "/analytics/search", { body: params });
|
|
@@ -6480,4 +6536,4 @@ export {
|
|
|
6480
6536
|
focusedCheckoutUrl,
|
|
6481
6537
|
CHECKOUT_EVENT_KINDS
|
|
6482
6538
|
};
|
|
6483
|
-
//# sourceMappingURL=chunk-
|
|
6539
|
+
//# sourceMappingURL=chunk-P56D2ZU2.js.map
|