@devlider001/washlab-backend 1.0.8 → 1.1.0
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/_generated/api.d.ts +14 -0
- package/convex/actions.d.ts +158 -0
- package/convex/admin.d.ts +148 -7
- package/convex/attendants.d.ts +332 -18
- package/convex/audit.d.ts +6 -0
- package/convex/customers.d.ts +47 -0
- package/convex/lib/attendance.d.ts +79 -0
- package/convex/lib/audit.d.ts +2 -1
- package/convex/lib/auth.d.ts +46 -4
- package/convex/lib/biometricComparison.d.ts +38 -0
- package/convex/lib/biometricEncryption.d.ts +49 -0
- package/convex/lib/passwordHashing.d.ts +31 -0
- package/convex/lib/tokenHashing.d.ts +26 -0
- package/convex/notifications.d.ts +2 -2
- package/convex/orders.d.ts +425 -221
- package/convex/payments.d.ts +3 -1
- package/convex/schema.d.ts +419 -13
- package/convex/stations.d.ts +77 -0
- package/convex/vouchers.d.ts +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Station/Branch Login Functions
|
|
3
|
+
*
|
|
4
|
+
* Handles station (branch) login and session management.
|
|
5
|
+
* Station login is separate from attendant authentication.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Verify branch code (public - no auth required)
|
|
9
|
+
* Returns branch info without sensitive data
|
|
10
|
+
*/
|
|
11
|
+
export declare const verifyBranchCode: import("convex/server").RegisteredQuery<"public", {
|
|
12
|
+
code: string;
|
|
13
|
+
}, Promise<{
|
|
14
|
+
_id: import("convex/values").GenericId<"branches">;
|
|
15
|
+
name: string;
|
|
16
|
+
code: string;
|
|
17
|
+
address: string;
|
|
18
|
+
city: string;
|
|
19
|
+
country: string;
|
|
20
|
+
phoneNumber: string;
|
|
21
|
+
email: string | undefined;
|
|
22
|
+
requireStationLogin: boolean;
|
|
23
|
+
hasStationPin: boolean;
|
|
24
|
+
} | null>>;
|
|
25
|
+
/**
|
|
26
|
+
* Login to station (branch) - First step
|
|
27
|
+
* Creates station session if PIN is provided and valid, or if PIN not required
|
|
28
|
+
*/
|
|
29
|
+
export declare const loginStation: import("convex/server").RegisteredMutation<"public", {
|
|
30
|
+
deviceInfo?: string | undefined;
|
|
31
|
+
stationPin?: string | undefined;
|
|
32
|
+
branchId: import("convex/values").GenericId<"branches">;
|
|
33
|
+
deviceId: string;
|
|
34
|
+
}, Promise<{
|
|
35
|
+
success: boolean;
|
|
36
|
+
branchId: import("convex/values").GenericId<"branches">;
|
|
37
|
+
branchName: string;
|
|
38
|
+
stationToken: string;
|
|
39
|
+
expiresAt: number;
|
|
40
|
+
sessionId: import("convex/values").GenericId<"stationSessions">;
|
|
41
|
+
}>>;
|
|
42
|
+
/**
|
|
43
|
+
* Verify station session token
|
|
44
|
+
*/
|
|
45
|
+
export declare const verifyStationSession: import("convex/server").RegisteredQuery<"public", {
|
|
46
|
+
stationToken: string;
|
|
47
|
+
}, Promise<{
|
|
48
|
+
valid: boolean;
|
|
49
|
+
branchId: import("convex/values").GenericId<"branches">;
|
|
50
|
+
branchName: string | undefined;
|
|
51
|
+
deviceId: string;
|
|
52
|
+
expiresAt: number;
|
|
53
|
+
loggedInAt: number;
|
|
54
|
+
} | null>>;
|
|
55
|
+
/**
|
|
56
|
+
* Logout from station
|
|
57
|
+
*/
|
|
58
|
+
export declare const logoutStation: import("convex/server").RegisteredMutation<"public", {
|
|
59
|
+
stationToken: string;
|
|
60
|
+
}, Promise<{
|
|
61
|
+
success: boolean;
|
|
62
|
+
}>>;
|
|
63
|
+
/**
|
|
64
|
+
* Get active station session for device
|
|
65
|
+
*/
|
|
66
|
+
export declare const getActiveStationSession: import("convex/server").RegisteredQuery<"public", {
|
|
67
|
+
branchId: import("convex/values").GenericId<"branches">;
|
|
68
|
+
deviceId: string;
|
|
69
|
+
}, Promise<{
|
|
70
|
+
_id: import("convex/values").GenericId<"stationSessions">;
|
|
71
|
+
branchId: import("convex/values").GenericId<"branches">;
|
|
72
|
+
branchName: string | undefined;
|
|
73
|
+
deviceId: string;
|
|
74
|
+
loggedInAt: number;
|
|
75
|
+
expiresAt: number;
|
|
76
|
+
} | null>>;
|
|
77
|
+
//# sourceMappingURL=stations.d.ts.map
|
package/convex/vouchers.d.ts
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* Get all vouchers (admin only)
|
|
8
8
|
*/
|
|
9
9
|
export declare const getAll: import("convex/server").RegisteredQuery<"public", {
|
|
10
|
-
includeInactive?: boolean | undefined;
|
|
11
10
|
numItems?: number | undefined;
|
|
12
11
|
cursor?: string | undefined;
|
|
12
|
+
includeInactive?: boolean | undefined;
|
|
13
13
|
}, Promise<{
|
|
14
14
|
page: {
|
|
15
15
|
_id: import("convex/values").GenericId<"vouchers">;
|
|
@@ -25,8 +25,8 @@ export declare const getAll: import("convex/server").RegisteredQuery<"public", {
|
|
|
25
25
|
createdAt: number;
|
|
26
26
|
isDeleted: boolean;
|
|
27
27
|
isActive: boolean;
|
|
28
|
-
code: string;
|
|
29
28
|
createdBy: import("convex/values").GenericId<"admins">;
|
|
29
|
+
code: string;
|
|
30
30
|
discountType: "percentage" | "fixed" | "free_wash";
|
|
31
31
|
discountValue: number;
|
|
32
32
|
usageLimit: number;
|
|
@@ -54,8 +54,8 @@ export declare const getActive: import("convex/server").RegisteredQuery<"public"
|
|
|
54
54
|
createdAt: number;
|
|
55
55
|
isDeleted: boolean;
|
|
56
56
|
isActive: boolean;
|
|
57
|
-
code: string;
|
|
58
57
|
createdBy: import("convex/values").GenericId<"admins">;
|
|
58
|
+
code: string;
|
|
59
59
|
discountType: "percentage" | "fixed" | "free_wash";
|
|
60
60
|
discountValue: number;
|
|
61
61
|
usageLimit: number;
|
|
@@ -80,8 +80,8 @@ export declare const getByCode: import("convex/server").RegisteredQuery<"public"
|
|
|
80
80
|
createdAt: number;
|
|
81
81
|
isDeleted: boolean;
|
|
82
82
|
isActive: boolean;
|
|
83
|
-
code: string;
|
|
84
83
|
createdBy: import("convex/values").GenericId<"admins">;
|
|
84
|
+
code: string;
|
|
85
85
|
discountType: "percentage" | "fixed" | "free_wash";
|
|
86
86
|
discountValue: number;
|
|
87
87
|
usageLimit: number;
|