@delopay/sdk 0.104.0 → 0.105.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-IAZ4NPT2.js} +39 -1
- package/dist/chunk-IAZ4NPT2.js.map +1 -0
- package/dist/index.cjs +38 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +370 -1
- package/dist/index.d.ts +370 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +73 -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
|
@@ -3479,6 +3479,44 @@ var Analytics = class {
|
|
|
3479
3479
|
query: params
|
|
3480
3480
|
});
|
|
3481
3481
|
}
|
|
3482
|
+
/**
|
|
3483
|
+
* Subscription analytics over `subscription` and `invoice`: estimated
|
|
3484
|
+
* recurring volume, the invoice funnel, movement (new / expansion /
|
|
3485
|
+
* contraction / churn), both processor axes, plan mix and the breakdown one
|
|
3486
|
+
* level below the scope. Pinned server-side to your own merchant and
|
|
3487
|
+
* drillable via `project_id` / `shop_id` exactly like `scope`.
|
|
3488
|
+
*
|
|
3489
|
+
* Half the figures are **stocks** — a snapshot at the window's end rather
|
|
3490
|
+
* than a sum over it — so `est_monthly_volume_usd` and `active` can match
|
|
3491
|
+
* across a 7-day and a 30-day window while `billed_volume_usd` does not.
|
|
3492
|
+
* Day granularity only. `GET /analytics/subscriptions`
|
|
3493
|
+
*/
|
|
3494
|
+
async subscriptions(params) {
|
|
3495
|
+
return this.request("GET", "/analytics/subscriptions", {
|
|
3496
|
+
query: params
|
|
3497
|
+
});
|
|
3498
|
+
}
|
|
3499
|
+
/**
|
|
3500
|
+
* The billing cycles behind one clicked element of the subscription
|
|
3501
|
+
* dashboard: an invoice outcome, a processor slice on either axis, a plan
|
|
3502
|
+
* row, a subscription status, a movement component, a series bucket or a
|
|
3503
|
+
* breakdown row. Same window/scope/filter contract as `subscriptions`; 50
|
|
3504
|
+
* rows per page (`offset` for the next), newest first, with the full match
|
|
3505
|
+
* count alongside.
|
|
3506
|
+
*
|
|
3507
|
+
* A cycle that never reached a payment is listed too — that is what "still
|
|
3508
|
+
* unpaid" means — and carries its invoice id as `payment_id` with
|
|
3509
|
+
* `invoice_id` set to the same value, so you can always tell which you got.
|
|
3510
|
+
* `GET /analytics/subscriptions/list`
|
|
3511
|
+
*/
|
|
3512
|
+
async subscriptionsList(params) {
|
|
3513
|
+
return this.request("GET", "/analytics/subscriptions/list", {
|
|
3514
|
+
// A discriminated union carries no index signature, so the widening
|
|
3515
|
+
// goes via `unknown` — the union is the point, and the query builder
|
|
3516
|
+
// only ever reads own enumerable keys.
|
|
3517
|
+
query: params
|
|
3518
|
+
});
|
|
3519
|
+
}
|
|
3482
3520
|
/** Global search. `POST /analytics/search` */
|
|
3483
3521
|
async search(params) {
|
|
3484
3522
|
return this.request("POST", "/analytics/search", { body: params });
|
|
@@ -6480,4 +6518,4 @@ export {
|
|
|
6480
6518
|
focusedCheckoutUrl,
|
|
6481
6519
|
CHECKOUT_EVENT_KINDS
|
|
6482
6520
|
};
|
|
6483
|
-
//# sourceMappingURL=chunk-
|
|
6521
|
+
//# sourceMappingURL=chunk-IAZ4NPT2.js.map
|