@appconda/nextjs 1.0.95 → 1.0.97
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/actionClient.d.ts +8 -2
- package/dist/modules/account/actions.d.ts +39 -1
- package/dist/modules/account/actions.js +1 -1
- package/dist/modules/agent/action.d.ts +74 -5
- package/dist/modules/ai/node/actions.d.ts +4 -1
- package/dist/modules/tenant/actions.d.ts +66 -3
- package/dist/modules/waitlist/action.d.ts +97 -6
- package/package.json +1 -1
- package/src/actions/actionClient.ts +2 -2
- package/src/modules/account/actions.ts +1 -1
- package/src/modules/ai/node/actions.ts +0 -1
@@ -1,2 +1,8 @@
|
|
1
|
-
export declare const actionClient: () => any
|
2
|
-
|
1
|
+
export declare const actionClient: () => import("next-safe-action").SafeActionClient<unknown, import("next-safe-action").DVES, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, any, {}, undefined, undefined, undefined, readonly [], {
|
2
|
+
formErrors: string[];
|
3
|
+
fieldErrors: {};
|
4
|
+
}, readonly []>;
|
5
|
+
export declare const authenticatedActionClient: () => import("next-safe-action").SafeActionClient<unknown, import("next-safe-action").DVES, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, any, {}, undefined, undefined, undefined, readonly [], {
|
6
|
+
formErrors: string[];
|
7
|
+
fieldErrors: {};
|
8
|
+
}, readonly []>;
|
@@ -1 +1,39 @@
|
|
1
|
-
|
1
|
+
import { User } from "./types";
|
2
|
+
export declare const CreateUser: import("next-safe-action").SafeActionFn<unknown, import("zod").ZodObject<{
|
3
|
+
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
4
|
+
email: import("zod").ZodString;
|
5
|
+
password: import("zod").ZodString;
|
6
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
7
|
+
}, "strip", import("zod").ZodTypeAny, {
|
8
|
+
name?: string;
|
9
|
+
password?: string;
|
10
|
+
email?: string;
|
11
|
+
userId?: string;
|
12
|
+
}, {
|
13
|
+
name?: string;
|
14
|
+
password?: string;
|
15
|
+
email?: string;
|
16
|
+
userId?: string;
|
17
|
+
}>, readonly [], {
|
18
|
+
_errors?: string[];
|
19
|
+
name?: {
|
20
|
+
_errors?: string[];
|
21
|
+
};
|
22
|
+
password?: {
|
23
|
+
_errors?: string[];
|
24
|
+
};
|
25
|
+
email?: {
|
26
|
+
_errors?: string[];
|
27
|
+
};
|
28
|
+
userId?: {
|
29
|
+
_errors?: string[];
|
30
|
+
};
|
31
|
+
} | {
|
32
|
+
formErrors: string[];
|
33
|
+
fieldErrors: {
|
34
|
+
name?: string[];
|
35
|
+
password?: string[];
|
36
|
+
email?: string[];
|
37
|
+
userId?: string[];
|
38
|
+
};
|
39
|
+
}, readonly [], User>;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import { actionClient } from "../../actions/actionClient";
|
3
3
|
import { getSDKForCurrentUser } from "../../getSDKForCurrentUser";
|
4
4
|
import { CreateUserSchema } from "./schema";
|
5
|
-
export const CreateUser = actionClient
|
5
|
+
export const CreateUser = actionClient()
|
6
6
|
.schema(CreateUserSchema)
|
7
7
|
.action(async ({ parsedInput }) => {
|
8
8
|
try {
|
@@ -1,5 +1,74 @@
|
|
1
|
-
|
2
|
-
export declare const
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import { Agent, AIModel } from './types';
|
2
|
+
export declare const ListAgents: import("next-safe-action").SafeActionFn<unknown, undefined, readonly [], {
|
3
|
+
formErrors: string[];
|
4
|
+
fieldErrors: {};
|
5
|
+
}, readonly [], Agent[]>;
|
6
|
+
export declare const CreateAgent: import("next-safe-action").SafeActionFn<unknown, import("zod").ZodObject<{
|
7
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
8
|
+
name: import("zod").ZodString;
|
9
|
+
modelId: import("zod").ZodString;
|
10
|
+
}, "strip", import("zod").ZodTypeAny, {
|
11
|
+
name?: string;
|
12
|
+
id?: string;
|
13
|
+
modelId?: string;
|
14
|
+
}, {
|
15
|
+
name?: string;
|
16
|
+
id?: string;
|
17
|
+
modelId?: string;
|
18
|
+
}>, readonly [], {
|
19
|
+
_errors?: string[];
|
20
|
+
name?: {
|
21
|
+
_errors?: string[];
|
22
|
+
};
|
23
|
+
id?: {
|
24
|
+
_errors?: string[];
|
25
|
+
};
|
26
|
+
modelId?: {
|
27
|
+
_errors?: string[];
|
28
|
+
};
|
29
|
+
} | {
|
30
|
+
formErrors: string[];
|
31
|
+
fieldErrors: {
|
32
|
+
name?: string[];
|
33
|
+
id?: string[];
|
34
|
+
modelId?: string[];
|
35
|
+
};
|
36
|
+
}, readonly [], Agent>;
|
37
|
+
export declare const GetAgent: import("next-safe-action").SafeActionFn<unknown, import("zod").ZodObject<{
|
38
|
+
id: import("zod").ZodString;
|
39
|
+
}, "strip", import("zod").ZodTypeAny, {
|
40
|
+
id?: string;
|
41
|
+
}, {
|
42
|
+
id?: string;
|
43
|
+
}>, readonly [], {
|
44
|
+
_errors?: string[];
|
45
|
+
id?: {
|
46
|
+
_errors?: string[];
|
47
|
+
};
|
48
|
+
} | {
|
49
|
+
formErrors: string[];
|
50
|
+
fieldErrors: {
|
51
|
+
id?: string[];
|
52
|
+
};
|
53
|
+
}, readonly [], Agent>;
|
54
|
+
export declare const ListModelProviders: import("next-safe-action").SafeActionFn<unknown, undefined, readonly [], {
|
55
|
+
formErrors: string[];
|
56
|
+
fieldErrors: {};
|
57
|
+
}, readonly [], Agent[]>;
|
58
|
+
export declare const ListModels: import("next-safe-action").SafeActionFn<unknown, import("zod").ZodObject<{
|
59
|
+
modelProviderId: import("zod").ZodString;
|
60
|
+
}, "strip", import("zod").ZodTypeAny, {
|
61
|
+
modelProviderId?: string;
|
62
|
+
}, {
|
63
|
+
modelProviderId?: string;
|
64
|
+
}>, readonly [], {
|
65
|
+
_errors?: string[];
|
66
|
+
modelProviderId?: {
|
67
|
+
_errors?: string[];
|
68
|
+
};
|
69
|
+
} | {
|
70
|
+
formErrors: string[];
|
71
|
+
fieldErrors: {
|
72
|
+
modelProviderId?: string[];
|
73
|
+
};
|
74
|
+
}, readonly [], AIModel[]>;
|
@@ -1,3 +1,66 @@
|
|
1
|
-
|
2
|
-
export declare const
|
3
|
-
|
1
|
+
import { z } from "zod";
|
2
|
+
export declare const getTenantAction: import("next-safe-action").SafeActionFn<unknown, z.ZodObject<{
|
3
|
+
tenantId: z.ZodString;
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
5
|
+
tenantId?: string;
|
6
|
+
}, {
|
7
|
+
tenantId?: string;
|
8
|
+
}>, readonly [], {
|
9
|
+
_errors?: string[];
|
10
|
+
tenantId?: {
|
11
|
+
_errors?: string[];
|
12
|
+
};
|
13
|
+
} | {
|
14
|
+
formErrors: string[];
|
15
|
+
fieldErrors: {
|
16
|
+
tenantId?: string[];
|
17
|
+
};
|
18
|
+
}, readonly [], import("@appconda/nextjs").Models.Tenant>;
|
19
|
+
export declare const listUserTenantsAction: import("next-safe-action").SafeActionFn<unknown, z.ZodObject<{
|
20
|
+
userId: z.ZodString;
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
22
|
+
userId?: string;
|
23
|
+
}, {
|
24
|
+
userId?: string;
|
25
|
+
}>, readonly [], {
|
26
|
+
_errors?: string[];
|
27
|
+
userId?: {
|
28
|
+
_errors?: string[];
|
29
|
+
};
|
30
|
+
} | {
|
31
|
+
formErrors: string[];
|
32
|
+
fieldErrors: {
|
33
|
+
userId?: string[];
|
34
|
+
};
|
35
|
+
}, readonly [], import("@appconda/nextjs").Models.TenantUserList>;
|
36
|
+
export declare const createTenantAction: import("next-safe-action").SafeActionFn<unknown, z.ZodObject<{
|
37
|
+
id: z.ZodString;
|
38
|
+
name: z.ZodString;
|
39
|
+
slug: z.ZodString;
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
41
|
+
name?: string;
|
42
|
+
id?: string;
|
43
|
+
slug?: string;
|
44
|
+
}, {
|
45
|
+
name?: string;
|
46
|
+
id?: string;
|
47
|
+
slug?: string;
|
48
|
+
}>, readonly [], {
|
49
|
+
_errors?: string[];
|
50
|
+
name?: {
|
51
|
+
_errors?: string[];
|
52
|
+
};
|
53
|
+
id?: {
|
54
|
+
_errors?: string[];
|
55
|
+
};
|
56
|
+
slug?: {
|
57
|
+
_errors?: string[];
|
58
|
+
};
|
59
|
+
} | {
|
60
|
+
formErrors: string[];
|
61
|
+
fieldErrors: {
|
62
|
+
name?: string[];
|
63
|
+
id?: string[];
|
64
|
+
slug?: string[];
|
65
|
+
};
|
66
|
+
}, readonly [], import("@appconda/nextjs").Models.Tenant>;
|
@@ -1,6 +1,97 @@
|
|
1
|
-
|
2
|
-
export declare const
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import { Waitlist, WaitlistSignup } from './types';
|
2
|
+
export declare const ListWaitlistSignups: import("next-safe-action").SafeActionFn<unknown, import("zod").ZodObject<{
|
3
|
+
waitlistId: import("zod").ZodString;
|
4
|
+
}, "strip", import("zod").ZodTypeAny, {
|
5
|
+
waitlistId?: string;
|
6
|
+
}, {
|
7
|
+
waitlistId?: string;
|
8
|
+
}>, readonly [], {
|
9
|
+
_errors?: string[];
|
10
|
+
waitlistId?: {
|
11
|
+
_errors?: string[];
|
12
|
+
};
|
13
|
+
} | {
|
14
|
+
formErrors: string[];
|
15
|
+
fieldErrors: {
|
16
|
+
waitlistId?: string[];
|
17
|
+
};
|
18
|
+
}, readonly [], WaitlistSignup[]>;
|
19
|
+
export declare const ListWaitlists: import("next-safe-action").SafeActionFn<unknown, undefined, readonly [], {
|
20
|
+
formErrors: string[];
|
21
|
+
fieldErrors: {};
|
22
|
+
}, readonly [], Waitlist[]>;
|
23
|
+
export declare const CreateWaitlist: import("next-safe-action").SafeActionFn<unknown, import("zod").ZodObject<{
|
24
|
+
name: import("zod").ZodString;
|
25
|
+
}, "strip", import("zod").ZodTypeAny, {
|
26
|
+
name?: string;
|
27
|
+
}, {
|
28
|
+
name?: string;
|
29
|
+
}>, readonly [], {
|
30
|
+
_errors?: string[];
|
31
|
+
name?: {
|
32
|
+
_errors?: string[];
|
33
|
+
};
|
34
|
+
} | {
|
35
|
+
formErrors: string[];
|
36
|
+
fieldErrors: {
|
37
|
+
name?: string[];
|
38
|
+
};
|
39
|
+
}, readonly [], Waitlist>;
|
40
|
+
export declare const CreateWaitlistSignup: import("next-safe-action").SafeActionFn<unknown, import("zod").ZodObject<{
|
41
|
+
waitlistId: import("zod").ZodString;
|
42
|
+
email: import("zod").ZodString;
|
43
|
+
}, "strip", import("zod").ZodTypeAny, {
|
44
|
+
email?: string;
|
45
|
+
waitlistId?: string;
|
46
|
+
}, {
|
47
|
+
email?: string;
|
48
|
+
waitlistId?: string;
|
49
|
+
}>, readonly [], {
|
50
|
+
_errors?: string[];
|
51
|
+
email?: {
|
52
|
+
_errors?: string[];
|
53
|
+
};
|
54
|
+
waitlistId?: {
|
55
|
+
_errors?: string[];
|
56
|
+
};
|
57
|
+
} | {
|
58
|
+
formErrors: string[];
|
59
|
+
fieldErrors: {
|
60
|
+
email?: string[];
|
61
|
+
waitlistId?: string[];
|
62
|
+
};
|
63
|
+
}, readonly [], WaitlistSignup>;
|
64
|
+
export declare const CreateWaitlistOffboardedSignup: import("next-safe-action").SafeActionFn<unknown, import("zod").ZodObject<{
|
65
|
+
waitlistSignupId: import("zod").ZodString;
|
66
|
+
}, "strip", import("zod").ZodTypeAny, {
|
67
|
+
waitlistSignupId?: string;
|
68
|
+
}, {
|
69
|
+
waitlistSignupId?: string;
|
70
|
+
}>, readonly [], {
|
71
|
+
_errors?: string[];
|
72
|
+
waitlistSignupId?: {
|
73
|
+
_errors?: string[];
|
74
|
+
};
|
75
|
+
} | {
|
76
|
+
formErrors: string[];
|
77
|
+
fieldErrors: {
|
78
|
+
waitlistSignupId?: string[];
|
79
|
+
};
|
80
|
+
}, readonly [], WaitlistSignup>;
|
81
|
+
export declare const ListWaitlistOffboardedSignups: import("next-safe-action").SafeActionFn<unknown, import("zod").ZodObject<{
|
82
|
+
waitlistId: import("zod").ZodString;
|
83
|
+
}, "strip", import("zod").ZodTypeAny, {
|
84
|
+
waitlistId?: string;
|
85
|
+
}, {
|
86
|
+
waitlistId?: string;
|
87
|
+
}>, readonly [], {
|
88
|
+
_errors?: string[];
|
89
|
+
waitlistId?: {
|
90
|
+
_errors?: string[];
|
91
|
+
};
|
92
|
+
} | {
|
93
|
+
formErrors: string[];
|
94
|
+
fieldErrors: {
|
95
|
+
waitlistId?: string[];
|
96
|
+
};
|
97
|
+
}, readonly [], WaitlistSignup>;
|
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.97",
|
6
6
|
"license": "BSD-3-Clause",
|
7
7
|
"main": "dist/index.js",
|
8
8
|
"types": "dist/index.d.ts",
|
@@ -6,7 +6,7 @@ import { AuthenticationError, AuthorizationError } from "../lib/errors";
|
|
6
6
|
|
7
7
|
|
8
8
|
export const actionClient = (() => {
|
9
|
-
let internalActionClient = null;
|
9
|
+
let internalActionClient: ReturnType<typeof createSafeActionClient> = null;
|
10
10
|
return () => {
|
11
11
|
if (internalActionClient == null) {
|
12
12
|
internalActionClient = createSafeActionClient({
|
@@ -34,7 +34,7 @@ export const actionClient = (() => {
|
|
34
34
|
})();
|
35
35
|
|
36
36
|
export const authenticatedActionClient = (() => {
|
37
|
-
let internalActionClient = null;
|
37
|
+
let internalActionClient: ReturnType<typeof createSafeActionClient> = null;
|
38
38
|
return () => {
|
39
39
|
if (internalActionClient == null) {
|
40
40
|
internalActionClient = actionClient().use(async ({ next }) => {
|