@devlider001/washlab-backend 1.0.0 → 1.0.1

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.
@@ -0,0 +1,369 @@
1
+ /**
2
+ * WashLab Database Schema
3
+ *
4
+ * This schema defines all database tables for the WashLab laundry management system.
5
+ * All authentication is handled by Clerk - clerkUserId fields link Clerk users to our data.
6
+ */
7
+ declare const _default: import("convex/server").SchemaDefinition<{
8
+ users: import("convex/server").TableDefinition<import("convex/values").VObject<{
9
+ email?: string | undefined;
10
+ clerkUserId?: string | undefined;
11
+ lastLoginAt?: number | undefined;
12
+ preferredBranchId?: import("convex/values").GenericId<"branches"> | undefined;
13
+ phoneNumber: string;
14
+ name: string;
15
+ isRegistered: boolean;
16
+ isVerified: boolean;
17
+ createdAt: number;
18
+ isDeleted: boolean;
19
+ }, {
20
+ phoneNumber: import("convex/values").VString<string, "required">;
21
+ email: import("convex/values").VString<string | undefined, "optional">;
22
+ name: import("convex/values").VString<string, "required">;
23
+ clerkUserId: import("convex/values").VString<string | undefined, "optional">;
24
+ isRegistered: import("convex/values").VBoolean<boolean, "required">;
25
+ isVerified: import("convex/values").VBoolean<boolean, "required">;
26
+ createdAt: import("convex/values").VFloat64<number, "required">;
27
+ lastLoginAt: import("convex/values").VFloat64<number | undefined, "optional">;
28
+ preferredBranchId: import("convex/values").VId<import("convex/values").GenericId<"branches"> | undefined, "optional">;
29
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
30
+ }, "required", "phoneNumber" | "email" | "name" | "clerkUserId" | "isRegistered" | "isVerified" | "createdAt" | "lastLoginAt" | "preferredBranchId" | "isDeleted">, {
31
+ by_phone: ["phoneNumber", "_creationTime"];
32
+ by_email: ["email", "_creationTime"];
33
+ by_clerk_user: ["clerkUserId", "_creationTime"];
34
+ }, {}, {}>;
35
+ attendants: import("convex/server").TableDefinition<import("convex/values").VObject<{
36
+ lastLoginAt?: number | undefined;
37
+ passcode?: string | undefined;
38
+ phoneNumber: string;
39
+ email: string;
40
+ name: string;
41
+ clerkUserId: string;
42
+ createdAt: number;
43
+ isDeleted: boolean;
44
+ branchId: import("convex/values").GenericId<"branches">;
45
+ isActive: boolean;
46
+ }, {
47
+ name: import("convex/values").VString<string, "required">;
48
+ email: import("convex/values").VString<string, "required">;
49
+ phoneNumber: import("convex/values").VString<string, "required">;
50
+ clerkUserId: import("convex/values").VString<string, "required">;
51
+ passcode: import("convex/values").VString<string | undefined, "optional">;
52
+ branchId: import("convex/values").VId<import("convex/values").GenericId<"branches">, "required">;
53
+ isActive: import("convex/values").VBoolean<boolean, "required">;
54
+ createdAt: import("convex/values").VFloat64<number, "required">;
55
+ lastLoginAt: import("convex/values").VFloat64<number | undefined, "optional">;
56
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
57
+ }, "required", "phoneNumber" | "email" | "name" | "clerkUserId" | "createdAt" | "lastLoginAt" | "isDeleted" | "passcode" | "branchId" | "isActive">, {
58
+ by_branch: ["branchId", "_creationTime"];
59
+ by_email: ["email", "_creationTime"];
60
+ by_phone: ["phoneNumber", "_creationTime"];
61
+ by_clerk_user: ["clerkUserId", "_creationTime"];
62
+ }, {}, {}>;
63
+ admins: import("convex/server").TableDefinition<import("convex/values").VObject<{
64
+ lastLoginAt?: number | undefined;
65
+ email: string;
66
+ name: string;
67
+ clerkUserId: string;
68
+ createdAt: number;
69
+ isDeleted: boolean;
70
+ role: "super_admin" | "admin";
71
+ }, {
72
+ name: import("convex/values").VString<string, "required">;
73
+ email: import("convex/values").VString<string, "required">;
74
+ clerkUserId: import("convex/values").VString<string, "required">;
75
+ role: import("convex/values").VUnion<"super_admin" | "admin", [import("convex/values").VLiteral<"super_admin", "required">, import("convex/values").VLiteral<"admin", "required">], "required", never>;
76
+ createdAt: import("convex/values").VFloat64<number, "required">;
77
+ lastLoginAt: import("convex/values").VFloat64<number | undefined, "optional">;
78
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
79
+ }, "required", "email" | "name" | "clerkUserId" | "createdAt" | "lastLoginAt" | "isDeleted" | "role">, {
80
+ by_email: ["email", "_creationTime"];
81
+ by_clerk_user: ["clerkUserId", "_creationTime"];
82
+ }, {}, {}>;
83
+ branches: import("convex/server").TableDefinition<import("convex/values").VObject<{
84
+ email?: string | undefined;
85
+ phoneNumber: string;
86
+ name: string;
87
+ createdAt: number;
88
+ isDeleted: boolean;
89
+ isActive: boolean;
90
+ address: string;
91
+ city: string;
92
+ country: string;
93
+ pricingPerKg: number;
94
+ deliveryFee: number;
95
+ createdBy: import("convex/values").GenericId<"admins">;
96
+ }, {
97
+ name: import("convex/values").VString<string, "required">;
98
+ address: import("convex/values").VString<string, "required">;
99
+ city: import("convex/values").VString<string, "required">;
100
+ country: import("convex/values").VString<string, "required">;
101
+ phoneNumber: import("convex/values").VString<string, "required">;
102
+ email: import("convex/values").VString<string | undefined, "optional">;
103
+ pricingPerKg: import("convex/values").VFloat64<number, "required">;
104
+ deliveryFee: import("convex/values").VFloat64<number, "required">;
105
+ isActive: import("convex/values").VBoolean<boolean, "required">;
106
+ createdAt: import("convex/values").VFloat64<number, "required">;
107
+ createdBy: import("convex/values").VId<import("convex/values").GenericId<"admins">, "required">;
108
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
109
+ }, "required", "phoneNumber" | "email" | "name" | "createdAt" | "isDeleted" | "isActive" | "address" | "city" | "country" | "pricingPerKg" | "deliveryFee" | "createdBy">, {
110
+ by_city: ["city", "_creationTime"];
111
+ by_active: ["isActive", "_creationTime"];
112
+ }, {}, {}>;
113
+ orders: import("convex/server").TableDefinition<import("convex/values").VObject<{
114
+ createdBy?: import("convex/values").GenericId<"attendants"> | undefined;
115
+ estimatedWeight?: number | undefined;
116
+ actualWeight?: number | undefined;
117
+ itemCount?: number | undefined;
118
+ estimatedLoads?: number | undefined;
119
+ whitesSeparate?: boolean | undefined;
120
+ notes?: string | undefined;
121
+ deliveryAddress?: string | undefined;
122
+ deliveryPhoneNumber?: string | undefined;
123
+ deliveryHall?: string | undefined;
124
+ deliveryRoom?: string | undefined;
125
+ paymentMethod?: "mobile_money" | "card" | "cash" | undefined;
126
+ paymentId?: import("convex/values").GenericId<"payments"> | undefined;
127
+ fulfilledBy?: import("convex/values").GenericId<"attendants"> | undefined;
128
+ createdAt: number;
129
+ isDeleted: boolean;
130
+ branchId: import("convex/values").GenericId<"branches">;
131
+ deliveryFee: number;
132
+ customerId: import("convex/values").GenericId<"users">;
133
+ customerPhoneNumber: string;
134
+ orderNumber: string;
135
+ orderType: "walk_in" | "online";
136
+ serviceType: "wash_only" | "wash_and_dry" | "dry_only";
137
+ isDelivery: boolean;
138
+ basePrice: number;
139
+ totalPrice: number;
140
+ finalPrice: number;
141
+ status: "pending" | "in_progress" | "ready_for_pickup" | "delivered" | "completed" | "cancelled";
142
+ paymentStatus: "pending" | "paid" | "failed" | "refunded";
143
+ updatedAt: number;
144
+ statusHistory: {
145
+ notes?: string | undefined;
146
+ status: string;
147
+ changedAt: number;
148
+ changedBy: import("convex/values").GenericId<"attendants">;
149
+ }[];
150
+ }, {
151
+ customerId: import("convex/values").VId<import("convex/values").GenericId<"users">, "required">;
152
+ customerPhoneNumber: import("convex/values").VString<string, "required">;
153
+ branchId: import("convex/values").VId<import("convex/values").GenericId<"branches">, "required">;
154
+ orderNumber: import("convex/values").VString<string, "required">;
155
+ orderType: import("convex/values").VUnion<"walk_in" | "online", [import("convex/values").VLiteral<"walk_in", "required">, import("convex/values").VLiteral<"online", "required">], "required", never>;
156
+ serviceType: import("convex/values").VUnion<"wash_only" | "wash_and_dry" | "dry_only", [import("convex/values").VLiteral<"wash_only", "required">, import("convex/values").VLiteral<"wash_and_dry", "required">, import("convex/values").VLiteral<"dry_only", "required">], "required", never>;
157
+ estimatedWeight: import("convex/values").VFloat64<number | undefined, "optional">;
158
+ actualWeight: import("convex/values").VFloat64<number | undefined, "optional">;
159
+ itemCount: import("convex/values").VFloat64<number | undefined, "optional">;
160
+ estimatedLoads: import("convex/values").VFloat64<number | undefined, "optional">;
161
+ whitesSeparate: import("convex/values").VBoolean<boolean | undefined, "optional">;
162
+ notes: import("convex/values").VString<string | undefined, "optional">;
163
+ isDelivery: import("convex/values").VBoolean<boolean, "required">;
164
+ deliveryAddress: import("convex/values").VString<string | undefined, "optional">;
165
+ deliveryPhoneNumber: import("convex/values").VString<string | undefined, "optional">;
166
+ deliveryHall: import("convex/values").VString<string | undefined, "optional">;
167
+ deliveryRoom: import("convex/values").VString<string | undefined, "optional">;
168
+ basePrice: import("convex/values").VFloat64<number, "required">;
169
+ deliveryFee: import("convex/values").VFloat64<number, "required">;
170
+ totalPrice: import("convex/values").VFloat64<number, "required">;
171
+ finalPrice: import("convex/values").VFloat64<number, "required">;
172
+ status: import("convex/values").VUnion<"pending" | "in_progress" | "ready_for_pickup" | "delivered" | "completed" | "cancelled", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"in_progress", "required">, import("convex/values").VLiteral<"ready_for_pickup", "required">, import("convex/values").VLiteral<"delivered", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"cancelled", "required">], "required", never>;
173
+ paymentStatus: import("convex/values").VUnion<"pending" | "paid" | "failed" | "refunded", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"paid", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"refunded", "required">], "required", never>;
174
+ paymentMethod: import("convex/values").VUnion<"mobile_money" | "card" | "cash" | undefined, [import("convex/values").VLiteral<"mobile_money", "required">, import("convex/values").VLiteral<"card", "required">, import("convex/values").VLiteral<"cash", "required">], "optional", never>;
175
+ paymentId: import("convex/values").VId<import("convex/values").GenericId<"payments"> | undefined, "optional">;
176
+ createdAt: import("convex/values").VFloat64<number, "required">;
177
+ updatedAt: import("convex/values").VFloat64<number, "required">;
178
+ createdBy: import("convex/values").VId<import("convex/values").GenericId<"attendants"> | undefined, "optional">;
179
+ fulfilledBy: import("convex/values").VId<import("convex/values").GenericId<"attendants"> | undefined, "optional">;
180
+ statusHistory: import("convex/values").VArray<{
181
+ notes?: string | undefined;
182
+ status: string;
183
+ changedAt: number;
184
+ changedBy: import("convex/values").GenericId<"attendants">;
185
+ }[], import("convex/values").VObject<{
186
+ notes?: string | undefined;
187
+ status: string;
188
+ changedAt: number;
189
+ changedBy: import("convex/values").GenericId<"attendants">;
190
+ }, {
191
+ status: import("convex/values").VString<string, "required">;
192
+ changedAt: import("convex/values").VFloat64<number, "required">;
193
+ changedBy: import("convex/values").VId<import("convex/values").GenericId<"attendants">, "required">;
194
+ notes: import("convex/values").VString<string | undefined, "optional">;
195
+ }, "required", "notes" | "status" | "changedAt" | "changedBy">, "required">;
196
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
197
+ }, "required", "createdAt" | "isDeleted" | "branchId" | "deliveryFee" | "createdBy" | "customerId" | "customerPhoneNumber" | "orderNumber" | "orderType" | "serviceType" | "estimatedWeight" | "actualWeight" | "itemCount" | "estimatedLoads" | "whitesSeparate" | "notes" | "isDelivery" | "deliveryAddress" | "deliveryPhoneNumber" | "deliveryHall" | "deliveryRoom" | "basePrice" | "totalPrice" | "finalPrice" | "status" | "paymentStatus" | "paymentMethod" | "paymentId" | "updatedAt" | "fulfilledBy" | "statusHistory">, {
198
+ by_customer: ["customerId", "_creationTime"];
199
+ by_branch: ["branchId", "_creationTime"];
200
+ by_status: ["status", "_creationTime"];
201
+ by_phone: ["customerPhoneNumber", "_creationTime"];
202
+ by_order_number: ["orderNumber", "_creationTime"];
203
+ by_created: ["createdAt", "_creationTime"];
204
+ by_fulfilled_by: ["fulfilledBy", "_creationTime"];
205
+ }, {}, {}>;
206
+ payments: import("convex/server").TableDefinition<import("convex/values").VObject<{
207
+ gatewayTransactionId?: string | undefined;
208
+ gatewayResponse?: string | undefined;
209
+ completedAt?: number | undefined;
210
+ processedBy?: import("convex/values").GenericId<"attendants"> | undefined;
211
+ createdAt: number;
212
+ isDeleted: boolean;
213
+ customerId: import("convex/values").GenericId<"users">;
214
+ status: "pending" | "completed" | "failed" | "refunded" | "processing";
215
+ paymentMethod: "mobile_money" | "card" | "cash";
216
+ orderId: import("convex/values").GenericId<"orders">;
217
+ amount: number;
218
+ currency: string;
219
+ }, {
220
+ orderId: import("convex/values").VId<import("convex/values").GenericId<"orders">, "required">;
221
+ customerId: import("convex/values").VId<import("convex/values").GenericId<"users">, "required">;
222
+ amount: import("convex/values").VFloat64<number, "required">;
223
+ currency: import("convex/values").VString<string, "required">;
224
+ paymentMethod: import("convex/values").VUnion<"mobile_money" | "card" | "cash", [import("convex/values").VLiteral<"mobile_money", "required">, import("convex/values").VLiteral<"card", "required">, import("convex/values").VLiteral<"cash", "required">], "required", never>;
225
+ status: import("convex/values").VUnion<"pending" | "completed" | "failed" | "refunded" | "processing", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"processing", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"refunded", "required">], "required", never>;
226
+ gatewayTransactionId: import("convex/values").VString<string | undefined, "optional">;
227
+ gatewayResponse: import("convex/values").VString<string | undefined, "optional">;
228
+ createdAt: import("convex/values").VFloat64<number, "required">;
229
+ completedAt: import("convex/values").VFloat64<number | undefined, "optional">;
230
+ processedBy: import("convex/values").VId<import("convex/values").GenericId<"attendants"> | undefined, "optional">;
231
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
232
+ }, "required", "createdAt" | "isDeleted" | "customerId" | "status" | "paymentMethod" | "orderId" | "amount" | "currency" | "gatewayTransactionId" | "gatewayResponse" | "completedAt" | "processedBy">, {
233
+ by_order: ["orderId", "_creationTime"];
234
+ by_customer: ["customerId", "_creationTime"];
235
+ by_status: ["status", "_creationTime"];
236
+ by_created: ["createdAt", "_creationTime"];
237
+ }, {}, {}>;
238
+ loyaltyPoints: import("convex/server").TableDefinition<import("convex/values").VObject<{
239
+ lastEarnedAt?: number | undefined;
240
+ lastRedeemedAt?: number | undefined;
241
+ isDeleted: boolean;
242
+ customerId: import("convex/values").GenericId<"users">;
243
+ points: number;
244
+ totalEarned: number;
245
+ totalRedeemed: number;
246
+ }, {
247
+ customerId: import("convex/values").VId<import("convex/values").GenericId<"users">, "required">;
248
+ points: import("convex/values").VFloat64<number, "required">;
249
+ totalEarned: import("convex/values").VFloat64<number, "required">;
250
+ totalRedeemed: import("convex/values").VFloat64<number, "required">;
251
+ lastEarnedAt: import("convex/values").VFloat64<number | undefined, "optional">;
252
+ lastRedeemedAt: import("convex/values").VFloat64<number | undefined, "optional">;
253
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
254
+ }, "required", "isDeleted" | "customerId" | "points" | "totalEarned" | "totalRedeemed" | "lastEarnedAt" | "lastRedeemedAt">, {
255
+ by_customer: ["customerId", "_creationTime"];
256
+ }, {}, {}>;
257
+ loyaltyTransactions: import("convex/server").TableDefinition<import("convex/values").VObject<{
258
+ createdBy?: import("convex/values").GenericId<"admins"> | undefined;
259
+ orderId?: import("convex/values").GenericId<"orders"> | undefined;
260
+ description?: string | undefined;
261
+ createdAt: number;
262
+ isDeleted: boolean;
263
+ type: "earned" | "redeemed" | "expired" | "adjusted";
264
+ customerId: import("convex/values").GenericId<"users">;
265
+ points: number;
266
+ balanceAfter: number;
267
+ }, {
268
+ customerId: import("convex/values").VId<import("convex/values").GenericId<"users">, "required">;
269
+ orderId: import("convex/values").VId<import("convex/values").GenericId<"orders"> | undefined, "optional">;
270
+ type: import("convex/values").VUnion<"earned" | "redeemed" | "expired" | "adjusted", [import("convex/values").VLiteral<"earned", "required">, import("convex/values").VLiteral<"redeemed", "required">, import("convex/values").VLiteral<"expired", "required">, import("convex/values").VLiteral<"adjusted", "required">], "required", never>;
271
+ points: import("convex/values").VFloat64<number, "required">;
272
+ balanceAfter: import("convex/values").VFloat64<number, "required">;
273
+ description: import("convex/values").VString<string | undefined, "optional">;
274
+ createdAt: import("convex/values").VFloat64<number, "required">;
275
+ createdBy: import("convex/values").VId<import("convex/values").GenericId<"admins"> | undefined, "optional">;
276
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
277
+ }, "required", "createdAt" | "isDeleted" | "type" | "createdBy" | "customerId" | "orderId" | "points" | "balanceAfter" | "description">, {
278
+ by_customer: ["customerId", "_creationTime"];
279
+ by_order: ["orderId", "_creationTime"];
280
+ by_created: ["createdAt", "_creationTime"];
281
+ }, {}, {}>;
282
+ attendanceLogs: import("convex/server").TableDefinition<import("convex/values").VObject<{
283
+ clockOutAt?: number | undefined;
284
+ deviceId?: string | undefined;
285
+ deviceInfo?: string | undefined;
286
+ isDeleted: boolean;
287
+ branchId: import("convex/values").GenericId<"branches">;
288
+ isActive: boolean;
289
+ attendantId: import("convex/values").GenericId<"attendants">;
290
+ clockInAt: number;
291
+ }, {
292
+ attendantId: import("convex/values").VId<import("convex/values").GenericId<"attendants">, "required">;
293
+ branchId: import("convex/values").VId<import("convex/values").GenericId<"branches">, "required">;
294
+ clockInAt: import("convex/values").VFloat64<number, "required">;
295
+ clockOutAt: import("convex/values").VFloat64<number | undefined, "optional">;
296
+ deviceId: import("convex/values").VString<string | undefined, "optional">;
297
+ deviceInfo: import("convex/values").VString<string | undefined, "optional">;
298
+ isActive: import("convex/values").VBoolean<boolean, "required">;
299
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
300
+ }, "required", "isDeleted" | "branchId" | "isActive" | "attendantId" | "clockInAt" | "clockOutAt" | "deviceId" | "deviceInfo">, {
301
+ by_attendant: ["attendantId", "_creationTime"];
302
+ by_branch: ["branchId", "_creationTime"];
303
+ by_clock_in: ["clockInAt", "_creationTime"];
304
+ by_active: ["isActive", "_creationTime"];
305
+ }, {}, {}>;
306
+ resourceUsageLogs: import("convex/server").TableDefinition<import("convex/values").VObject<{
307
+ notes?: string | undefined;
308
+ waterCycles?: number | undefined;
309
+ isDeleted: boolean;
310
+ branchId: import("convex/values").GenericId<"branches">;
311
+ attendantId: import("convex/values").GenericId<"attendants">;
312
+ date: string;
313
+ detergentUnits: number;
314
+ tokensUsed: number;
315
+ loggedAt: number;
316
+ }, {
317
+ branchId: import("convex/values").VId<import("convex/values").GenericId<"branches">, "required">;
318
+ attendantId: import("convex/values").VId<import("convex/values").GenericId<"attendants">, "required">;
319
+ date: import("convex/values").VString<string, "required">;
320
+ detergentUnits: import("convex/values").VFloat64<number, "required">;
321
+ tokensUsed: import("convex/values").VFloat64<number, "required">;
322
+ waterCycles: import("convex/values").VFloat64<number | undefined, "optional">;
323
+ loggedAt: import("convex/values").VFloat64<number, "required">;
324
+ notes: import("convex/values").VString<string | undefined, "optional">;
325
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
326
+ }, "required", "isDeleted" | "branchId" | "notes" | "attendantId" | "date" | "detergentUnits" | "tokensUsed" | "waterCycles" | "loggedAt">, {
327
+ by_branch: ["branchId", "_creationTime"];
328
+ by_date: ["date", "_creationTime"];
329
+ by_attendant: ["attendantId", "_creationTime"];
330
+ by_branch_date: ["branchId", "date", "_creationTime"];
331
+ }, {}, {}>;
332
+ auditLogs: import("convex/server").TableDefinition<import("convex/values").VObject<{
333
+ branchId?: import("convex/values").GenericId<"branches"> | undefined;
334
+ deviceId?: string | undefined;
335
+ entityId?: string | undefined;
336
+ ipAddress?: string | undefined;
337
+ details?: string | undefined;
338
+ oldValue?: string | undefined;
339
+ newValue?: string | undefined;
340
+ actorId: string;
341
+ actorType: "admin" | "customer" | "attendant";
342
+ actorRole: string;
343
+ action: string;
344
+ entityType: string;
345
+ timestamp: number;
346
+ }, {
347
+ actorId: import("convex/values").VString<string, "required">;
348
+ actorType: import("convex/values").VUnion<"admin" | "customer" | "attendant", [import("convex/values").VLiteral<"customer", "required">, import("convex/values").VLiteral<"attendant", "required">, import("convex/values").VLiteral<"admin", "required">], "required", never>;
349
+ actorRole: import("convex/values").VString<string, "required">;
350
+ action: import("convex/values").VString<string, "required">;
351
+ entityType: import("convex/values").VString<string, "required">;
352
+ entityId: import("convex/values").VString<string | undefined, "optional">;
353
+ branchId: import("convex/values").VId<import("convex/values").GenericId<"branches"> | undefined, "optional">;
354
+ deviceId: import("convex/values").VString<string | undefined, "optional">;
355
+ ipAddress: import("convex/values").VString<string | undefined, "optional">;
356
+ details: import("convex/values").VString<string | undefined, "optional">;
357
+ oldValue: import("convex/values").VString<string | undefined, "optional">;
358
+ newValue: import("convex/values").VString<string | undefined, "optional">;
359
+ timestamp: import("convex/values").VFloat64<number, "required">;
360
+ }, "required", "branchId" | "deviceId" | "actorId" | "actorType" | "actorRole" | "action" | "entityType" | "entityId" | "ipAddress" | "details" | "oldValue" | "newValue" | "timestamp">, {
361
+ by_actor: ["actorId", "actorType", "_creationTime"];
362
+ by_action: ["action", "_creationTime"];
363
+ by_entity: ["entityType", "entityId", "_creationTime"];
364
+ by_timestamp: ["timestamp", "_creationTime"];
365
+ by_branch: ["branchId", "_creationTime"];
366
+ }, {}, {}>;
367
+ }, true>;
368
+ export default _default;
369
+ //# sourceMappingURL=schema.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devlider001/washlab-backend",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Washlab backend - Convex API package for Lider Technology Ltd",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -21,6 +21,8 @@
21
21
  "files": [
22
22
  "dist",
23
23
  "convex/_generated",
24
+ "convex/*.d.ts",
25
+ "convex/lib/*.d.ts",
24
26
  "README.md"
25
27
  ],
26
28
  "repository": {