@devlider001/washlab-backend 1.0.1 → 1.0.2
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/convex/admin.d.ts +14 -0
- package/package.json +1 -1
package/convex/admin.d.ts
CHANGED
|
@@ -5,6 +5,20 @@ import { Id } from "./_generated/dataModel";
|
|
|
5
5
|
* Handles admin operations: branch management, attendant management,
|
|
6
6
|
* system-wide order viewing, analytics, and customer management.
|
|
7
7
|
*/
|
|
8
|
+
/**
|
|
9
|
+
* Get current admin profile (from authenticated Clerk session)
|
|
10
|
+
*/
|
|
11
|
+
export declare const getCurrentUser: import("convex/server").RegisteredQuery<"public", {}, Promise<{
|
|
12
|
+
_id: import("convex/values").GenericId<"admins">;
|
|
13
|
+
_creationTime: number;
|
|
14
|
+
lastLoginAt?: number | undefined;
|
|
15
|
+
email: string;
|
|
16
|
+
name: string;
|
|
17
|
+
clerkUserId: string;
|
|
18
|
+
createdAt: number;
|
|
19
|
+
isDeleted: boolean;
|
|
20
|
+
role: "super_admin" | "admin";
|
|
21
|
+
}>>;
|
|
8
22
|
/**
|
|
9
23
|
* Get all branches - Paginated
|
|
10
24
|
* Supports usePaginatedQuery for infinite scroll
|