@devlider001/washlab-backend 1.1.4 → 1.1.51

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.
@@ -130,8 +130,9 @@ export declare const getPending: import("convex/server").RegisteredQuery<"public
130
130
  deliveryRoom?: string | undefined;
131
131
  paymentMethod?: "mobile_money" | "card" | "cash" | undefined;
132
132
  paymentId?: import("convex/values").GenericId<"payments"> | undefined;
133
+ assignedTo?: import("convex/values").GenericId<"attendants"> | undefined;
133
134
  fulfilledBy?: import("convex/values").GenericId<"attendants"> | undefined;
134
- status: "pending" | "in_progress" | "ready_for_pickup" | "delivered" | "completed" | "cancelled";
135
+ status: "pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered";
135
136
  createdAt: number;
136
137
  isDeleted: boolean;
137
138
  branchId: import("convex/values").GenericId<"branches">;
@@ -177,6 +178,7 @@ export declare const getAttendants: import("convex/server").RegisteredQuery<"pub
177
178
  clerkUserId?: string | undefined;
178
179
  lastLoginAt?: number | undefined;
179
180
  passcodeHash?: string | undefined;
181
+ passcodeSalt?: string | undefined;
180
182
  authenticationMethods?: ("biometric_face" | "biometric_hand" | "pin" | "password")[] | undefined;
181
183
  enrollmentTokenHash?: string | undefined;
182
184
  enrollmentTokenExpiresAt?: number | undefined;
@@ -202,7 +204,7 @@ export declare const getAttendants: import("convex/server").RegisteredQuery<"pub
202
204
  isDeleted: boolean;
203
205
  branchId: import("convex/values").GenericId<"branches">;
204
206
  isActive: boolean;
205
- enrollmentStatus: "active" | "suspended" | "invited" | "enrolling" | "locked";
207
+ enrollmentStatus: "active" | "suspended" | "invited" | "enrolling" | "biometric_complete" | "locked";
206
208
  consecutiveFailures: number;
207
209
  createdBy: import("convex/values").GenericId<"admins">;
208
210
  }[];
@@ -214,8 +216,9 @@ export declare const getAttendants: import("convex/server").RegisteredQuery<"pub
214
216
  * Supports usePaginatedQuery for infinite scroll
215
217
  */
216
218
  export declare const getOrders: import("convex/server").RegisteredQuery<"public", {
217
- status?: "pending" | "in_progress" | "ready_for_pickup" | "delivered" | "completed" | "cancelled" | undefined;
219
+ status?: "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered" | undefined;
218
220
  branchId?: import("convex/values").GenericId<"branches"> | undefined;
221
+ orderType?: "walk_in" | "online" | undefined;
219
222
  startDate?: number | undefined;
220
223
  endDate?: number | undefined;
221
224
  paginationOpts: {
@@ -245,8 +248,9 @@ export declare const getOrders: import("convex/server").RegisteredQuery<"public"
245
248
  deliveryRoom?: string | undefined;
246
249
  paymentMethod?: "mobile_money" | "card" | "cash" | undefined;
247
250
  paymentId?: import("convex/values").GenericId<"payments"> | undefined;
251
+ assignedTo?: import("convex/values").GenericId<"attendants"> | undefined;
248
252
  fulfilledBy?: import("convex/values").GenericId<"attendants"> | undefined;
249
- status: "pending" | "in_progress" | "ready_for_pickup" | "delivered" | "completed" | "cancelled";
253
+ status: "pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered";
250
254
  createdAt: number;
251
255
  isDeleted: boolean;
252
256
  branchId: import("convex/values").GenericId<"branches">;
@@ -479,7 +483,7 @@ export declare const createFirstSuperAdmin: import("convex/server").RegisteredMu
479
483
  export declare const updateOrderStatus: import("convex/server").RegisteredMutation<"public", {
480
484
  notes?: string | undefined;
481
485
  orderId: import("convex/values").GenericId<"orders">;
482
- newStatus: "pending" | "in_progress" | "ready_for_pickup" | "delivered" | "completed" | "cancelled";
486
+ newStatus: "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered";
483
487
  }, Promise<import("convex/values").GenericId<"orders">>>;
484
488
  /**
485
489
  * Admin: Delete order (soft delete)
@@ -523,8 +527,9 @@ export declare const getOrderDetails: import("convex/server").RegisteredQuery<"p
523
527
  deliveryRoom?: string | undefined;
524
528
  paymentMethod?: "mobile_money" | "card" | "cash" | undefined;
525
529
  paymentId?: import("convex/values").GenericId<"payments"> | undefined;
530
+ assignedTo?: import("convex/values").GenericId<"attendants"> | undefined;
526
531
  fulfilledBy?: import("convex/values").GenericId<"attendants"> | undefined;
527
- status: "pending" | "in_progress" | "ready_for_pickup" | "delivered" | "completed" | "cancelled";
532
+ status: "pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered";
528
533
  createdAt: number;
529
534
  isDeleted: boolean;
530
535
  branchId: import("convex/values").GenericId<"branches">;
@@ -572,8 +577,9 @@ export declare const getByOrderNumber: import("convex/server").RegisteredQuery<"
572
577
  deliveryRoom?: string | undefined;
573
578
  paymentMethod?: "mobile_money" | "card" | "cash" | undefined;
574
579
  paymentId?: import("convex/values").GenericId<"payments"> | undefined;
580
+ assignedTo?: import("convex/values").GenericId<"attendants"> | undefined;
575
581
  fulfilledBy?: import("convex/values").GenericId<"attendants"> | undefined;
576
- status: "pending" | "in_progress" | "ready_for_pickup" | "delivered" | "completed" | "cancelled";
582
+ status: "pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered";
577
583
  createdAt: number;
578
584
  isDeleted: boolean;
579
585
  branchId: import("convex/values").GenericId<"branches">;
@@ -15,7 +15,7 @@ export declare const getByOrder: import("convex/server").RegisteredQuery<"public
15
15
  gatewayResponse?: string | undefined;
16
16
  completedAt?: number | undefined;
17
17
  processedBy?: import("convex/values").GenericId<"attendants"> | undefined;
18
- status: "pending" | "completed" | "failed" | "refunded" | "processing";
18
+ status: "completed" | "pending" | "failed" | "refunded" | "processing";
19
19
  createdAt: number;
20
20
  isDeleted: boolean;
21
21
  customerId: import("convex/values").GenericId<"users">;
@@ -57,8 +57,9 @@ export declare const getByCustomer: import("convex/server").RegisteredQuery<"pub
57
57
  deliveryRoom?: string | undefined;
58
58
  paymentMethod?: "mobile_money" | "card" | "cash" | undefined;
59
59
  paymentId?: import("convex/values").GenericId<"payments"> | undefined;
60
+ assignedTo?: import("convex/values").GenericId<"attendants"> | undefined;
60
61
  fulfilledBy?: import("convex/values").GenericId<"attendants"> | undefined;
61
- status: "pending" | "in_progress" | "ready_for_pickup" | "delivered" | "completed" | "cancelled";
62
+ status: "pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered";
62
63
  createdAt: number;
63
64
  isDeleted: boolean;
64
65
  branchId: import("convex/values").GenericId<"branches">;
@@ -88,7 +89,7 @@ export declare const getByCustomer: import("convex/server").RegisteredQuery<"pub
88
89
  gatewayResponse?: string | undefined;
89
90
  completedAt?: number | undefined;
90
91
  processedBy?: import("convex/values").GenericId<"attendants"> | undefined;
91
- status: "pending" | "completed" | "failed" | "refunded" | "processing";
92
+ status: "completed" | "pending" | "failed" | "refunded" | "processing";
92
93
  createdAt: number;
93
94
  isDeleted: boolean;
94
95
  customerId: import("convex/values").GenericId<"users">;
@@ -146,7 +147,7 @@ export declare const refund: import("convex/server").RegisteredMutation<"public"
146
147
  * Supports usePaginatedQuery for infinite scroll
147
148
  */
148
149
  export declare const getTransactionHistory: import("convex/server").RegisteredQuery<"public", {
149
- status?: "pending" | "completed" | "failed" | "refunded" | "processing" | undefined;
150
+ status?: "completed" | "pending" | "failed" | "refunded" | "processing" | undefined;
150
151
  branchId?: import("convex/values").GenericId<"branches"> | undefined;
151
152
  paymentMethod?: "mobile_money" | "card" | "cash" | undefined;
152
153
  startDate?: number | undefined;
@@ -179,8 +180,9 @@ export declare const getTransactionHistory: import("convex/server").RegisteredQu
179
180
  deliveryRoom?: string | undefined;
180
181
  paymentMethod?: "mobile_money" | "card" | "cash" | undefined;
181
182
  paymentId?: import("convex/values").GenericId<"payments"> | undefined;
183
+ assignedTo?: import("convex/values").GenericId<"attendants"> | undefined;
182
184
  fulfilledBy?: import("convex/values").GenericId<"attendants"> | undefined;
183
- status: "pending" | "in_progress" | "ready_for_pickup" | "delivered" | "completed" | "cancelled";
185
+ status: "pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered";
184
186
  createdAt: number;
185
187
  isDeleted: boolean;
186
188
  branchId: import("convex/values").GenericId<"branches">;
@@ -248,7 +250,7 @@ export declare const getTransactionHistory: import("convex/server").RegisteredQu
248
250
  gatewayResponse?: string | undefined;
249
251
  completedAt?: number | undefined;
250
252
  processedBy?: import("convex/values").GenericId<"attendants"> | undefined;
251
- status: "pending" | "completed" | "failed" | "refunded" | "processing";
253
+ status: "completed" | "pending" | "failed" | "refunded" | "processing";
252
254
  createdAt: number;
253
255
  isDeleted: boolean;
254
256
  customerId: import("convex/values").GenericId<"users">;
@@ -45,6 +45,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
45
45
  clerkUserId?: string | undefined;
46
46
  lastLoginAt?: number | undefined;
47
47
  passcodeHash?: string | undefined;
48
+ passcodeSalt?: string | undefined;
48
49
  authenticationMethods?: ("biometric_face" | "biometric_hand" | "pin" | "password")[] | undefined;
49
50
  enrollmentTokenHash?: string | undefined;
50
51
  enrollmentTokenExpiresAt?: number | undefined;
@@ -70,7 +71,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
70
71
  isDeleted: boolean;
71
72
  branchId: import("convex/values").GenericId<"branches">;
72
73
  isActive: boolean;
73
- enrollmentStatus: "active" | "suspended" | "invited" | "enrolling" | "locked";
74
+ enrollmentStatus: "active" | "suspended" | "invited" | "enrolling" | "biometric_complete" | "locked";
74
75
  consecutiveFailures: number;
75
76
  createdBy: import("convex/values").GenericId<"admins">;
76
77
  }, {
@@ -79,10 +80,11 @@ declare const _default: import("convex/server").SchemaDefinition<{
79
80
  phoneNumber: import("convex/values").VString<string, "required">;
80
81
  clerkUserId: import("convex/values").VString<string | undefined, "optional">;
81
82
  passcodeHash: import("convex/values").VString<string | undefined, "optional">;
83
+ passcodeSalt: import("convex/values").VString<string | undefined, "optional">;
82
84
  authenticationMethods: import("convex/values").VArray<("biometric_face" | "biometric_hand" | "pin" | "password")[] | undefined, import("convex/values").VUnion<"biometric_face" | "biometric_hand" | "pin" | "password", [import("convex/values").VLiteral<"biometric_face", "required">, import("convex/values").VLiteral<"biometric_hand", "required">, import("convex/values").VLiteral<"pin", "required">, import("convex/values").VLiteral<"password", "required">], "required", never>, "optional">;
83
85
  branchId: import("convex/values").VId<import("convex/values").GenericId<"branches">, "required">;
84
86
  isActive: import("convex/values").VBoolean<boolean, "required">;
85
- enrollmentStatus: import("convex/values").VUnion<"active" | "suspended" | "invited" | "enrolling" | "locked", [import("convex/values").VLiteral<"invited", "required">, import("convex/values").VLiteral<"enrolling", "required">, import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"suspended", "required">, import("convex/values").VLiteral<"locked", "required">], "required", never>;
87
+ enrollmentStatus: import("convex/values").VUnion<"active" | "suspended" | "invited" | "enrolling" | "biometric_complete" | "locked", [import("convex/values").VLiteral<"invited", "required">, import("convex/values").VLiteral<"enrolling", "required">, import("convex/values").VLiteral<"biometric_complete", "required">, import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"suspended", "required">, import("convex/values").VLiteral<"locked", "required">], "required", never>;
86
88
  enrollmentTokenHash: import("convex/values").VString<string | undefined, "optional">;
87
89
  enrollmentTokenExpiresAt: import("convex/values").VFloat64<number | undefined, "optional">;
88
90
  enrolledAt: import("convex/values").VFloat64<number | undefined, "optional">;
@@ -112,7 +114,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
112
114
  createdBy: import("convex/values").VId<import("convex/values").GenericId<"admins">, "required">;
113
115
  lastLoginAt: import("convex/values").VFloat64<number | undefined, "optional">;
114
116
  isDeleted: import("convex/values").VBoolean<boolean, "required">;
115
- }, "required", "phoneNumber" | "email" | "name" | "clerkUserId" | "createdAt" | "lastLoginAt" | "isDeleted" | "passcodeHash" | "authenticationMethods" | "branchId" | "isActive" | "enrollmentStatus" | "enrollmentTokenHash" | "enrollmentTokenExpiresAt" | "enrolledAt" | "enrolledBy" | "biometricTemplateHash" | "biometricDataEncrypted" | "biometricCaptureMetadata" | "lastVerificationAt" | "lastVerificationSuccess" | "consecutiveFailures" | "verificationTimeoutAt" | "createdBy" | "biometricCaptureMetadata.captureType" | "biometricCaptureMetadata.anglesCaptured" | "biometricCaptureMetadata.captureQuality" | "biometricCaptureMetadata.livenessPassed" | "biometricCaptureMetadata.deviceInfo" | "biometricCaptureMetadata.captureTimestamp">, {
117
+ }, "required", "phoneNumber" | "email" | "name" | "clerkUserId" | "createdAt" | "lastLoginAt" | "isDeleted" | "passcodeHash" | "passcodeSalt" | "authenticationMethods" | "branchId" | "isActive" | "enrollmentStatus" | "enrollmentTokenHash" | "enrollmentTokenExpiresAt" | "enrolledAt" | "enrolledBy" | "biometricTemplateHash" | "biometricDataEncrypted" | "biometricCaptureMetadata" | "lastVerificationAt" | "lastVerificationSuccess" | "consecutiveFailures" | "verificationTimeoutAt" | "createdBy" | "biometricCaptureMetadata.captureType" | "biometricCaptureMetadata.anglesCaptured" | "biometricCaptureMetadata.captureQuality" | "biometricCaptureMetadata.livenessPassed" | "biometricCaptureMetadata.deviceInfo" | "biometricCaptureMetadata.captureTimestamp">, {
116
118
  by_branch: ["branchId", "_creationTime"];
117
119
  by_email: ["email", "_creationTime"];
118
120
  by_phone: ["phoneNumber", "_creationTime"];
@@ -196,8 +198,9 @@ declare const _default: import("convex/server").SchemaDefinition<{
196
198
  deliveryRoom?: string | undefined;
197
199
  paymentMethod?: "mobile_money" | "card" | "cash" | undefined;
198
200
  paymentId?: import("convex/values").GenericId<"payments"> | undefined;
201
+ assignedTo?: import("convex/values").GenericId<"attendants"> | undefined;
199
202
  fulfilledBy?: import("convex/values").GenericId<"attendants"> | undefined;
200
- status: "pending" | "in_progress" | "ready_for_pickup" | "delivered" | "completed" | "cancelled";
203
+ status: "pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered";
201
204
  createdAt: number;
202
205
  isDeleted: boolean;
203
206
  branchId: import("convex/values").GenericId<"branches">;
@@ -244,13 +247,14 @@ declare const _default: import("convex/server").SchemaDefinition<{
244
247
  deliveryFee: import("convex/values").VFloat64<number, "required">;
245
248
  totalPrice: import("convex/values").VFloat64<number, "required">;
246
249
  finalPrice: import("convex/values").VFloat64<number, "required">;
247
- 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>;
250
+ status: import("convex/values").VUnion<"pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered", [import("convex/values").VLiteral<"pending_dropoff", "required">, import("convex/values").VLiteral<"checked_in", "required">, import("convex/values").VLiteral<"sorting", "required">, import("convex/values").VLiteral<"washing", "required">, import("convex/values").VLiteral<"drying", "required">, import("convex/values").VLiteral<"folding", "required">, import("convex/values").VLiteral<"ready", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"cancelled", "required">, 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">], "required", never>;
248
251
  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>;
249
252
  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>;
250
253
  paymentId: import("convex/values").VId<import("convex/values").GenericId<"payments"> | undefined, "optional">;
251
254
  createdAt: import("convex/values").VFloat64<number, "required">;
252
255
  updatedAt: import("convex/values").VFloat64<number, "required">;
253
256
  createdBy: import("convex/values").VId<import("convex/values").GenericId<"attendants"> | undefined, "optional">;
257
+ assignedTo: import("convex/values").VId<import("convex/values").GenericId<"attendants"> | undefined, "optional">;
254
258
  fulfilledBy: import("convex/values").VId<import("convex/values").GenericId<"attendants"> | undefined, "optional">;
255
259
  statusHistory: import("convex/values").VArray<{
256
260
  notes?: string | undefined;
@@ -272,7 +276,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
272
276
  notes: import("convex/values").VString<string | undefined, "optional">;
273
277
  }, "required", "status" | "notes" | "changedAt" | "changedBy" | "changedByAdmin">, "required">;
274
278
  isDeleted: import("convex/values").VBoolean<boolean, "required">;
275
- }, "required", "status" | "createdAt" | "isDeleted" | "branchId" | "createdBy" | "deliveryFee" | "customerId" | "customerPhoneNumber" | "customerEmail" | "orderNumber" | "orderType" | "serviceType" | "estimatedWeight" | "actualWeight" | "itemCount" | "estimatedLoads" | "whitesSeparate" | "bagCardNumber" | "notes" | "isDelivery" | "deliveryAddress" | "deliveryPhoneNumber" | "deliveryHall" | "deliveryRoom" | "basePrice" | "totalPrice" | "finalPrice" | "paymentStatus" | "paymentMethod" | "paymentId" | "updatedAt" | "fulfilledBy" | "statusHistory">, {
279
+ }, "required", "status" | "createdAt" | "isDeleted" | "branchId" | "createdBy" | "deliveryFee" | "customerId" | "customerPhoneNumber" | "customerEmail" | "orderNumber" | "orderType" | "serviceType" | "estimatedWeight" | "actualWeight" | "itemCount" | "estimatedLoads" | "whitesSeparate" | "bagCardNumber" | "notes" | "isDelivery" | "deliveryAddress" | "deliveryPhoneNumber" | "deliveryHall" | "deliveryRoom" | "basePrice" | "totalPrice" | "finalPrice" | "paymentStatus" | "paymentMethod" | "paymentId" | "updatedAt" | "assignedTo" | "fulfilledBy" | "statusHistory">, {
276
280
  by_customer: ["customerId", "_creationTime"];
277
281
  by_branch: ["branchId", "_creationTime"];
278
282
  by_status: ["status", "_creationTime"];
@@ -287,7 +291,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
287
291
  gatewayResponse?: string | undefined;
288
292
  completedAt?: number | undefined;
289
293
  processedBy?: import("convex/values").GenericId<"attendants"> | undefined;
290
- status: "pending" | "completed" | "failed" | "refunded" | "processing";
294
+ status: "completed" | "pending" | "failed" | "refunded" | "processing";
291
295
  createdAt: number;
292
296
  isDeleted: boolean;
293
297
  customerId: import("convex/values").GenericId<"users">;
@@ -301,7 +305,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
301
305
  amount: import("convex/values").VFloat64<number, "required">;
302
306
  currency: import("convex/values").VString<string, "required">;
303
307
  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>;
304
- 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>;
308
+ status: import("convex/values").VUnion<"completed" | "pending" | "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>;
305
309
  gatewayTransactionId: import("convex/values").VString<string | undefined, "optional">;
306
310
  gatewayResponse: import("convex/values").VString<string | undefined, "optional">;
307
311
  createdAt: import("convex/values").VFloat64<number, "required">;
@@ -774,7 +778,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
774
778
  biometricEnrollments: import("convex/server").TableDefinition<import("convex/values").VObject<{
775
779
  enrolledAt?: number | undefined;
776
780
  deviceInfo?: string | undefined;
777
- status: "pending" | "in_progress" | "completed" | "failed" | "expired";
781
+ status: "completed" | "pending" | "in_progress" | "failed" | "expired";
778
782
  isDeleted: boolean;
779
783
  branchId: import("convex/values").GenericId<"branches">;
780
784
  enrollmentTokenHash: string;
@@ -793,7 +797,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
793
797
  attendantId: import("convex/values").VId<import("convex/values").GenericId<"attendants">, "required">;
794
798
  branchId: import("convex/values").VId<import("convex/values").GenericId<"branches">, "required">;
795
799
  enrollmentTokenHash: import("convex/values").VString<string, "required">;
796
- status: import("convex/values").VUnion<"pending" | "in_progress" | "completed" | "failed" | "expired", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"in_progress", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"expired", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
800
+ status: import("convex/values").VUnion<"completed" | "pending" | "in_progress" | "failed" | "expired", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"in_progress", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"expired", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
797
801
  tokenCreatedAt: import("convex/values").VFloat64<number, "required">;
798
802
  tokenExpiresAt: import("convex/values").VFloat64<number, "required">;
799
803
  enrolledAt: import("convex/values").VFloat64<number | undefined, "optional">;
@@ -829,7 +833,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
829
833
  deviceInfo?: string | undefined;
830
834
  ipAddress?: string | undefined;
831
835
  confidenceScore?: number | undefined;
832
- fallbackUsed?: "otp" | "admin_verification" | "device_pin" | undefined;
836
+ fallbackUsed?: "pin" | "otp" | "admin_verification" | "device_pin" | undefined;
833
837
  actionContext?: {
834
838
  orderId?: import("convex/values").GenericId<"orders"> | undefined;
835
839
  amount?: number | undefined;
@@ -865,7 +869,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
865
869
  success: import("convex/values").VBoolean<boolean, "required">;
866
870
  confidenceScore: import("convex/values").VFloat64<number | undefined, "optional">;
867
871
  matchThreshold: import("convex/values").VFloat64<number | undefined, "optional">;
868
- fallbackUsed: import("convex/values").VUnion<"otp" | "admin_verification" | "device_pin" | undefined, [import("convex/values").VLiteral<"otp", "required">, import("convex/values").VLiteral<"admin_verification", "required">, import("convex/values").VLiteral<"device_pin", "required">], "optional", never>;
872
+ fallbackUsed: import("convex/values").VUnion<"pin" | "otp" | "admin_verification" | "device_pin" | undefined, [import("convex/values").VLiteral<"otp", "required">, import("convex/values").VLiteral<"admin_verification", "required">, import("convex/values").VLiteral<"device_pin", "required">, import("convex/values").VLiteral<"pin", "required">], "optional", never>;
869
873
  captureMetadata: import("convex/values").VObject<{
870
874
  deviceInfo?: string | undefined;
871
875
  captureType: "face" | "hand";
@@ -903,13 +907,13 @@ declare const _default: import("convex/server").SchemaDefinition<{
903
907
  attendantId: import("convex/values").GenericId<"attendants">;
904
908
  attendanceId: import("convex/values").GenericId<"attendanceLogs">;
905
909
  actionType: string;
906
- actionStatus: "pending" | "completed" | "cancelled" | "failed";
910
+ actionStatus: "completed" | "cancelled" | "pending" | "failed";
907
911
  }, {
908
912
  attendanceId: import("convex/values").VId<import("convex/values").GenericId<"attendanceLogs">, "required">;
909
913
  attendantId: import("convex/values").VId<import("convex/values").GenericId<"attendants">, "required">;
910
914
  branchId: import("convex/values").VId<import("convex/values").GenericId<"branches">, "required">;
911
915
  actionType: import("convex/values").VString<string, "required">;
912
- actionStatus: import("convex/values").VUnion<"pending" | "completed" | "cancelled" | "failed", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"cancelled", "required">], "required", never>;
916
+ actionStatus: import("convex/values").VUnion<"completed" | "cancelled" | "pending" | "failed", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"cancelled", "required">], "required", never>;
913
917
  entityType: import("convex/values").VString<string | undefined, "optional">;
914
918
  entityId: import("convex/values").VId<import("convex/values").GenericId<"orders"> | undefined, "optional">;
915
919
  actionData: import("convex/values").VString<string | undefined, "optional">;
@@ -928,6 +932,108 @@ declare const _default: import("convex/server").SchemaDefinition<{
928
932
  by_created_at: ["createdAt", "_creationTime"];
929
933
  by_attendance_created: ["attendanceId", "createdAt", "_creationTime"];
930
934
  }, {}, {}>;
935
+ systemSettings: import("convex/server").TableDefinition<import("convex/values").VObject<{
936
+ isDeleted: boolean;
937
+ updatedAt: number;
938
+ businessName: string;
939
+ contactPhone: string;
940
+ contactEmail: string;
941
+ notifyNewOrders: boolean;
942
+ notifyCompletedOrders: boolean;
943
+ requireBiometricPayment: boolean;
944
+ autoLogoutMinutes: number;
945
+ updatedBy: import("convex/values").GenericId<"admins">;
946
+ }, {
947
+ businessName: import("convex/values").VString<string, "required">;
948
+ contactPhone: import("convex/values").VString<string, "required">;
949
+ contactEmail: import("convex/values").VString<string, "required">;
950
+ notifyNewOrders: import("convex/values").VBoolean<boolean, "required">;
951
+ notifyCompletedOrders: import("convex/values").VBoolean<boolean, "required">;
952
+ requireBiometricPayment: import("convex/values").VBoolean<boolean, "required">;
953
+ autoLogoutMinutes: import("convex/values").VFloat64<number, "required">;
954
+ updatedAt: import("convex/values").VFloat64<number, "required">;
955
+ updatedBy: import("convex/values").VId<import("convex/values").GenericId<"admins">, "required">;
956
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
957
+ }, "required", "isDeleted" | "updatedAt" | "businessName" | "contactPhone" | "contactEmail" | "notifyNewOrders" | "notifyCompletedOrders" | "requireBiometricPayment" | "autoLogoutMinutes" | "updatedBy">, {}, {}, {}>;
958
+ services: import("convex/server").TableDefinition<import("convex/values").VObject<{
959
+ description?: string | undefined;
960
+ updatedBy?: import("convex/values").GenericId<"admins"> | undefined;
961
+ imageStorageId?: import("convex/values").GenericId<"_storage"> | undefined;
962
+ imageUrl?: string | undefined;
963
+ name: string;
964
+ createdAt: number;
965
+ isDeleted: boolean;
966
+ isActive: boolean;
967
+ createdBy: import("convex/values").GenericId<"admins">;
968
+ code: string;
969
+ basePrice: number;
970
+ updatedAt: number;
971
+ pricingType: "per_kg" | "per_load";
972
+ }, {
973
+ name: import("convex/values").VString<string, "required">;
974
+ code: import("convex/values").VString<string, "required">;
975
+ description: import("convex/values").VString<string | undefined, "optional">;
976
+ imageStorageId: import("convex/values").VId<import("convex/values").GenericId<"_storage"> | undefined, "optional">;
977
+ imageUrl: import("convex/values").VString<string | undefined, "optional">;
978
+ basePrice: import("convex/values").VFloat64<number, "required">;
979
+ pricingType: import("convex/values").VUnion<"per_kg" | "per_load", [import("convex/values").VLiteral<"per_kg", "required">, import("convex/values").VLiteral<"per_load", "required">], "required", never>;
980
+ isActive: import("convex/values").VBoolean<boolean, "required">;
981
+ createdAt: import("convex/values").VFloat64<number, "required">;
982
+ createdBy: import("convex/values").VId<import("convex/values").GenericId<"admins">, "required">;
983
+ updatedAt: import("convex/values").VFloat64<number, "required">;
984
+ updatedBy: import("convex/values").VId<import("convex/values").GenericId<"admins"> | undefined, "optional">;
985
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
986
+ }, "required", "name" | "createdAt" | "isDeleted" | "isActive" | "createdBy" | "code" | "basePrice" | "updatedAt" | "description" | "updatedBy" | "imageStorageId" | "imageUrl" | "pricingType">, {
987
+ by_code: ["code", "_creationTime"];
988
+ by_active: ["isActive", "_creationTime"];
989
+ }, {}, {}>;
990
+ inventoryItems: import("convex/server").TableDefinition<import("convex/values").VObject<{
991
+ createdBy?: import("convex/values").GenericId<"admins"> | undefined;
992
+ description?: string | undefined;
993
+ updatedBy?: import("convex/values").GenericId<"admins"> | undefined;
994
+ orderedAt?: number | undefined;
995
+ expectedArrivalDate?: number | undefined;
996
+ arrivalDate?: number | undefined;
997
+ orderQuantity?: number | undefined;
998
+ lastRestockedAt?: number | undefined;
999
+ name: string;
1000
+ status: "low" | "critical" | "ok" | "ordered";
1001
+ createdAt: number;
1002
+ isDeleted: boolean;
1003
+ branchId: import("convex/values").GenericId<"branches">;
1004
+ updatedAt: number;
1005
+ category: "cleaning_supplies" | "add_ons" | "facility" | "retail" | "operational";
1006
+ unit: string;
1007
+ currentStock: number;
1008
+ maxStock: number;
1009
+ minStock: number;
1010
+ reorderPoint: number;
1011
+ }, {
1012
+ name: import("convex/values").VString<string, "required">;
1013
+ category: import("convex/values").VUnion<"cleaning_supplies" | "add_ons" | "facility" | "retail" | "operational", [import("convex/values").VLiteral<"cleaning_supplies", "required">, import("convex/values").VLiteral<"add_ons", "required">, import("convex/values").VLiteral<"facility", "required">, import("convex/values").VLiteral<"retail", "required">, import("convex/values").VLiteral<"operational", "required">], "required", never>;
1014
+ unit: import("convex/values").VString<string, "required">;
1015
+ description: import("convex/values").VString<string | undefined, "optional">;
1016
+ currentStock: import("convex/values").VFloat64<number, "required">;
1017
+ maxStock: import("convex/values").VFloat64<number, "required">;
1018
+ minStock: import("convex/values").VFloat64<number, "required">;
1019
+ reorderPoint: import("convex/values").VFloat64<number, "required">;
1020
+ status: import("convex/values").VUnion<"low" | "critical" | "ok" | "ordered", [import("convex/values").VLiteral<"critical", "required">, import("convex/values").VLiteral<"low", "required">, import("convex/values").VLiteral<"ok", "required">, import("convex/values").VLiteral<"ordered", "required">], "required", never>;
1021
+ orderedAt: import("convex/values").VFloat64<number | undefined, "optional">;
1022
+ expectedArrivalDate: import("convex/values").VFloat64<number | undefined, "optional">;
1023
+ arrivalDate: import("convex/values").VFloat64<number | undefined, "optional">;
1024
+ orderQuantity: import("convex/values").VFloat64<number | undefined, "optional">;
1025
+ branchId: import("convex/values").VId<import("convex/values").GenericId<"branches">, "required">;
1026
+ createdAt: import("convex/values").VFloat64<number, "required">;
1027
+ createdBy: import("convex/values").VId<import("convex/values").GenericId<"admins"> | undefined, "optional">;
1028
+ updatedAt: import("convex/values").VFloat64<number, "required">;
1029
+ updatedBy: import("convex/values").VId<import("convex/values").GenericId<"admins"> | undefined, "optional">;
1030
+ lastRestockedAt: import("convex/values").VFloat64<number | undefined, "optional">;
1031
+ isDeleted: import("convex/values").VBoolean<boolean, "required">;
1032
+ }, "required", "name" | "status" | "createdAt" | "isDeleted" | "branchId" | "createdBy" | "updatedAt" | "description" | "updatedBy" | "category" | "unit" | "currentStock" | "maxStock" | "minStock" | "reorderPoint" | "orderedAt" | "expectedArrivalDate" | "arrivalDate" | "orderQuantity" | "lastRestockedAt">, {
1033
+ by_branch: ["branchId", "_creationTime"];
1034
+ by_branch_status: ["branchId", "status", "_creationTime"];
1035
+ by_branch_category: ["branchId", "category", "_creationTime"];
1036
+ }, {}, {}>;
931
1037
  }, true>;
932
1038
  export default _default;
933
1039
  //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Services Functions
3
+ *
4
+ * Handles service information queries for public access (customers, attendants).
5
+ * Admin functions are in admin.ts
6
+ */
7
+ /**
8
+ * Get all active services
9
+ * Public query - can be used by customers, attendants, and guests
10
+ */
11
+ export declare const getActive: import("convex/server").RegisteredQuery<"public", {}, Promise<{
12
+ _id: import("convex/values").GenericId<"services">;
13
+ name: string;
14
+ code: string;
15
+ description: string | undefined;
16
+ imageUrl: string | undefined;
17
+ basePrice: number;
18
+ pricingType: "per_kg" | "per_load";
19
+ isActive: boolean;
20
+ }[]>>;
21
+ /**
22
+ * Seed default services
23
+ * Public mutation - can be called without authentication to initialize services
24
+ * Idempotent - won't create duplicates if services already exist
25
+ */
26
+ export declare const seedDefaultServices: import("convex/server").RegisteredMutation<"public", {}, Promise<{
27
+ success: boolean;
28
+ created: string[];
29
+ skipped: string[];
30
+ message: string;
31
+ }>>;
32
+ //# sourceMappingURL=services.d.ts.map