shopoflex-types 1.0.72 → 1.0.74
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 +15 -14
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -33,15 +33,6 @@ export declare enum TemplateId {
|
|
|
33
33
|
TEMPLATE_4 = "template_4",
|
|
34
34
|
TEMPLATE_5 = "template_5"
|
|
35
35
|
}
|
|
36
|
-
export declare enum OrderStatus {
|
|
37
|
-
Pending = "pending",
|
|
38
|
-
Cancelled = "cancelled",
|
|
39
|
-
Rejected = "rejected",
|
|
40
|
-
Refunded = "refunded",
|
|
41
|
-
Preparing = "preparing",
|
|
42
|
-
Delivering = "delivering",
|
|
43
|
-
Completed = "completed"
|
|
44
|
-
}
|
|
45
36
|
export interface FileType {
|
|
46
37
|
previewUrl?: string;
|
|
47
38
|
type?: string;
|
|
@@ -292,7 +283,7 @@ export interface Shipping {
|
|
|
292
283
|
}
|
|
293
284
|
export interface OrderType {
|
|
294
285
|
_id?: string | any;
|
|
295
|
-
orderType:
|
|
286
|
+
orderType: PickType;
|
|
296
287
|
source: 'pos' | 'online';
|
|
297
288
|
tableNumber?: number;
|
|
298
289
|
customer?: Customer;
|
|
@@ -300,7 +291,7 @@ export interface OrderType {
|
|
|
300
291
|
cart?: Cart;
|
|
301
292
|
paymentMethod?: PaymentMethodType;
|
|
302
293
|
address?: Address;
|
|
303
|
-
status?:
|
|
294
|
+
status?: OrderStatusType;
|
|
304
295
|
paid?: boolean;
|
|
305
296
|
shipping: Shipping;
|
|
306
297
|
createdAt?: Date;
|
|
@@ -440,7 +431,7 @@ export interface Vendor {
|
|
|
440
431
|
};
|
|
441
432
|
updateAt: Date;
|
|
442
433
|
createdAt: Date;
|
|
443
|
-
orderType:
|
|
434
|
+
orderType: PickType[];
|
|
444
435
|
socialLinks: string[];
|
|
445
436
|
users: Array<unknown>;
|
|
446
437
|
areas: Record<string, unknown>;
|
|
@@ -498,12 +489,22 @@ export interface NotificationType {
|
|
|
498
489
|
export interface PaymentMethod {
|
|
499
490
|
type: 'cash' | 'card' | 'knet' | 'bank_transfer' | 'wallet' | 'external_link' | 'crypto' | 'whish' | 'paypal' | 'gift_card';
|
|
500
491
|
}
|
|
492
|
+
export interface OrderStatus {
|
|
493
|
+
status: 'pending' | 'cancelled' | 'rejected' | 'refunded' | 'preparing' | 'delivering' | 'completed' | 'awaiting_payment';
|
|
494
|
+
}
|
|
495
|
+
export interface OrderStatus {
|
|
496
|
+
status: 'pending' | 'cancelled' | 'rejected' | 'refunded' | 'preparing' | 'delivering' | 'completed' | 'awaiting_payment';
|
|
497
|
+
}
|
|
498
|
+
export interface OrderTypeOptions {
|
|
499
|
+
type: 'pending' | 'cancelled' | 'rejected' | 'refunded' | 'preparing' | 'delivering' | 'completed' | 'awaiting_payment';
|
|
500
|
+
}
|
|
501
|
+
export type PickType = OrderTypeOptions['type'];
|
|
501
502
|
export type PaymentMethodType = PaymentMethod['type'];
|
|
503
|
+
export type OrderStatusType = OrderStatus['status'];
|
|
502
504
|
export interface SelectionsState {
|
|
503
505
|
address?: Address;
|
|
504
506
|
branch?: IBranch;
|
|
505
|
-
orderType?:
|
|
506
|
-
deliveryType?: "delivery" | "pickup" | "dineIn";
|
|
507
|
+
orderType?: PickType;
|
|
507
508
|
paymentMethod?: PaymentMethodType;
|
|
508
509
|
promoCode?: string;
|
|
509
510
|
shippingMethod?: string;
|