@appconda/nextjs 1.0.71 → 1.0.158
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/index.d.ts +1 -0
- package/dist/actions/index.js +1 -0
- package/dist/{modules/ai/node/actions.js → actions/nodes.js} +2 -2
- package/dist/getSDKForCurrentUser.d.ts +3 -5
- package/dist/getSDKForCurrentUser.js +3 -6
- package/dist/index.d.ts +6 -5
- package/dist/index.js +5 -5
- package/dist/modules/index.d.ts +0 -3
- package/dist/modules/index.js +0 -3
- package/dist/modules/waitlist/action.d.ts +0 -24
- package/dist/modules/waitlist/action.js +4 -29
- package/dist/modules/waitlist/index.d.ts +0 -1
- package/dist/modules/waitlist/index.js +0 -1
- package/dist/modules/waitlist/schema.d.ts +0 -14
- package/dist/modules/waitlist/schema.js +0 -6
- package/dist/modules/waitlist/service.d.ts +2 -4
- package/dist/modules/waitlist/service.js +0 -6
- package/dist/modules/waitlist/types.d.ts +0 -4
- package/dist/{modules/account/service.d.ts → services/account.d.ts} +56 -56
- package/dist/{modules/account/service.js → services/account.js} +14 -14
- package/dist/{modules/ai/node/service.d.ts → services/node.d.ts} +1 -1
- package/dist/{modules/ai/node/service.js → services/node.js} +1 -1
- package/dist/services/projects.d.ts +1 -1
- package/dist/services/users.d.ts +1 -1
- package/package.json +1 -1
- package/src/actions/index.ts +1 -0
- package/src/{modules/ai/node/actions.ts → actions/nodes.ts} +2 -2
- package/src/getSDKForCurrentUser.ts +3 -6
- package/src/index.ts +8 -6
- package/src/modules/index.ts +1 -4
- package/src/modules/waitlist/action.ts +4 -33
- package/src/modules/waitlist/index.ts +1 -2
- package/src/modules/waitlist/schema.ts +0 -9
- package/src/modules/waitlist/service.ts +2 -11
- package/src/modules/waitlist/types.ts +0 -5
- package/src/{modules/account/service.ts → services/account.ts} +59 -61
- package/src/{modules/ai/node/service.ts → services/node.ts} +4 -4
- package/src/services/projects.ts +1 -1
- package/src/services/users.ts +1 -1
- package/dist/getSDKForService.d.ts +0 -6
- package/dist/getSDKForService.js +0 -49
- package/dist/modules/account/actions.d.ts +0 -25
- package/dist/modules/account/actions.js +0 -17
- package/dist/modules/account/index.d.ts +0 -3
- package/dist/modules/account/index.js +0 -3
- package/dist/modules/account/schema.d.ts +0 -17
- package/dist/modules/account/schema.js +0 -7
- package/dist/modules/account/types.d.ts +0 -411
- package/dist/modules/account/types.js +0 -1
- package/dist/modules/agent/action.d.ts +0 -41
- package/dist/modules/agent/action.js +0 -51
- package/dist/modules/agent/index.d.ts +0 -4
- package/dist/modules/agent/index.js +0 -4
- package/dist/modules/agent/schema.d.ts +0 -41
- package/dist/modules/agent/schema.js +0 -17
- package/dist/modules/agent/service.d.ts +0 -11
- package/dist/modules/agent/service.js +0 -18
- package/dist/modules/agent/types.d.ts +0 -7
- package/dist/modules/agent/types.js +0 -1
- package/dist/modules/ai/index.d.ts +0 -1
- package/dist/modules/ai/index.js +0 -1
- package/dist/modules/ai/node/index.d.ts +0 -2
- package/dist/modules/ai/node/index.js +0 -2
- package/src/getSDKForService.ts +0 -52
- package/src/modules/account/actions.ts +0 -21
- package/src/modules/account/index.ts +0 -3
- package/src/modules/account/schema.ts +0 -8
- package/src/modules/account/types.ts +0 -426
- package/src/modules/agent/action.ts +0 -64
- package/src/modules/agent/index.ts +0 -4
- package/src/modules/agent/schema.ts +0 -21
- package/src/modules/agent/service.ts +0 -30
- package/src/modules/agent/types.ts +0 -9
- package/src/modules/ai/index.ts +0 -1
- package/src/modules/ai/node/index.ts +0 -2
- /package/dist/{modules/ai/node/actions.d.ts → actions/nodes.d.ts} +0 -0
- /package/dist/{modules/account/enums → enums}/authentication-factor.d.ts +0 -0
- /package/dist/{modules/account/enums → enums}/authentication-factor.js +0 -0
- /package/dist/{modules/account/enums → enums}/authenticator-type.d.ts +0 -0
- /package/dist/{modules/account/enums → enums}/authenticator-type.js +0 -0
- /package/dist/{modules/account/enums → enums}/o-auth-provider.d.ts +0 -0
- /package/dist/{modules/account/enums → enums}/o-auth-provider.js +0 -0
- /package/src/{modules/account/enums → enums}/authentication-factor.ts +0 -0
- /package/src/{modules/account/enums → enums}/authenticator-type.ts +0 -0
- /package/src/{modules/account/enums → enums}/o-auth-provider.ts +0 -0
package/dist/actions/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './nodes';
|
package/dist/actions/index.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './nodes';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
'use server';
|
2
|
-
import {
|
3
|
-
import {
|
2
|
+
import { actionClient } from "./actionClient";
|
3
|
+
import { getSDKForCurrentUser } from '../getSDKForCurrentUser';
|
4
4
|
export const getAllNodesAction = actionClient
|
5
5
|
// .schema(listModelsSchema)
|
6
6
|
.action(async ({ parsedInput }) => {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Account } from "./services/account";
|
1
2
|
import { Community } from "./services/community";
|
2
3
|
import { Configuration } from "./services/configuration";
|
3
4
|
import { Databases } from "./services/databases";
|
@@ -10,13 +11,11 @@ import { Teams } from "./services/teams";
|
|
10
11
|
import { Tenant } from "./services/tenant";
|
11
12
|
import { TenantSubscription } from "./services/tenant-subscription";
|
12
13
|
import { Users } from "./services/users";
|
14
|
+
import { Node } from "./services/node";
|
13
15
|
import { Permissions } from "./services/permissions";
|
14
16
|
import { WaitlistService } from "./modules/waitlist/service";
|
15
|
-
import { Account } from "./modules/account/service";
|
16
|
-
import { Node } from "./modules/ai/node/service";
|
17
|
-
import { AgentService } from "./modules/agent/service";
|
18
17
|
export declare function getSDKForCurrentUser(): Promise<{
|
19
|
-
currentUser: import("./
|
18
|
+
currentUser: import("./models").Models.User<import("./models").Models.Preferences>;
|
20
19
|
accounts: Account;
|
21
20
|
databases: Databases;
|
22
21
|
projects: Projects;
|
@@ -33,5 +32,4 @@ export declare function getSDKForCurrentUser(): Promise<{
|
|
33
32
|
configuration: Configuration;
|
34
33
|
node: Node;
|
35
34
|
waitlist: WaitlistService;
|
36
|
-
agent: AgentService;
|
37
35
|
}>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { cookies } from "next/headers";
|
2
2
|
import { getAppcondaClient } from "./getAppcondaClient";
|
3
|
+
import { Account } from "./services/account";
|
3
4
|
import { Community } from "./services/community";
|
4
5
|
import { Configuration } from "./services/configuration";
|
5
6
|
import { Databases } from "./services/databases";
|
@@ -12,11 +13,9 @@ import { Teams } from "./services/teams";
|
|
12
13
|
import { Tenant } from "./services/tenant";
|
13
14
|
import { TenantSubscription } from "./services/tenant-subscription";
|
14
15
|
import { Users } from "./services/users";
|
16
|
+
import { Node } from "./services/node";
|
15
17
|
import { Permissions } from "./services/permissions";
|
16
18
|
import { WaitlistService } from "./modules/waitlist/service";
|
17
|
-
import { Account } from "./modules/account/service";
|
18
|
-
import { Node } from "./modules/ai/node/service";
|
19
|
-
import { AgentService } from "./modules/agent/service";
|
20
19
|
export async function getSDKForCurrentUser() {
|
21
20
|
const adminClient = await getAppcondaClient();
|
22
21
|
const c = await cookies();
|
@@ -43,7 +42,6 @@ export async function getSDKForCurrentUser() {
|
|
43
42
|
//const acl = new Acl(adminClient);
|
44
43
|
const node = new Node(adminClient);
|
45
44
|
const waitlist = new WaitlistService(adminClient);
|
46
|
-
const agent = new AgentService(adminClient);
|
47
45
|
return {
|
48
46
|
currentUser,
|
49
47
|
accounts,
|
@@ -62,7 +60,6 @@ export async function getSDKForCurrentUser() {
|
|
62
60
|
configuration,
|
63
61
|
// acl,
|
64
62
|
node,
|
65
|
-
waitlist
|
66
|
-
agent
|
63
|
+
waitlist
|
67
64
|
};
|
68
65
|
}
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { Client, Query, AppcondaException } from './client';
|
2
|
-
export { Account } from './
|
2
|
+
export { Account } from './services/account';
|
3
3
|
export { Avatars } from './services/avatars';
|
4
4
|
export { Databases } from './services/databases';
|
5
5
|
export { Applets } from './services/applets';
|
@@ -16,9 +16,9 @@ export type { QueryTypes, QueryTypesList } from './query';
|
|
16
16
|
export { Permission } from './permission';
|
17
17
|
export { Role } from './role';
|
18
18
|
export { ID } from './id';
|
19
|
-
export { AuthenticatorType } from './
|
20
|
-
export { AuthenticationFactor } from './
|
21
|
-
export { OAuthProvider } from './
|
19
|
+
export { AuthenticatorType } from './enums/authenticator-type';
|
20
|
+
export { AuthenticationFactor } from './enums/authentication-factor';
|
21
|
+
export { OAuthProvider } from './enums/o-auth-provider';
|
22
22
|
export { Browser } from './enums/browser';
|
23
23
|
export { CreditCard } from './enums/credit-card';
|
24
24
|
export { Flag } from './enums/flag';
|
@@ -35,6 +35,7 @@ export { ImageFormat } from './enums/image-format';
|
|
35
35
|
export { PasswordHash } from './enums/password-hash';
|
36
36
|
export { MessagingProviderType } from './enums/messaging-provider-type';
|
37
37
|
export { getSDKForCurrentUser } from './getSDKForCurrentUser';
|
38
|
-
export
|
38
|
+
export * from './actions';
|
39
39
|
export * from './modules';
|
40
40
|
export type { SafeActionFn } from 'next-safe-action';
|
41
|
+
export type { getAppcondaClient } from './getAppcondaClient';
|
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { Client, Query, AppcondaException } from './client';
|
2
|
-
export { Account } from './
|
2
|
+
export { Account } from './services/account';
|
3
3
|
export { Avatars } from './services/avatars';
|
4
4
|
export { Databases } from './services/databases';
|
5
5
|
export { Applets } from './services/applets';
|
@@ -14,9 +14,9 @@ export { Users } from './services/users';
|
|
14
14
|
export { Permission } from './permission';
|
15
15
|
export { Role } from './role';
|
16
16
|
export { ID } from './id';
|
17
|
-
export { AuthenticatorType } from './
|
18
|
-
export { AuthenticationFactor } from './
|
19
|
-
export { OAuthProvider } from './
|
17
|
+
export { AuthenticatorType } from './enums/authenticator-type';
|
18
|
+
export { AuthenticationFactor } from './enums/authentication-factor';
|
19
|
+
export { OAuthProvider } from './enums/o-auth-provider';
|
20
20
|
export { Browser } from './enums/browser';
|
21
21
|
export { CreditCard } from './enums/credit-card';
|
22
22
|
export { Flag } from './enums/flag';
|
@@ -33,5 +33,5 @@ export { ImageFormat } from './enums/image-format';
|
|
33
33
|
export { PasswordHash } from './enums/password-hash';
|
34
34
|
export { MessagingProviderType } from './enums/messaging-provider-type';
|
35
35
|
export { getSDKForCurrentUser } from './getSDKForCurrentUser';
|
36
|
-
export
|
36
|
+
export * from './actions';
|
37
37
|
export * from './modules';
|
package/dist/modules/index.d.ts
CHANGED
package/dist/modules/index.js
CHANGED
@@ -43,27 +43,3 @@ export declare const CreateWaitlistSignup: import("next-safe-action").SafeAction
|
|
43
43
|
waitlistId?: string[];
|
44
44
|
};
|
45
45
|
}, readonly [], WaitlistSignup>;
|
46
|
-
export declare const CreateWaitlistOffboardedSignup: import("next-safe-action").SafeActionFn<string, import("zod").ZodObject<{
|
47
|
-
waitlistSignupId: import("zod").ZodString;
|
48
|
-
}, "strip", import("zod").ZodTypeAny, {
|
49
|
-
waitlistSignupId?: string;
|
50
|
-
}, {
|
51
|
-
waitlistSignupId?: string;
|
52
|
-
}>, readonly [], {
|
53
|
-
formErrors: string[];
|
54
|
-
fieldErrors: {
|
55
|
-
waitlistSignupId?: string[];
|
56
|
-
};
|
57
|
-
}, readonly [], WaitlistSignup>;
|
58
|
-
export declare const ListWaitlistOffboardedSignups: import("next-safe-action").SafeActionFn<string, import("zod").ZodObject<{
|
59
|
-
waitlistId: import("zod").ZodString;
|
60
|
-
}, "strip", import("zod").ZodTypeAny, {
|
61
|
-
waitlistId?: string;
|
62
|
-
}, {
|
63
|
-
waitlistId?: string;
|
64
|
-
}>, readonly [], {
|
65
|
-
formErrors: string[];
|
66
|
-
fieldErrors: {
|
67
|
-
waitlistId?: string[];
|
68
|
-
};
|
69
|
-
}, readonly [], WaitlistSignup>;
|
@@ -1,14 +1,13 @@
|
|
1
1
|
'use server';
|
2
2
|
import { actionClient } from '../../actions/actionClient';
|
3
3
|
import { getSDKForCurrentUser } from '../../getSDKForCurrentUser';
|
4
|
-
import {
|
5
|
-
import { CreateWaitlistOffboardedSignupSchema, CreateWaitlistSchema, CreateWaitlistSignupSchema, ListWaitlistOffboardedSignupsSchema, ListWaitlistSignupsSchema } from "./schema";
|
4
|
+
import { CreateWaitlistSchema, CreateWaitlistSignupSchema, ListWaitlistSignupsSchema } from "./schema";
|
6
5
|
export const ListWaitlistSignups = actionClient
|
7
6
|
.schema(ListWaitlistSignupsSchema)
|
8
7
|
.action(async ({ parsedInput }) => {
|
9
8
|
try {
|
10
9
|
const { waitlistId } = parsedInput;
|
11
|
-
const { waitlist } = await
|
10
|
+
const { waitlist } = await getSDKForCurrentUser();
|
12
11
|
return await waitlist.ListWiatlistSignups(waitlistId); // typo: Wiatlist mi?
|
13
12
|
}
|
14
13
|
catch (error) {
|
@@ -19,7 +18,7 @@ export const ListWaitlistSignups = actionClient
|
|
19
18
|
export const ListWaitlists = actionClient
|
20
19
|
.action(async () => {
|
21
20
|
try {
|
22
|
-
const { waitlist } = await
|
21
|
+
const { waitlist } = await getSDKForCurrentUser();
|
23
22
|
return await waitlist.ListWaitlists();
|
24
23
|
}
|
25
24
|
catch (error) {
|
@@ -43,7 +42,7 @@ export const CreateWaitlistSignup = actionClient
|
|
43
42
|
.schema(CreateWaitlistSignupSchema)
|
44
43
|
.action(async ({ parsedInput }) => {
|
45
44
|
try {
|
46
|
-
const { waitlist } = await
|
45
|
+
const { waitlist } = await getSDKForCurrentUser();
|
47
46
|
return await waitlist.CreateWaitlistSignup(parsedInput);
|
48
47
|
}
|
49
48
|
catch (error) {
|
@@ -51,27 +50,3 @@ export const CreateWaitlistSignup = actionClient
|
|
51
50
|
throw new Error('Failed to fetch ListWaitlists');
|
52
51
|
}
|
53
52
|
});
|
54
|
-
export const CreateWaitlistOffboardedSignup = actionClient
|
55
|
-
.schema(CreateWaitlistOffboardedSignupSchema)
|
56
|
-
.action(async ({ parsedInput }) => {
|
57
|
-
try {
|
58
|
-
const { waitlist } = await getSDKForService();
|
59
|
-
return await waitlist.CreateWaitlistOffboardedSignup(parsedInput);
|
60
|
-
}
|
61
|
-
catch (error) {
|
62
|
-
console.error('Error in ListWaitlists:', error);
|
63
|
-
throw new Error('Failed to fetch ListWaitlists');
|
64
|
-
}
|
65
|
-
});
|
66
|
-
export const ListWaitlistOffboardedSignups = actionClient
|
67
|
-
.schema(ListWaitlistOffboardedSignupsSchema)
|
68
|
-
.action(async ({ parsedInput }) => {
|
69
|
-
try {
|
70
|
-
const { waitlist } = await getSDKForService();
|
71
|
-
return await waitlist.ListWaitlistOffboardedSignups(parsedInput);
|
72
|
-
}
|
73
|
-
catch (error) {
|
74
|
-
console.error('Error in ListWaitlists:', error);
|
75
|
-
throw new Error('Failed to fetch ListWaitlists');
|
76
|
-
}
|
77
|
-
});
|
@@ -6,13 +6,6 @@ export declare const ListWaitlistSignupsSchema: z.ZodObject<{
|
|
6
6
|
}, {
|
7
7
|
waitlistId?: string;
|
8
8
|
}>;
|
9
|
-
export declare const ListWaitlistOffboardedSignupsSchema: z.ZodObject<{
|
10
|
-
waitlistId: z.ZodString;
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
12
|
-
waitlistId?: string;
|
13
|
-
}, {
|
14
|
-
waitlistId?: string;
|
15
|
-
}>;
|
16
9
|
export declare const CreateWaitlistSchema: z.ZodObject<{
|
17
10
|
name: z.ZodString;
|
18
11
|
}, "strip", z.ZodTypeAny, {
|
@@ -30,10 +23,3 @@ export declare const CreateWaitlistSignupSchema: z.ZodObject<{
|
|
30
23
|
email?: string;
|
31
24
|
waitlistId?: string;
|
32
25
|
}>;
|
33
|
-
export declare const CreateWaitlistOffboardedSignupSchema: z.ZodObject<{
|
34
|
-
waitlistSignupId: z.ZodString;
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
36
|
-
waitlistSignupId?: string;
|
37
|
-
}, {
|
38
|
-
waitlistSignupId?: string;
|
39
|
-
}>;
|
@@ -2,9 +2,6 @@ import { z } from "zod";
|
|
2
2
|
export const ListWaitlistSignupsSchema = z.object({
|
3
3
|
waitlistId: z.string()
|
4
4
|
});
|
5
|
-
export const ListWaitlistOffboardedSignupsSchema = z.object({
|
6
|
-
waitlistId: z.string()
|
7
|
-
});
|
8
5
|
export const CreateWaitlistSchema = z.object({
|
9
6
|
name: z.string()
|
10
7
|
});
|
@@ -12,6 +9,3 @@ export const CreateWaitlistSignupSchema = z.object({
|
|
12
9
|
waitlistId: z.string(),
|
13
10
|
email: z.string()
|
14
11
|
});
|
15
|
-
export const CreateWaitlistOffboardedSignupSchema = z.object({
|
16
|
-
waitlistSignupId: z.string(),
|
17
|
-
});
|
@@ -1,13 +1,11 @@
|
|
1
1
|
import z from "zod";
|
2
2
|
import { ServiceClient } from "../../service-client";
|
3
|
-
import { Waitlist,
|
4
|
-
import {
|
3
|
+
import { Waitlist, WaitlistSignup } from "./types";
|
4
|
+
import { CreateWaitlistSchema, CreateWaitlistSignupSchema } from "./schema";
|
5
5
|
export declare class WaitlistService extends ServiceClient {
|
6
6
|
protected getServiceName(): string;
|
7
7
|
ListWiatlistSignups(waitlistId: string): Promise<any[]>;
|
8
8
|
ListWaitlists(): Promise<any[]>;
|
9
9
|
CreateWaitlist(payload: z.infer<typeof CreateWaitlistSchema>): Promise<Waitlist>;
|
10
10
|
CreateWaitlistSignup(payload: z.infer<typeof CreateWaitlistSignupSchema>): Promise<WaitlistSignup>;
|
11
|
-
CreateWaitlistOffboardedSignup(payload: z.infer<typeof CreateWaitlistOffboardedSignupSchema>): Promise<WaitlistSignup>;
|
12
|
-
ListWaitlistOffboardedSignups(payload: z.infer<typeof ListWaitlistOffboardedSignupsSchema>): Promise<WaitlistOffboardedSignup>;
|
13
11
|
}
|
@@ -18,10 +18,4 @@ export class WaitlistService extends ServiceClient {
|
|
18
18
|
async CreateWaitlistSignup(payload) {
|
19
19
|
return await this.actionCall('CreateWaitlistSignup', payload);
|
20
20
|
}
|
21
|
-
async CreateWaitlistOffboardedSignup(payload) {
|
22
|
-
return await this.actionCall('CreateWaitlistOffboardedSignup', payload);
|
23
|
-
}
|
24
|
-
async ListWaitlistOffboardedSignups(payload) {
|
25
|
-
return await this.actionCall('ListOffboardedSignups', payload);
|
26
|
-
}
|
27
21
|
}
|