@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/{chunk-P6A6B2ZR.js → chunk-FRYFAWLF.js} +26 -1
- package/dist/chunk-FRYFAWLF.js.map +1 -0
- package/dist/{index-R5RsXhoc.d.cts → index-LwbpNt0g.d.cts} +341 -1
- package/dist/{index-R5RsXhoc.d.ts → index-LwbpNt0g.d.ts} +341 -1
- package/dist/index.cjs +25 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +28 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +71 -3
- package/dist/internal.d.ts +71 -3
- package/dist/internal.js +4 -2
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-P6A6B2ZR.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -4965,6 +4965,31 @@ var Users = class {
|
|
|
4965
4965
|
async deletePreference(key) {
|
|
4966
4966
|
return this.request("DELETE", `/user/preferences/${encodeURIComponent(key)}`);
|
|
4967
4967
|
}
|
|
4968
|
+
/**
|
|
4969
|
+
* The caller's guided dashboard tour in the session's scope: their progress,
|
|
4970
|
+
* whether to offer the tour now, and their current and acknowledged access.
|
|
4971
|
+
* Progress is kept per merchant, or per shop for a user whose role is limited
|
|
4972
|
+
* to shops; the scope comes from the session. Login JWT only.
|
|
4973
|
+
*
|
|
4974
|
+
* `GET /user/dashboard-tour`
|
|
4975
|
+
*/
|
|
4976
|
+
async getDashboardTour() {
|
|
4977
|
+
return this.request("GET", "/user/dashboard-tour");
|
|
4978
|
+
}
|
|
4979
|
+
/**
|
|
4980
|
+
* Save the caller's tour progress in the session's scope and return the same
|
|
4981
|
+
* body as {@link Users.getDashboardTour}. `completed` and `skipped` are added
|
|
4982
|
+
* to the stored ones unless `restart` is set; `active`, `baseline` and
|
|
4983
|
+
* `offer_handled_at` replace them. `acknowledge_access: true` stores the
|
|
4984
|
+
* access the server computes as acknowledged. Unknown fields, malformed step
|
|
4985
|
+
* ids or baselines, and more than 300 steps per list are refused; so is any
|
|
4986
|
+
* save while acting as another user (`read_only`). Login JWT only.
|
|
4987
|
+
*
|
|
4988
|
+
* `PUT /user/dashboard-tour`
|
|
4989
|
+
*/
|
|
4990
|
+
async updateDashboardTour(params) {
|
|
4991
|
+
return this.request("PUT", "/user/dashboard-tour", { body: params });
|
|
4992
|
+
}
|
|
4968
4993
|
/**
|
|
4969
4994
|
* RFC 7396 merge-patch the caller's own user-scoped metadata bucket.
|
|
4970
4995
|
* Returns the full user details, so callers can refresh their context
|