@delopay/sdk 0.57.0 → 0.58.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-3NNYGK5Z.js → chunk-2ZY2CLJC.js} +13 -1
- package/dist/chunk-2ZY2CLJC.js.map +1 -0
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -3
- package/dist/index.d.ts +36 -3
- package/dist/index.js +1 -1
- package/dist/internal.cjs +12 -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-3NNYGK5Z.js.map +0 -1
|
@@ -2309,9 +2309,21 @@ var Users = class {
|
|
|
2309
2309
|
async listUserRoles(params) {
|
|
2310
2310
|
return this.request("POST", "/user/employees", { body: params });
|
|
2311
2311
|
}
|
|
2312
|
+
/**
|
|
2313
|
+
* Change a team member's role. `POST /user/employees/update-role`
|
|
2314
|
+
*
|
|
2315
|
+
* Pass `profile_id` to name the shop when managing a shop's team as a
|
|
2316
|
+
* merchant-scoped admin — see {@link UpdateUserRoleRequest.profile_id}.
|
|
2317
|
+
*/
|
|
2312
2318
|
async updateUserRole(params) {
|
|
2313
2319
|
return this.request("POST", "/user/employees/update-role", { body: params });
|
|
2314
2320
|
}
|
|
2321
|
+
/**
|
|
2322
|
+
* Remove a team member. `DELETE /user/employees/delete`
|
|
2323
|
+
*
|
|
2324
|
+
* Pass `profile_id` to name the shop when managing a shop's team as a
|
|
2325
|
+
* merchant-scoped admin — see {@link DeleteUserRoleRequest.profile_id}.
|
|
2326
|
+
*/
|
|
2315
2327
|
async deleteUserRole(params) {
|
|
2316
2328
|
return this.request("DELETE", "/user/employees/delete", { body: params });
|
|
2317
2329
|
}
|
|
@@ -4121,4 +4133,4 @@ export {
|
|
|
4121
4133
|
applyBrandingVariables,
|
|
4122
4134
|
shadowFor
|
|
4123
4135
|
};
|
|
4124
|
-
//# sourceMappingURL=chunk-
|
|
4136
|
+
//# sourceMappingURL=chunk-2ZY2CLJC.js.map
|