@appconda/nextjs 1.0.99 → 1.0.101
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/actions/auth.d.ts +1 -1
- package/dist/actions/auth.js +2 -4
- package/dist/actions/authOptions.js +2 -1
- package/dist/actions/nodes.d.ts +4 -0
- package/dist/actions/nodes.js +15 -0
- package/dist/enums/authentication-factor.d.ts +6 -0
- package/dist/enums/authentication-factor.js +7 -0
- package/dist/enums/authenticator-type.d.ts +3 -0
- package/dist/enums/authenticator-type.js +4 -0
- package/dist/enums/o-auth-provider.d.ts +41 -0
- package/dist/enums/o-auth-provider.js +42 -0
- package/dist/modules/tenant/actions.d.ts +3 -3
- package/dist/modules/tenant/actions.js +2 -2
- package/dist/services/account.d.ts +530 -0
- package/dist/services/account.js +1259 -0
- package/dist/services/node.d.ts +5 -0
- package/dist/services/node.js +11 -0
- package/package.json +2 -1
- package/src/actions/auth.ts +1 -1
- package/src/actions/authOptions.ts +1 -0
- package/src/modules/tenant/actions.ts +1 -2
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ServiceClient } from "../service-client";
|
2
|
+
export class Node extends ServiceClient {
|
3
|
+
getServiceName() {
|
4
|
+
return 'com.appconda.service.node';
|
5
|
+
}
|
6
|
+
// @Cache()
|
7
|
+
async GetAllNodes(isPublic) {
|
8
|
+
const payload = {};
|
9
|
+
return await this.actionCall('GetAllNodes', payload);
|
10
|
+
}
|
11
|
+
}
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@appconda/nextjs",
|
3
3
|
"homepage": "https://appconda.io/support",
|
4
4
|
"description": "Appconda is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
5
|
-
"version": "1.0.
|
5
|
+
"version": "1.0.101",
|
6
6
|
"license": "BSD-3-Clause",
|
7
7
|
"main": "dist/index.js",
|
8
8
|
"types": "dist/index.d.ts",
|
@@ -24,6 +24,7 @@
|
|
24
24
|
"jsdelivr": "dist/iife/sdk.js",
|
25
25
|
"unpkg": "dist/iife/sdk.js",
|
26
26
|
"dependencies": {
|
27
|
+
"@t3-oss/env-nextjs": "^0.12.0",
|
27
28
|
"jsonwebtoken": "^9.0.2",
|
28
29
|
"next": "^15.2.3",
|
29
30
|
"next-auth": "^4.24.11",
|
package/src/actions/auth.ts
CHANGED
@@ -66,6 +66,7 @@ export const authOptions = (() => {
|
|
66
66
|
backupCode: { label: "Backup Code", type: "input", placeholder: "Two-factor backup code" },
|
67
67
|
},
|
68
68
|
async authorize(credentials, _req) {
|
69
|
+
debugger;
|
69
70
|
let user;
|
70
71
|
const appcondaSession = await signIn({ userName: credentials?.email as string, password: credentials?.password as string });
|
71
72
|
|
@@ -1,8 +1,7 @@
|
|
1
1
|
'use server';
|
2
|
-
|
3
|
-
import { getSDKForCurrentUser } from "@appconda/nextjs";
|
4
2
|
import { z } from "zod";
|
5
3
|
import { actionClient } from "../../actions/actionClient";
|
4
|
+
import { getSDKForCurrentUser } from "../../getSDKForCurrentUser";
|
6
5
|
|
7
6
|
const getTenantActionSchema = z.object({
|
8
7
|
tenantId: z.string()
|