@appconda/nextjs 1.0.27 → 1.0.29
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/getSDKForCurrentUser.d.ts +2 -0
- package/dist/getSDKForCurrentUser.js +4 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.js +1 -0
- package/dist/modules/waitlist/action.d.ts +12 -0
- package/dist/modules/waitlist/action.js +17 -0
- package/dist/modules/waitlist/index.d.ts +3 -0
- package/dist/modules/waitlist/index.js +3 -0
- package/dist/modules/waitlist/schema.d.ts +8 -0
- package/dist/modules/waitlist/schema.js +4 -0
- package/dist/modules/waitlist/service.d.ts +5 -0
- package/dist/modules/waitlist/service.js +11 -0
- package/dist/schemas/nodes.d.ts +0 -0
- package/dist/schemas/nodes.js +0 -0
- package/dist/services/waitlist.d.ts +1 -1
- package/dist/services/waitlist.js +1 -1
- package/package.json +1 -1
- package/src/getSDKForCurrentUser.ts +4 -1
- package/src/index.ts +1 -1
- package/src/modules/index.ts +1 -0
- package/src/modules/waitlist/action.ts +18 -0
- package/src/modules/waitlist/index.ts +3 -0
- package/src/modules/waitlist/schema.ts +6 -0
- package/src/{services/waitlist.ts → modules/waitlist/service.ts} +2 -2
- package/src/schemas/nodes.ts +0 -0
@@ -13,6 +13,7 @@ import { TenantSubscription } from "./services/tenant-subscription";
|
|
13
13
|
import { Users } from "./services/users";
|
14
14
|
import { Node } from "./services/node";
|
15
15
|
import { Permissions } from "./services/permissions";
|
16
|
+
import { Waitlist } from "modules/waitlist/service";
|
16
17
|
export declare function getSDKForCurrentUser(): Promise<{
|
17
18
|
currentUser: import("./models").Models.User<import("./models").Models.Preferences>;
|
18
19
|
accounts: Account;
|
@@ -30,4 +31,5 @@ export declare function getSDKForCurrentUser(): Promise<{
|
|
30
31
|
pricing: Pricing;
|
31
32
|
configuration: Configuration;
|
32
33
|
node: Node;
|
34
|
+
waitlist: Waitlist;
|
33
35
|
}>;
|
@@ -15,6 +15,7 @@ import { TenantSubscription } from "./services/tenant-subscription";
|
|
15
15
|
import { Users } from "./services/users";
|
16
16
|
import { Node } from "./services/node";
|
17
17
|
import { Permissions } from "./services/permissions";
|
18
|
+
import { Waitlist } from "modules/waitlist/service";
|
18
19
|
export async function getSDKForCurrentUser() {
|
19
20
|
const adminClient = await getAppcondaClient();
|
20
21
|
const c = await cookies();
|
@@ -40,6 +41,7 @@ export async function getSDKForCurrentUser() {
|
|
40
41
|
const configuration = new Configuration(adminClient);
|
41
42
|
//const acl = new Acl(adminClient);
|
42
43
|
const node = new Node(adminClient);
|
44
|
+
const waitlist = new Waitlist(adminClient);
|
43
45
|
return {
|
44
46
|
currentUser,
|
45
47
|
accounts,
|
@@ -57,6 +59,7 @@ export async function getSDKForCurrentUser() {
|
|
57
59
|
pricing,
|
58
60
|
configuration,
|
59
61
|
// acl,
|
60
|
-
node
|
62
|
+
node,
|
63
|
+
waitlist
|
61
64
|
};
|
62
65
|
}
|
package/dist/index.d.ts
CHANGED
@@ -11,7 +11,6 @@ export { Messaging } from './services/messaging';
|
|
11
11
|
export { Storage } from './services/storage';
|
12
12
|
export { Teams } from './services/teams';
|
13
13
|
export { Users } from './services/users';
|
14
|
-
export { Waitlist } from './services/waitlist';
|
15
14
|
export type { Models, Payload, UploadProgress } from './client';
|
16
15
|
export type { QueryTypes, QueryTypesList } from './query';
|
17
16
|
export { Permission } from './permission';
|
@@ -37,3 +36,4 @@ export { PasswordHash } from './enums/password-hash';
|
|
37
36
|
export { MessagingProviderType } from './enums/messaging-provider-type';
|
38
37
|
export { getSDKForCurrentUser } from './getSDKForCurrentUser';
|
39
38
|
export * from './actions';
|
39
|
+
export * from './modules';
|
package/dist/index.js
CHANGED
@@ -11,7 +11,6 @@ export { Messaging } from './services/messaging';
|
|
11
11
|
export { Storage } from './services/storage';
|
12
12
|
export { Teams } from './services/teams';
|
13
13
|
export { Users } from './services/users';
|
14
|
-
export { Waitlist } from './services/waitlist';
|
15
14
|
export { Permission } from './permission';
|
16
15
|
export { Role } from './role';
|
17
16
|
export { ID } from './id';
|
@@ -35,3 +34,4 @@ export { PasswordHash } from './enums/password-hash';
|
|
35
34
|
export { MessagingProviderType } from './enums/messaging-provider-type';
|
36
35
|
export { getSDKForCurrentUser } from './getSDKForCurrentUser';
|
37
36
|
export * from './actions';
|
37
|
+
export * from './modules';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './waitlist';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './waitlist';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare const ListWaitlistSignups: import("next-safe-action/.").SafeActionFn<string, import("zod").ZodObject<{
|
2
|
+
waitlistId: import("zod").ZodString;
|
3
|
+
}, "strip", import("zod").ZodTypeAny, {
|
4
|
+
waitlistId?: string;
|
5
|
+
}, {
|
6
|
+
waitlistId?: string;
|
7
|
+
}>, readonly [], {
|
8
|
+
formErrors: string[];
|
9
|
+
fieldErrors: {
|
10
|
+
waitlistId?: string[];
|
11
|
+
};
|
12
|
+
}, readonly [], any[]>;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
'use server';
|
2
|
+
import { actionClient } from 'actions/actionClient';
|
3
|
+
import { getSDKForCurrentUser } from '../../getSDKForCurrentUser';
|
4
|
+
import { ListWaitlistSignupsSchema } from "./schema";
|
5
|
+
export const ListWaitlistSignups = actionClient
|
6
|
+
.schema(ListWaitlistSignupsSchema)
|
7
|
+
.action(async ({ parsedInput }) => {
|
8
|
+
try {
|
9
|
+
const { waitlistId } = parsedInput;
|
10
|
+
const { waitlist } = await getSDKForCurrentUser();
|
11
|
+
return await waitlist.ListWiatlistSignups(waitlistId);
|
12
|
+
}
|
13
|
+
catch (error) {
|
14
|
+
console.error('Error in ListWaitlistSignups:', error);
|
15
|
+
throw new Error('Failed to fetch ListWaitlistSignups');
|
16
|
+
}
|
17
|
+
});
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ServiceClient } from "../../service-client";
|
2
|
+
export class Waitlist extends ServiceClient {
|
3
|
+
getServiceName() {
|
4
|
+
return 'com.appconda.service.waitlist';
|
5
|
+
}
|
6
|
+
async ListWiatlistSignups(waitlistId) {
|
7
|
+
const payload = {};
|
8
|
+
payload['waitlistId'];
|
9
|
+
return await this.actionCall('ListWiatlistSignups', payload);
|
10
|
+
}
|
11
|
+
}
|
File without changes
|
File without changes
|
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.29",
|
6
6
|
"license": "BSD-3-Clause",
|
7
7
|
"main": "dist/index.js",
|
8
8
|
"types": "dist/index.d.ts",
|
@@ -15,6 +15,7 @@ import { TenantSubscription } from "./services/tenant-subscription";
|
|
15
15
|
import { Users } from "./services/users";
|
16
16
|
import { Node } from "./services/node";
|
17
17
|
import { Permissions } from "./services/permissions";
|
18
|
+
import { Waitlist } from "modules/waitlist/service";
|
18
19
|
|
19
20
|
export async function getSDKForCurrentUser() {
|
20
21
|
const adminClient = await getAppcondaClient();
|
@@ -52,6 +53,7 @@ export async function getSDKForCurrentUser() {
|
|
52
53
|
//const acl = new Acl(adminClient);
|
53
54
|
|
54
55
|
const node = new Node(adminClient);
|
56
|
+
const waitlist = new Waitlist(adminClient);
|
55
57
|
|
56
58
|
return {
|
57
59
|
currentUser,
|
@@ -70,6 +72,7 @@ export async function getSDKForCurrentUser() {
|
|
70
72
|
pricing,
|
71
73
|
configuration,
|
72
74
|
// acl,
|
73
|
-
node
|
75
|
+
node,
|
76
|
+
waitlist
|
74
77
|
}
|
75
78
|
}
|
package/src/index.ts
CHANGED
@@ -11,7 +11,6 @@ export { Messaging } from './services/messaging';
|
|
11
11
|
export { Storage } from './services/storage';
|
12
12
|
export { Teams } from './services/teams';
|
13
13
|
export { Users } from './services/users';
|
14
|
-
export { Waitlist } from './services/waitlist';
|
15
14
|
export type { Models, Payload, UploadProgress } from './client';
|
16
15
|
export type { QueryTypes, QueryTypesList } from './query';
|
17
16
|
export { Permission } from './permission';
|
@@ -37,3 +36,4 @@ export { PasswordHash } from './enums/password-hash';
|
|
37
36
|
export { MessagingProviderType } from './enums/messaging-provider-type';
|
38
37
|
export { getSDKForCurrentUser } from './getSDKForCurrentUser';
|
39
38
|
export * from './actions';
|
39
|
+
export * from './modules';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './waitlist';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
'use server';
|
2
|
+
|
3
|
+
import { actionClient } from 'actions/actionClient';
|
4
|
+
import { getSDKForCurrentUser } from '../../getSDKForCurrentUser';
|
5
|
+
import { ListWaitlistSignupsSchema } from "./schema";
|
6
|
+
|
7
|
+
export const ListWaitlistSignups = actionClient
|
8
|
+
.schema(ListWaitlistSignupsSchema)
|
9
|
+
.action(async ({ parsedInput }) => {
|
10
|
+
try {
|
11
|
+
const { waitlistId } = parsedInput;
|
12
|
+
const { waitlist } = await getSDKForCurrentUser();
|
13
|
+
return await waitlist.ListWiatlistSignups(waitlistId);
|
14
|
+
} catch (error) {
|
15
|
+
console.error('Error in ListWaitlistSignups:', error);
|
16
|
+
throw new Error('Failed to fetch ListWaitlistSignups');
|
17
|
+
}
|
18
|
+
});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
|
-
import { Payload } from "
|
3
|
-
import { ServiceClient } from "
|
2
|
+
import { Payload } from "../../client";
|
3
|
+
import { ServiceClient } from "../../service-client";
|
4
4
|
|
5
5
|
export class Waitlist extends ServiceClient {
|
6
6
|
protected getServiceName(): string {
|
File without changes
|