shopoflex-types 1.0.2 → 1.0.5
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 +12 -6
- package/package.json +1 -1
package/dist/types/common.d.ts
CHANGED
|
@@ -41,7 +41,6 @@ export interface Vendor {
|
|
|
41
41
|
countries: string[];
|
|
42
42
|
currencies: string[];
|
|
43
43
|
defaultCurrency: string;
|
|
44
|
-
currency: string;
|
|
45
44
|
integrations: {
|
|
46
45
|
loyaltyProgram: {
|
|
47
46
|
active: boolean;
|
|
@@ -52,7 +51,11 @@ export interface Vendor {
|
|
|
52
51
|
defaultLanguage: string;
|
|
53
52
|
acceptedLanguages: string[];
|
|
54
53
|
numberOfDecimals: number;
|
|
55
|
-
|
|
54
|
+
email: string;
|
|
55
|
+
phone: string;
|
|
56
|
+
currency: string;
|
|
57
|
+
language: string;
|
|
58
|
+
country: string;
|
|
56
59
|
template: {
|
|
57
60
|
id: TemplateId;
|
|
58
61
|
name: {
|
|
@@ -73,8 +76,6 @@ export interface Vendor {
|
|
|
73
76
|
socialLinks: string[];
|
|
74
77
|
users: Array<unknown>;
|
|
75
78
|
areas: Record<string, unknown>;
|
|
76
|
-
country: string;
|
|
77
|
-
phone: string;
|
|
78
79
|
payments: {
|
|
79
80
|
Cash: {
|
|
80
81
|
active: boolean;
|
|
@@ -249,7 +250,7 @@ export interface DeliveryDetails {
|
|
|
249
250
|
trackingNumber?: string;
|
|
250
251
|
}
|
|
251
252
|
export interface Customer {
|
|
252
|
-
|
|
253
|
+
_id?: string;
|
|
253
254
|
uid?: string;
|
|
254
255
|
fullName?: string;
|
|
255
256
|
email?: string;
|
|
@@ -262,6 +263,7 @@ export interface Customer {
|
|
|
262
263
|
createdAt?: Date | number;
|
|
263
264
|
addresses?: Address[];
|
|
264
265
|
vendors?: string[];
|
|
266
|
+
isAnonymos?: boolean;
|
|
265
267
|
}
|
|
266
268
|
export interface Address {
|
|
267
269
|
_id?: string;
|
|
@@ -312,6 +314,10 @@ export interface Cart {
|
|
|
312
314
|
delivery: number;
|
|
313
315
|
total: number;
|
|
314
316
|
}
|
|
317
|
+
export interface CartModelType extends Cart {
|
|
318
|
+
customer: Customer | any;
|
|
319
|
+
vendorId: String | any;
|
|
320
|
+
}
|
|
315
321
|
export interface Shipping {
|
|
316
322
|
method: string;
|
|
317
323
|
cost?: number;
|
|
@@ -427,7 +433,7 @@ interface IBranchName {
|
|
|
427
433
|
export interface IBranch {
|
|
428
434
|
name: IBranchName;
|
|
429
435
|
phone: string;
|
|
430
|
-
vendorId: string;
|
|
436
|
+
vendorId: string | any;
|
|
431
437
|
deliverySettings: IDeliverySettings;
|
|
432
438
|
pickupSettings: IPickupSettings;
|
|
433
439
|
dineInSettings: IDineInSettings;
|