@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/index.cjs CHANGED
@@ -593,6 +593,24 @@ var Connectors = class {
593
593
  `/account/${encodeURIComponent(accountId)}/connectors/epayouts/catalog/defaults`
594
594
  );
595
595
  }
596
+ /**
597
+ * Every connector's native-pane capabilities, as the router itself knows
598
+ * them — which rails a connector supports, and which methods it can publish
599
+ * as a pane with the confirm routing keys each one carries.
600
+ *
601
+ * Capability facts only: no label, sublabel or category comes back. A
602
+ * designer renders a method's copy from its own locale files, keyed by
603
+ * `key`, and takes `payment_method` / `payment_method_type` from here
604
+ * verbatim rather than deriving them client-side.
605
+ *
606
+ * `GET /account/{accountId}/connectors/native-panes/catalog`
607
+ */
608
+ async getNativePanesCatalog(accountId) {
609
+ return this.request(
610
+ "GET",
611
+ `/account/${encodeURIComponent(accountId)}/connectors/native-panes/catalog`
612
+ );
613
+ }
596
614
  /**
597
615
  * Sweep the merchant's own e-Payouts module and return the rails it
598
616
  * actually has enabled. Server-side this makes many upstream calls, so it
@@ -3594,6 +3612,44 @@ var Analytics = class {
3594
3612
  query: params
3595
3613
  });
3596
3614
  }
3615
+ /**
3616
+ * Subscription analytics over `subscription` and `invoice`: estimated
3617
+ * recurring volume, the invoice funnel, movement (new / expansion /
3618
+ * contraction / churn), both processor axes, plan mix and the breakdown one
3619
+ * level below the scope. Pinned server-side to your own merchant and
3620
+ * drillable via `project_id` / `shop_id` exactly like `scope`.
3621
+ *
3622
+ * Half the figures are **stocks** — a snapshot at the window's end rather
3623
+ * than a sum over it — so `est_monthly_volume_usd` and `active` can match
3624
+ * across a 7-day and a 30-day window while `billed_volume_usd` does not.
3625
+ * Day granularity only. `GET /analytics/subscriptions`
3626
+ */
3627
+ async subscriptions(params) {
3628
+ return this.request("GET", "/analytics/subscriptions", {
3629
+ query: params
3630
+ });
3631
+ }
3632
+ /**
3633
+ * The billing cycles behind one clicked element of the subscription
3634
+ * dashboard: an invoice outcome, a processor slice on either axis, a plan
3635
+ * row, a subscription status, a movement component, a series bucket or a
3636
+ * breakdown row. Same window/scope/filter contract as `subscriptions`; 50
3637
+ * rows per page (`offset` for the next), newest first, with the full match
3638
+ * count alongside.
3639
+ *
3640
+ * A cycle that never reached a payment is listed too — that is what "still
3641
+ * unpaid" means — and carries its invoice id as `payment_id` with
3642
+ * `invoice_id` set to the same value, so you can always tell which you got.
3643
+ * `GET /analytics/subscriptions/list`
3644
+ */
3645
+ async subscriptionsList(params) {
3646
+ return this.request("GET", "/analytics/subscriptions/list", {
3647
+ // A discriminated union carries no index signature, so the widening
3648
+ // goes via `unknown` — the union is the point, and the query builder
3649
+ // only ever reads own enumerable keys.
3650
+ query: params
3651
+ });
3652
+ }
3597
3653
  /** Global search. `POST /analytics/search` */
3598
3654
  async search(params) {
3599
3655
  return this.request("POST", "/analytics/search", { body: params });