shopoflex-types 1.0.73 → 1.0.75
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/dist/common.d.ts +10 -4
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -283,7 +283,7 @@ export interface Shipping {
|
|
|
283
283
|
}
|
|
284
284
|
export interface OrderType {
|
|
285
285
|
_id?: string | any;
|
|
286
|
-
orderType:
|
|
286
|
+
orderType: PickType;
|
|
287
287
|
source: 'pos' | 'online';
|
|
288
288
|
tableNumber?: number;
|
|
289
289
|
customer?: Customer;
|
|
@@ -431,7 +431,7 @@ export interface Vendor {
|
|
|
431
431
|
};
|
|
432
432
|
updateAt: Date;
|
|
433
433
|
createdAt: Date;
|
|
434
|
-
orderType:
|
|
434
|
+
orderType: PickType[];
|
|
435
435
|
socialLinks: string[];
|
|
436
436
|
users: Array<unknown>;
|
|
437
437
|
areas: Record<string, unknown>;
|
|
@@ -492,13 +492,19 @@ export interface PaymentMethod {
|
|
|
492
492
|
export interface OrderStatus {
|
|
493
493
|
status: 'pending' | 'cancelled' | 'rejected' | 'refunded' | 'preparing' | 'delivering' | 'completed' | 'awaiting_payment';
|
|
494
494
|
}
|
|
495
|
+
export interface OrderStatus {
|
|
496
|
+
status: 'pending' | 'cancelled' | 'rejected' | 'refunded' | 'preparing' | 'delivering' | 'completed' | 'awaiting_payment';
|
|
497
|
+
}
|
|
498
|
+
export interface OrderTypeOptions {
|
|
499
|
+
type: 'delivery' | 'instore' | 'pickup';
|
|
500
|
+
}
|
|
501
|
+
export type PickType = OrderTypeOptions['type'];
|
|
495
502
|
export type PaymentMethodType = PaymentMethod['type'];
|
|
496
503
|
export type OrderStatusType = OrderStatus['status'];
|
|
497
504
|
export interface SelectionsState {
|
|
498
505
|
address?: Address;
|
|
499
506
|
branch?: IBranch;
|
|
500
|
-
orderType?:
|
|
501
|
-
deliveryType?: "delivery" | "pickup" | "dineIn";
|
|
507
|
+
orderType?: PickType;
|
|
502
508
|
paymentMethod?: PaymentMethodType;
|
|
503
509
|
promoCode?: string;
|
|
504
510
|
shippingMethod?: string;
|