@delopay/sdk 0.56.0 → 0.57.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-3NNYGK5Z.js} +16 -1
- package/dist/chunk-3NNYGK5Z.js.map +1 -0
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -1
- package/dist/index.d.ts +49 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +15 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +8 -1
- package/dist/internal.d.ts +8 -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
|
}
|