@delopay/sdk 0.95.0 → 0.96.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
@@ -3331,6 +3331,33 @@ var Analytics = class {
3331
3331
  query: params
3332
3332
  });
3333
3333
  }
3334
+ /**
3335
+ * Device analytics over the canonical client-context observation per
3336
+ * payment (browser/platform families, device classes and models, checkout
3337
+ * channel mix, time-to-pay), pinned server-side to your own merchant and
3338
+ * drillable via `project_id` / `shop_id` exactly like `scope`. Gated on the
3339
+ * client-context optimisation-use switch: when it is off the server answers
3340
+ * 200 with `enabled: false` and a caveat naming the switch.
3341
+ * `GET /analytics/devices`
3342
+ */
3343
+ async devices(params) {
3344
+ return this.request("GET", "/analytics/devices", {
3345
+ query: params
3346
+ });
3347
+ }
3348
+ /**
3349
+ * Geo analytics over the canonical client-context observation per payment:
3350
+ * country totals, city bubbles (IP mode), buyer languages, buyer-local
3351
+ * purchase hours and the IP-vs-billing mismatch share. `mode` selects the
3352
+ * location claim (`ip` default, `billing`); the two are never coalesced.
3353
+ * Same drill, window and gating contract as `devices`.
3354
+ * `GET /analytics/geo`
3355
+ */
3356
+ async geo(params) {
3357
+ return this.request("GET", "/analytics/geo", {
3358
+ query: params
3359
+ });
3360
+ }
3334
3361
  /** Global search. `POST /analytics/search` */
3335
3362
  async search(params) {
3336
3363
  return this.request("POST", "/analytics/search", { body: params });