@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
|
@@ -2223,6 +2223,21 @@ var Users = class {
|
|
|
2223
2223
|
async inviteUsers(params) {
|
|
2224
2224
|
return this.request("POST", "/user/employees/invite", { body: params });
|
|
2225
2225
|
}
|
|
2226
|
+
/**
|
|
2227
|
+
* Add a team member directly, without sending an invite email.
|
|
2228
|
+
* `POST /user/employees/add`
|
|
2229
|
+
*
|
|
2230
|
+
* Unlike `inviteUsers`, the account is active immediately and you hand over
|
|
2231
|
+
* the credentials yourself. Omit `password` to have the server generate one
|
|
2232
|
+
* and return it once in `password` on the response; supply your own and it is
|
|
2233
|
+
* not echoed back. Either way the member must change it on first sign-in.
|
|
2234
|
+
*
|
|
2235
|
+
* Same role rules as invite: you cannot grant a role above your own, and a
|
|
2236
|
+
* shop-scoped caller can only target their own shop.
|
|
2237
|
+
*/
|
|
2238
|
+
async addUser(params) {
|
|
2239
|
+
return this.request("POST", "/user/employees/add", { body: params });
|
|
2240
|
+
}
|
|
2226
2241
|
async acceptInvitation(params) {
|
|
2227
2242
|
return this.request("POST", "/user/employees/invite/accept", { body: params });
|
|
2228
2243
|
}
|
|
@@ -4106,4 +4121,4 @@ export {
|
|
|
4106
4121
|
applyBrandingVariables,
|
|
4107
4122
|
shadowFor
|
|
4108
4123
|
};
|
|
4109
|
-
//# sourceMappingURL=chunk-
|
|
4124
|
+
//# sourceMappingURL=chunk-3NNYGK5Z.js.map
|