@adminforth/email-invite 1.0.18 → 1.0.20
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/index.js +1 -2
- package/index.ts +1 -2
- package/package.json +3 -2
- package/types.ts +3 -1
package/dist/index.js
CHANGED
|
@@ -244,7 +244,7 @@ export default class EmailInvitePlugin extends AdminForthPlugin {
|
|
|
244
244
|
server.endpoint({
|
|
245
245
|
method: 'POST',
|
|
246
246
|
path: `/plugin/${this.pluginInstanceId}/resend-invite`,
|
|
247
|
-
handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body, adminUser
|
|
247
|
+
handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body, adminUser }) {
|
|
248
248
|
const { recordId } = body;
|
|
249
249
|
try {
|
|
250
250
|
// Get the user record
|
|
@@ -259,7 +259,6 @@ export default class EmailInvitePlugin extends AdminForthPlugin {
|
|
|
259
259
|
record: userRecord,
|
|
260
260
|
adminUser,
|
|
261
261
|
adminforth: this.adminforth,
|
|
262
|
-
extra
|
|
263
262
|
});
|
|
264
263
|
return { ok: true };
|
|
265
264
|
}
|
package/index.ts
CHANGED
|
@@ -304,7 +304,7 @@ export default class EmailInvitePlugin extends AdminForthPlugin {
|
|
|
304
304
|
server.endpoint({
|
|
305
305
|
method: 'POST',
|
|
306
306
|
path: `/plugin/${this.pluginInstanceId}/resend-invite`,
|
|
307
|
-
handler: async ({ body, adminUser
|
|
307
|
+
handler: async ({ body, adminUser }) => {
|
|
308
308
|
const { recordId } = body;
|
|
309
309
|
|
|
310
310
|
try {
|
|
@@ -321,7 +321,6 @@ export default class EmailInvitePlugin extends AdminForthPlugin {
|
|
|
321
321
|
record: userRecord,
|
|
322
322
|
adminUser,
|
|
323
323
|
adminforth: this.adminforth,
|
|
324
|
-
extra
|
|
325
324
|
});
|
|
326
325
|
|
|
327
326
|
return { ok: true };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/email-invite",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
"description": "Email invite plugin for adminforth",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^22.10.7",
|
|
21
|
+
"adminforth": "^2.35.0",
|
|
21
22
|
"semantic-release": "^24.2.1",
|
|
22
23
|
"semantic-release-slack-bot": "^4.0.2",
|
|
23
24
|
"typescript": "^5.7.3"
|
|
24
25
|
},
|
|
25
26
|
"peerDependencies": {
|
|
26
|
-
"adminforth": "^2.
|
|
27
|
+
"adminforth": "^2.35.0"
|
|
27
28
|
},
|
|
28
29
|
"publishConfig": {
|
|
29
30
|
"access": "public"
|
package/types.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { EmailAdapter } from "adminforth";
|
|
2
|
+
import {type PluginsCommonOptions } from "adminforth";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
|
|
5
|
+
export interface PluginOptions extends PluginsCommonOptions {
|
|
4
6
|
/**
|
|
5
7
|
* Field name in auth resource which contains email
|
|
6
8
|
*/
|