@delopay/sdk 0.210.0 → 0.211.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-IFP4THPD.js → chunk-2OYT52HK.js} +17 -1
- package/dist/chunk-2OYT52HK.js.map +1 -0
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +84 -1
- package/dist/index.d.ts +84 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +16 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-IFP4THPD.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -4395,6 +4395,22 @@ var Users = class {
|
|
|
4395
4395
|
async changeMemberScope(params) {
|
|
4396
4396
|
return this.request("POST", "/user/employees/change-scope", { body: params });
|
|
4397
4397
|
}
|
|
4398
|
+
/**
|
|
4399
|
+
* Set or clear when a team member's access to your merchant ends.
|
|
4400
|
+
* `POST /user/employees/update-expiry`
|
|
4401
|
+
*
|
|
4402
|
+
* Every merchant-, shop- and project-level role the member holds in your
|
|
4403
|
+
* merchant, accepted or still an invitation, gets the same `expires_at`.
|
|
4404
|
+
* From that instant the roles grant nothing: every request, sign-in, token
|
|
4405
|
+
* refresh and switch made with them is refused, and `listUsersInLineage`
|
|
4406
|
+
* reports the instant in `MinimalRoleInfo.expires_at`. Send `null` to remove
|
|
4407
|
+
* the expiry. A shop-level caller reaches only members whose every role is
|
|
4408
|
+
* on its own shop. A refusal is a `UR_70` error whose `data` is an
|
|
4409
|
+
* {@link AccessExpiryRefusal}.
|
|
4410
|
+
*/
|
|
4411
|
+
async updateMemberExpiry(params) {
|
|
4412
|
+
return this.request("POST", "/user/employees/update-expiry", { body: params });
|
|
4413
|
+
}
|
|
4398
4414
|
/**
|
|
4399
4415
|
* One member of your merchant, with the person fields the member list
|
|
4400
4416
|
* omits. `GET /user/employees/{user_id}/details`
|