@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.
@@ -0,0 +1,5 @@
1
+ import { ServiceClient } from "../service-client";
2
+ export declare class Node extends ServiceClient {
3
+ protected getServiceName(): string;
4
+ GetAllNodes(isPublic?: boolean): Promise<any[]>;
5
+ }
@@ -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.99",
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",
@@ -2,5 +2,5 @@ import { getServerSession } from "next-auth"
2
2
  import { authOptions } from "./authOptions";
3
3
 
4
4
  export const auth = async ()=> {
5
- return await getServerSession(authOptions());
5
+ return [];//await getServerSession(authOptions());
6
6
  }
@@ -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()