@appconda/nextjs 1.0.35 → 1.0.36
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/modules/waitlist/action.d.ts +4 -0
- package/dist/modules/waitlist/action.js +11 -0
- package/dist/modules/waitlist/service.d.ts +1 -0
- package/dist/modules/waitlist/service.js +4 -0
- package/package.json +1 -1
- package/publish.sh +1 -1
- package/src/modules/waitlist/action.ts +12 -1
- package/src/modules/waitlist/service.ts +5 -0
@@ -10,3 +10,7 @@ export declare const ListWaitlistSignups: import("next-safe-action/.").SafeActio
|
|
10
10
|
waitlistId?: string[];
|
11
11
|
};
|
12
12
|
}, readonly [], any[]>;
|
13
|
+
export declare const ListWaitlists: import("next-safe-action/.").SafeActionFn<string, undefined, readonly [], {
|
14
|
+
formErrors: string[];
|
15
|
+
fieldErrors: {};
|
16
|
+
}, readonly [], any[]>;
|
@@ -15,3 +15,14 @@ export const ListWaitlistSignups = actionClient
|
|
15
15
|
throw new Error('Failed to fetch ListWaitlistSignups');
|
16
16
|
}
|
17
17
|
});
|
18
|
+
export const ListWaitlists = actionClient
|
19
|
+
.action(async ({ parsedInput }) => {
|
20
|
+
try {
|
21
|
+
const { waitlist } = await getSDKForCurrentUser();
|
22
|
+
return await waitlist.ListWaitlists();
|
23
|
+
}
|
24
|
+
catch (error) {
|
25
|
+
console.error('Error in ListWaitlistSignups:', error);
|
26
|
+
throw new Error('Failed to fetch ListWaitlistSignups');
|
27
|
+
}
|
28
|
+
});
|
@@ -8,4 +8,8 @@ export class Waitlist extends ServiceClient {
|
|
8
8
|
payload['waitlistId'] = waitlistId;
|
9
9
|
return await this.actionCall('ListWiatlistSignups', payload);
|
10
10
|
}
|
11
|
+
async ListWaitlists() {
|
12
|
+
const payload = {};
|
13
|
+
return await this.actionCall('ListWaitlists', payload);
|
14
|
+
}
|
11
15
|
}
|
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.36",
|
6
6
|
"license": "BSD-3-Clause",
|
7
7
|
"main": "dist/index.js",
|
8
8
|
"types": "dist/index.d.ts",
|
package/publish.sh
CHANGED
@@ -18,4 +18,15 @@ export const ListWaitlistSignups = actionClient
|
|
18
18
|
}
|
19
19
|
});
|
20
20
|
|
21
|
-
|
21
|
+
|
22
|
+
export const ListWaitlists = actionClient
|
23
|
+
.action(async ({ parsedInput }) => {
|
24
|
+
try {
|
25
|
+
|
26
|
+
const { waitlist } = await getSDKForCurrentUser();
|
27
|
+
return await waitlist.ListWaitlists();
|
28
|
+
} catch (error) {
|
29
|
+
console.error('Error in ListWaitlistSignups:', error);
|
30
|
+
throw new Error('Failed to fetch ListWaitlistSignups');
|
31
|
+
}
|
32
|
+
});
|
@@ -13,4 +13,9 @@ export class Waitlist extends ServiceClient {
|
|
13
13
|
return await this.actionCall('ListWiatlistSignups', payload);
|
14
14
|
}
|
15
15
|
|
16
|
+
public async ListWaitlists(): Promise<any[]> {
|
17
|
+
const payload: Payload = {};
|
18
|
+
return await this.actionCall('ListWaitlists', payload);
|
19
|
+
}
|
20
|
+
|
16
21
|
}
|