@delopay/sdk 0.56.1 → 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-G2TIZ4KS.js → chunk-2ZY2CLJC.js} +28 -1
- package/dist/chunk-2ZY2CLJC.js.map +1 -0
- package/dist/index.cjs +27 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +84 -3
- package/dist/index.d.ts +84 -3
- package/dist/index.js +1 -1
- package/dist/internal.cjs +27 -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-G2TIZ4KS.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2298,6 +2298,21 @@ var Users = class {
|
|
|
2298
2298
|
async inviteUsers(params) {
|
|
2299
2299
|
return this.request("POST", "/user/employees/invite", { body: params });
|
|
2300
2300
|
}
|
|
2301
|
+
/**
|
|
2302
|
+
* Add a team member directly, without sending an invite email.
|
|
2303
|
+
* `POST /user/employees/add`
|
|
2304
|
+
*
|
|
2305
|
+
* Unlike `inviteUsers`, the account is active immediately and you hand over
|
|
2306
|
+
* the credentials yourself. Omit `password` to have the server generate one
|
|
2307
|
+
* and return it once in `password` on the response; supply your own and it is
|
|
2308
|
+
* not echoed back. Either way the member must change it on first sign-in.
|
|
2309
|
+
*
|
|
2310
|
+
* Same role rules as invite: you cannot grant a role above your own, and a
|
|
2311
|
+
* shop-scoped caller can only target their own shop.
|
|
2312
|
+
*/
|
|
2313
|
+
async addUser(params) {
|
|
2314
|
+
return this.request("POST", "/user/employees/add", { body: params });
|
|
2315
|
+
}
|
|
2301
2316
|
async acceptInvitation(params) {
|
|
2302
2317
|
return this.request("POST", "/user/employees/invite/accept", { body: params });
|
|
2303
2318
|
}
|
|
@@ -2369,9 +2384,21 @@ var Users = class {
|
|
|
2369
2384
|
async listUserRoles(params) {
|
|
2370
2385
|
return this.request("POST", "/user/employees", { body: params });
|
|
2371
2386
|
}
|
|
2387
|
+
/**
|
|
2388
|
+
* Change a team member's role. `POST /user/employees/update-role`
|
|
2389
|
+
*
|
|
2390
|
+
* Pass `profile_id` to name the shop when managing a shop's team as a
|
|
2391
|
+
* merchant-scoped admin — see {@link UpdateUserRoleRequest.profile_id}.
|
|
2392
|
+
*/
|
|
2372
2393
|
async updateUserRole(params) {
|
|
2373
2394
|
return this.request("POST", "/user/employees/update-role", { body: params });
|
|
2374
2395
|
}
|
|
2396
|
+
/**
|
|
2397
|
+
* Remove a team member. `DELETE /user/employees/delete`
|
|
2398
|
+
*
|
|
2399
|
+
* Pass `profile_id` to name the shop when managing a shop's team as a
|
|
2400
|
+
* merchant-scoped admin — see {@link DeleteUserRoleRequest.profile_id}.
|
|
2401
|
+
*/
|
|
2375
2402
|
async deleteUserRole(params) {
|
|
2376
2403
|
return this.request("DELETE", "/user/employees/delete", { body: params });
|
|
2377
2404
|
}
|