@delopay/sdk 0.308.0 → 0.312.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
@@ -4983,6 +4983,31 @@ var Users = class {
4983
4983
  async deletePreference(key) {
4984
4984
  return this.request("DELETE", `/user/preferences/${encodeURIComponent(key)}`);
4985
4985
  }
4986
+ /**
4987
+ * The caller's guided dashboard tour in the session's scope: their progress,
4988
+ * whether to offer the tour now, and their current and acknowledged access.
4989
+ * Progress is kept per merchant, or per shop for a user whose role is limited
4990
+ * to shops; the scope comes from the session. Login JWT only.
4991
+ *
4992
+ * `GET /user/dashboard-tour`
4993
+ */
4994
+ async getDashboardTour() {
4995
+ return this.request("GET", "/user/dashboard-tour");
4996
+ }
4997
+ /**
4998
+ * Save the caller's tour progress in the session's scope and return the same
4999
+ * body as {@link Users.getDashboardTour}. `completed` and `skipped` are added
5000
+ * to the stored ones unless `restart` is set; `active`, `baseline` and
5001
+ * `offer_handled_at` replace them. `acknowledge_access: true` stores the
5002
+ * access the server computes as acknowledged. Unknown fields, malformed step
5003
+ * ids or baselines, and more than 300 steps per list are refused; so is any
5004
+ * save while acting as another user (`read_only`). Login JWT only.
5005
+ *
5006
+ * `PUT /user/dashboard-tour`
5007
+ */
5008
+ async updateDashboardTour(params) {
5009
+ return this.request("PUT", "/user/dashboard-tour", { body: params });
5010
+ }
4986
5011
  /**
4987
5012
  * RFC 7396 merge-patch the caller's own user-scoped metadata bucket.
4988
5013
  * Returns the full user details, so callers can refresh their context
@@ -16533,11 +16558,13 @@ var AdminPortal = class {
16533
16558
  *
16534
16559
  * Server validates each origin: full origin (scheme + host[:port]),
16535
16560
  * no path/query/fragment, no wildcards.
16561
+ *
16562
+ * `POST /admin-portal/accounts/{merchantId}/business-profile/{profileId}/iframe-origins`
16536
16563
  */
16537
16564
  async updateShopIframeOrigins(merchantId, profileId, origins) {
16538
16565
  return this.request(
16539
16566
  "POST",
16540
- `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business_profile/${encodeURIComponent(profileId)}/iframe-origins`,
16567
+ `/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/iframe-origins`,
16541
16568
  { body: { iframe_allowed_origins: origins } }
16542
16569
  );
16543
16570
  }