@delopay/sdk 0.302.0 → 0.305.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
@@ -5979,6 +5979,34 @@ var Analytics = class {
5979
5979
  query: params
5980
5980
  });
5981
5981
  }
5982
+ /**
5983
+ * Period Reports: the scoped daily series, pinned exactly like `scope`, but
5984
+ * gated on the Period Reports permission area instead of Payment
5985
+ * Performance. Pass `timezone` and each day bucket is a local calendar day,
5986
+ * which sums exactly into calendar weeks and months. Answers only the
5987
+ * `series`, `previous` and `children` blocks and ignores country and device
5988
+ * filters. Accepts a dashboard session or an API key, including a
5989
+ * `statistics_read` key. `GET /analytics/reports`
5990
+ */
5991
+ async reports(params) {
5992
+ return this.request("GET", "/analytics/reports", {
5993
+ query: params
5994
+ });
5995
+ }
5996
+ /**
5997
+ * Shop comparison: one series per shop over one window, with whole-window
5998
+ * and previous-window totals, so shops can be drawn side by side. Pinned
5999
+ * server-side to your own merchant (`merchant_id` is ignored), and to your
6000
+ * single shop for a shop-scoped user; `project_id` / `shop_id` narrow it.
6001
+ * Shops without activity are included, sorted by name. Hourly buckets are
6002
+ * refused for windows over 7 days. Accepts an API key like `scope`.
6003
+ * `GET /analytics/shops`
6004
+ */
6005
+ async shops(params) {
6006
+ return this.request("GET", "/analytics/shops", {
6007
+ query: params
6008
+ });
6009
+ }
5982
6010
  /**
5983
6011
  * Device analytics over the canonical client-context observation per
5984
6012
  * payment (browser/platform families, device classes and models, checkout