@insignia-education/api-sdk-js 0.16.23 → 0.16.25
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/package.json +1 -1
- package/src/api/v1/Users.js +3 -0
package/package.json
CHANGED
package/src/api/v1/Users.js
CHANGED
|
@@ -260,6 +260,9 @@ export default class Users {
|
|
|
260
260
|
/** Admin-only: lifts a hard block. */
|
|
261
261
|
unblock(userId) { return this.#client.post(`/users/${userId}/unblock`); }
|
|
262
262
|
|
|
263
|
+
/** Sellers+: merges fromUserId's data into toUserId, then hard-blocks and blacklists fromUserId. */
|
|
264
|
+
unify(fromUserId, toUserId) { return this.#client.post(`/users/${fromUserId}/unify`, { to_id: toUserId }); }
|
|
265
|
+
|
|
263
266
|
/**
|
|
264
267
|
* GDPR erasure request — self-service or sales-and-above. `data` is either
|
|
265
268
|
* `{ password, captcha_token }` or `{ webauthn_credential }`, same step-up
|