@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.
- package/convex/_generated/api.d.ts +6 -0
- package/convex/actions.d.ts +4 -4
- package/convex/admin.d.ts +107 -10
- package/convex/attendants.d.ts +32 -3
- package/convex/customers.d.ts +5 -2
- package/convex/inventory.d.ts +131 -0
- package/convex/lib/auth.d.ts +4 -2
- package/convex/lib/hubtel.d.ts +35 -0
- package/convex/lib/utils.d.ts +8 -4
- package/convex/orders.d.ts +13 -7
- package/convex/payments.d.ts +8 -6
- package/convex/schema.d.ts +120 -14
- package/convex/services.d.ts +32 -0
- package/convex/stations.d.ts +130 -4
- package/package.json +1 -1
package/convex/stations.d.ts
CHANGED
|
@@ -118,7 +118,8 @@ export declare const getActiveStationSession: import("convex/server").Registered
|
|
|
118
118
|
* Get station orders with pagination and filtering
|
|
119
119
|
*/
|
|
120
120
|
export declare const getStationOrders: import("convex/server").RegisteredQuery<"public", {
|
|
121
|
-
status?: "
|
|
121
|
+
status?: "pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered" | undefined;
|
|
122
|
+
orderType?: "walk_in" | "online" | undefined;
|
|
122
123
|
paginationOpts: {
|
|
123
124
|
id?: number;
|
|
124
125
|
endCursor?: string | null;
|
|
@@ -136,6 +137,11 @@ export declare const getStationOrders: import("convex/server").RegisteredQuery<"
|
|
|
136
137
|
phoneNumber: string;
|
|
137
138
|
email: string | undefined;
|
|
138
139
|
} | null;
|
|
140
|
+
assignedAttendant: {
|
|
141
|
+
_id: any;
|
|
142
|
+
name: any;
|
|
143
|
+
email: any;
|
|
144
|
+
} | null;
|
|
139
145
|
statusHistory: ({
|
|
140
146
|
changedBy: {
|
|
141
147
|
type: "attendant";
|
|
@@ -178,8 +184,9 @@ export declare const getStationOrders: import("convex/server").RegisteredQuery<"
|
|
|
178
184
|
deliveryRoom?: string | undefined;
|
|
179
185
|
paymentMethod?: "mobile_money" | "card" | "cash" | undefined;
|
|
180
186
|
paymentId?: import("convex/values").GenericId<"payments"> | undefined;
|
|
187
|
+
assignedTo?: import("convex/values").GenericId<"attendants"> | undefined;
|
|
181
188
|
fulfilledBy?: import("convex/values").GenericId<"attendants"> | undefined;
|
|
182
|
-
status: "
|
|
189
|
+
status: "pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered";
|
|
183
190
|
createdAt: number;
|
|
184
191
|
isDeleted: boolean;
|
|
185
192
|
branchId: import("convex/values").GenericId<"branches">;
|
|
@@ -260,8 +267,9 @@ export declare const getStationOrderDetails: import("convex/server").RegisteredQ
|
|
|
260
267
|
deliveryRoom?: string | undefined;
|
|
261
268
|
paymentMethod?: "mobile_money" | "card" | "cash" | undefined;
|
|
262
269
|
paymentId?: import("convex/values").GenericId<"payments"> | undefined;
|
|
270
|
+
assignedTo?: import("convex/values").GenericId<"attendants"> | undefined;
|
|
263
271
|
fulfilledBy?: import("convex/values").GenericId<"attendants"> | undefined;
|
|
264
|
-
status: "
|
|
272
|
+
status: "pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered";
|
|
265
273
|
createdAt: number;
|
|
266
274
|
isDeleted: boolean;
|
|
267
275
|
branchId: import("convex/values").GenericId<"branches">;
|
|
@@ -287,12 +295,57 @@ export declare const updateStationOrderStatus: import("convex/server").Registere
|
|
|
287
295
|
attendantId?: import("convex/values").GenericId<"attendants"> | undefined;
|
|
288
296
|
attendanceId?: import("convex/values").GenericId<"attendanceLogs"> | undefined;
|
|
289
297
|
orderId: import("convex/values").GenericId<"orders">;
|
|
290
|
-
newStatus: "
|
|
298
|
+
newStatus: "pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered";
|
|
291
299
|
stationToken: string;
|
|
292
300
|
}, Promise<{
|
|
293
301
|
success: boolean;
|
|
294
302
|
orderId: import("convex/values").GenericId<"orders">;
|
|
295
303
|
}>>;
|
|
304
|
+
/**
|
|
305
|
+
* Check in online order (convert pending_dropoff to checked_in with weight)
|
|
306
|
+
* This is used for online order intake at the station
|
|
307
|
+
*/
|
|
308
|
+
export declare const checkInOnlineOrder: import("convex/server").RegisteredMutation<"public", {
|
|
309
|
+
itemCount?: number | undefined;
|
|
310
|
+
notes?: string | undefined;
|
|
311
|
+
attendantId?: import("convex/values").GenericId<"attendants"> | undefined;
|
|
312
|
+
attendanceId?: import("convex/values").GenericId<"attendanceLogs"> | undefined;
|
|
313
|
+
actualWeight: number;
|
|
314
|
+
bagCardNumber: string;
|
|
315
|
+
orderId: import("convex/values").GenericId<"orders">;
|
|
316
|
+
stationToken: string;
|
|
317
|
+
}, Promise<{
|
|
318
|
+
success: boolean;
|
|
319
|
+
orderId: import("convex/values").GenericId<"orders">;
|
|
320
|
+
ussdSent: boolean;
|
|
321
|
+
ussdMessage: string | undefined;
|
|
322
|
+
}>>;
|
|
323
|
+
/**
|
|
324
|
+
* Cancel/reject online order (requires identity verification)
|
|
325
|
+
*/
|
|
326
|
+
export declare const cancelOnlineOrder: import("convex/server").RegisteredMutation<"public", {
|
|
327
|
+
reason?: string | undefined;
|
|
328
|
+
orderId: import("convex/values").GenericId<"orders">;
|
|
329
|
+
verificationId: import("convex/values").GenericId<"biometricVerifications">;
|
|
330
|
+
stationToken: string;
|
|
331
|
+
}, Promise<{
|
|
332
|
+
success: boolean;
|
|
333
|
+
orderId: import("convex/values").GenericId<"orders">;
|
|
334
|
+
}>>;
|
|
335
|
+
/**
|
|
336
|
+
* Get station/branch info (pricing, etc.)
|
|
337
|
+
*/
|
|
338
|
+
export declare const getStationInfo: import("convex/server").RegisteredQuery<"public", {
|
|
339
|
+
stationToken: string;
|
|
340
|
+
}, Promise<{
|
|
341
|
+
branchId: import("convex/values").GenericId<"branches">;
|
|
342
|
+
branchName: string;
|
|
343
|
+
pricingPerKg: number;
|
|
344
|
+
deliveryFee: number;
|
|
345
|
+
terminalId: string | undefined;
|
|
346
|
+
deviceId: string;
|
|
347
|
+
loggedInAt: number;
|
|
348
|
+
}>>;
|
|
296
349
|
/**
|
|
297
350
|
* Get station analytics/dashboard stats
|
|
298
351
|
*/
|
|
@@ -314,6 +367,27 @@ export declare const getStationStats: import("convex/server").RegisteredQuery<"p
|
|
|
314
367
|
};
|
|
315
368
|
averageOrderValue: number;
|
|
316
369
|
}>>;
|
|
370
|
+
/**
|
|
371
|
+
* Get station transaction history (paid orders)
|
|
372
|
+
*/
|
|
373
|
+
export declare const getStationTransactions: import("convex/server").RegisteredQuery<"public", {
|
|
374
|
+
startDate?: number | undefined;
|
|
375
|
+
endDate?: number | undefined;
|
|
376
|
+
stationToken: string;
|
|
377
|
+
}, Promise<{
|
|
378
|
+
orderId: import("convex/values").GenericId<"orders">;
|
|
379
|
+
orderCode: string;
|
|
380
|
+
amount: number;
|
|
381
|
+
paymentMethod: "mobile_money" | "card" | "cash";
|
|
382
|
+
orderType: "walk_in" | "online";
|
|
383
|
+
status: "pending_dropoff" | "checked_in" | "sorting" | "washing" | "drying" | "folding" | "ready" | "completed" | "cancelled" | "pending" | "in_progress" | "ready_for_pickup" | "delivered";
|
|
384
|
+
staffId: any;
|
|
385
|
+
staffName: any;
|
|
386
|
+
verifiedAt: number;
|
|
387
|
+
customerPhone: string;
|
|
388
|
+
customerName: string;
|
|
389
|
+
createdAt: number;
|
|
390
|
+
}[]>>;
|
|
317
391
|
/**
|
|
318
392
|
* Search customers for station
|
|
319
393
|
*/
|
|
@@ -548,4 +622,56 @@ export declare const markAllStationNotificationsAsRead: import("convex/server").
|
|
|
548
622
|
success: boolean;
|
|
549
623
|
count: number;
|
|
550
624
|
}>>;
|
|
625
|
+
/**
|
|
626
|
+
* Get active bag numbers for a branch
|
|
627
|
+
* Returns all bag numbers currently assigned to active orders (not completed or cancelled)
|
|
628
|
+
*/
|
|
629
|
+
export declare const getActiveBagNumbers: import("convex/server").RegisteredQuery<"public", {
|
|
630
|
+
stationToken: string;
|
|
631
|
+
}, Promise<string[]>>;
|
|
632
|
+
/**
|
|
633
|
+
* Create walk-in order
|
|
634
|
+
* Creates a new order for a walk-in customer with bag number assignment
|
|
635
|
+
*/
|
|
636
|
+
export declare const createWalkInOrder: import("convex/server").RegisteredMutation<"public", {
|
|
637
|
+
customerEmail?: string | undefined;
|
|
638
|
+
itemCount?: number | undefined;
|
|
639
|
+
whitesSeparate?: boolean | undefined;
|
|
640
|
+
notes?: string | undefined;
|
|
641
|
+
isDelivery?: boolean | undefined;
|
|
642
|
+
deliveryAddress?: string | undefined;
|
|
643
|
+
deliveryPhoneNumber?: string | undefined;
|
|
644
|
+
deliveryHall?: string | undefined;
|
|
645
|
+
deliveryRoom?: string | undefined;
|
|
646
|
+
attendantId?: import("convex/values").GenericId<"attendants"> | undefined;
|
|
647
|
+
attendanceId?: import("convex/values").GenericId<"attendanceLogs"> | undefined;
|
|
648
|
+
customerId: import("convex/values").GenericId<"users">;
|
|
649
|
+
serviceType: "wash_only" | "wash_and_dry" | "dry_only";
|
|
650
|
+
bagCardNumber: string;
|
|
651
|
+
customerName: string;
|
|
652
|
+
stationToken: string;
|
|
653
|
+
customerPhone: string;
|
|
654
|
+
weight: number;
|
|
655
|
+
}, Promise<{
|
|
656
|
+
success: boolean;
|
|
657
|
+
orderId: import("convex/values").GenericId<"orders">;
|
|
658
|
+
orderNumber: string;
|
|
659
|
+
bagCardNumber: string;
|
|
660
|
+
}>>;
|
|
661
|
+
/**
|
|
662
|
+
* Complete payment for walk-in order (requires identity verification)
|
|
663
|
+
* Sends USSD code to customer if payment method is mobile_money
|
|
664
|
+
*/
|
|
665
|
+
export declare const completeWalkInPayment: import("convex/server").RegisteredMutation<"public", {
|
|
666
|
+
amountTendered?: number | undefined;
|
|
667
|
+
paymentMethod: "mobile_money" | "cash";
|
|
668
|
+
orderId: import("convex/values").GenericId<"orders">;
|
|
669
|
+
verificationId: import("convex/values").GenericId<"biometricVerifications">;
|
|
670
|
+
stationToken: string;
|
|
671
|
+
}, Promise<{
|
|
672
|
+
success: boolean;
|
|
673
|
+
paymentId: import("convex/values").GenericId<"payments">;
|
|
674
|
+
orderId: import("convex/values").GenericId<"orders">;
|
|
675
|
+
ussdSent: boolean;
|
|
676
|
+
}>>;
|
|
551
677
|
//# sourceMappingURL=stations.d.ts.map
|