shopoflex-types 1.0.12 → 1.0.14
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/types/common.d.ts +9 -2
- package/package.json +1 -1
package/dist/types/common.d.ts
CHANGED
|
@@ -119,7 +119,7 @@ export interface Category {
|
|
|
119
119
|
image?: string;
|
|
120
120
|
sortOrder?: number;
|
|
121
121
|
isActive: boolean;
|
|
122
|
-
vendorId: string;
|
|
122
|
+
vendorId: string | any;
|
|
123
123
|
createdAt: Date;
|
|
124
124
|
}
|
|
125
125
|
export interface ProductType {
|
|
@@ -201,6 +201,13 @@ export interface CartState {
|
|
|
201
201
|
export interface CartModelType extends Cart {
|
|
202
202
|
customer: Customer | any;
|
|
203
203
|
vendorId: String | any;
|
|
204
|
+
_id?: string;
|
|
205
|
+
items: CartItem[];
|
|
206
|
+
subtotal: number;
|
|
207
|
+
totalQuantity: number;
|
|
208
|
+
discount: number;
|
|
209
|
+
delivery: number;
|
|
210
|
+
total: number;
|
|
204
211
|
}
|
|
205
212
|
export interface PaymentDetails {
|
|
206
213
|
method: string;
|
|
@@ -415,7 +422,7 @@ export interface Vendor {
|
|
|
415
422
|
export interface Discount {
|
|
416
423
|
_id: string;
|
|
417
424
|
code: string;
|
|
418
|
-
vendorId: string;
|
|
425
|
+
vendorId: string | any;
|
|
419
426
|
type: "fixed" | "percentage";
|
|
420
427
|
value: number;
|
|
421
428
|
isAutomatic: boolean;
|