@delopay/sdk 0.302.0 → 0.304.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,20 @@ var Analytics = class {
5997
5997
  query: params
5998
5998
  });
5999
5999
  }
6000
+ /**
6001
+ * Shop comparison: one series per shop over one window, with whole-window
6002
+ * and previous-window totals, so shops can be drawn side by side. Pinned
6003
+ * server-side to your own merchant (`merchant_id` is ignored), and to your
6004
+ * single shop for a shop-scoped user; `project_id` / `shop_id` narrow it.
6005
+ * Shops without activity are included, sorted by name. Hourly buckets are
6006
+ * refused for windows over 7 days. Accepts an API key like `scope`.
6007
+ * `GET /analytics/shops`
6008
+ */
6009
+ async shops(params) {
6010
+ return this.request("GET", "/analytics/shops", {
6011
+ query: params
6012
+ });
6013
+ }
6000
6014
  /**
6001
6015
  * Device analytics over the canonical client-context observation per
6002
6016
  * payment (browser/platform families, device classes and models, checkout
@@ -16195,6 +16209,38 @@ var AdminPortal = class {
16195
16209
  async deleteAnalyticsExclusion(id) {
16196
16210
  return this.request("DELETE", `/admin-portal/analytics/exclusions/${encodeURIComponent(id)}`);
16197
16211
  }
16212
+ /**
16213
+ * A merchant's own exclusions, read-only, each with the operator rule that
16214
+ * already holds it (`admin_rule_id`).
16215
+ * `GET /admin-portal/analytics/exclusions/merchant/{merchant_id}`
16216
+ */
16217
+ async listMerchantAnalyticsExclusions(merchantId) {
16218
+ return this.request(
16219
+ "GET",
16220
+ `/admin-portal/analytics/exclusions/merchant/${encodeURIComponent(merchantId)}`
16221
+ );
16222
+ }
16223
+ /**
16224
+ * Copy some of a merchant's rules into the operators' rules, each scoped to
16225
+ * that merchant. A copy is independent of its source; a rule an operator
16226
+ * rule already holds is skipped with a reason.
16227
+ * `POST /admin-portal/analytics/exclusions/copy`
16228
+ */
16229
+ async copyAnalyticsExclusions(body) {
16230
+ return this.request("POST", "/admin-portal/analytics/exclusions/copy", { body });
16231
+ }
16232
+ /**
16233
+ * Shop comparison for one merchant: one series per shop over one window,
16234
+ * with whole-window and previous-window totals. `merchant_id` is required
16235
+ * (400 without it). Same contract as the merchant surface's
16236
+ * `analytics.shops`. `GET /admin-portal/analytics/shops`
16237
+ */
16238
+ async analyticsShops(params) {
16239
+ const query = params;
16240
+ return this.request("GET", "/admin-portal/analytics/shops", {
16241
+ query
16242
+ });
16243
+ }
16198
16244
  /**
16199
16245
  * Device analytics over the canonical client-context observation per
16200
16246
  * payment, rooted at all merchants and drillable via `merchant_id` /