@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/internal.cjs CHANGED
@@ -5997,6 +5997,34 @@ var Analytics = class {
5997
5997
  query: params
5998
5998
  });
5999
5999
  }
6000
+ /**
6001
+ * Period Reports: the scoped daily series, pinned exactly like `scope`, but
6002
+ * gated on the Period Reports permission area instead of Payment
6003
+ * Performance. Pass `timezone` and each day bucket is a local calendar day,
6004
+ * which sums exactly into calendar weeks and months. Answers only the
6005
+ * `series`, `previous` and `children` blocks and ignores country and device
6006
+ * filters. Accepts a dashboard session or an API key, including a
6007
+ * `statistics_read` key. `GET /analytics/reports`
6008
+ */
6009
+ async reports(params) {
6010
+ return this.request("GET", "/analytics/reports", {
6011
+ query: params
6012
+ });
6013
+ }
6014
+ /**
6015
+ * Shop comparison: one series per shop over one window, with whole-window
6016
+ * and previous-window totals, so shops can be drawn side by side. Pinned
6017
+ * server-side to your own merchant (`merchant_id` is ignored), and to your
6018
+ * single shop for a shop-scoped user; `project_id` / `shop_id` narrow it.
6019
+ * Shops without activity are included, sorted by name. Hourly buckets are
6020
+ * refused for windows over 7 days. Accepts an API key like `scope`.
6021
+ * `GET /analytics/shops`
6022
+ */
6023
+ async shops(params) {
6024
+ return this.request("GET", "/analytics/shops", {
6025
+ query: params
6026
+ });
6027
+ }
6000
6028
  /**
6001
6029
  * Device analytics over the canonical client-context observation per
6002
6030
  * payment (browser/platform families, device classes and models, checkout
@@ -16195,6 +16223,38 @@ var AdminPortal = class {
16195
16223
  async deleteAnalyticsExclusion(id) {
16196
16224
  return this.request("DELETE", `/admin-portal/analytics/exclusions/${encodeURIComponent(id)}`);
16197
16225
  }
16226
+ /**
16227
+ * A merchant's own exclusions, read-only, each with the operator rule that
16228
+ * already holds it (`admin_rule_id`).
16229
+ * `GET /admin-portal/analytics/exclusions/merchant/{merchant_id}`
16230
+ */
16231
+ async listMerchantAnalyticsExclusions(merchantId) {
16232
+ return this.request(
16233
+ "GET",
16234
+ `/admin-portal/analytics/exclusions/merchant/${encodeURIComponent(merchantId)}`
16235
+ );
16236
+ }
16237
+ /**
16238
+ * Copy some of a merchant's rules into the operators' rules, each scoped to
16239
+ * that merchant. A copy is independent of its source; a rule an operator
16240
+ * rule already holds is skipped with a reason.
16241
+ * `POST /admin-portal/analytics/exclusions/copy`
16242
+ */
16243
+ async copyAnalyticsExclusions(body) {
16244
+ return this.request("POST", "/admin-portal/analytics/exclusions/copy", { body });
16245
+ }
16246
+ /**
16247
+ * Shop comparison for one merchant: one series per shop over one window,
16248
+ * with whole-window and previous-window totals. `merchant_id` is required
16249
+ * (400 without it). Same contract as the merchant surface's
16250
+ * `analytics.shops`. `GET /admin-portal/analytics/shops`
16251
+ */
16252
+ async analyticsShops(params) {
16253
+ const query = params;
16254
+ return this.request("GET", "/admin-portal/analytics/shops", {
16255
+ query
16256
+ });
16257
+ }
16198
16258
  /**
16199
16259
  * Device analytics over the canonical client-context observation per
16200
16260
  * payment, rooted at all merchants and drillable via `merchant_id` /