shopoflex-types 1.0.76 → 1.0.77
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 -4
- package/package.json +3 -2
package/dist/common.d.ts
CHANGED
|
@@ -176,7 +176,7 @@ export interface ProductType {
|
|
|
176
176
|
active: boolean;
|
|
177
177
|
values: any[];
|
|
178
178
|
};
|
|
179
|
-
|
|
179
|
+
availableFor?: [];
|
|
180
180
|
linkedProduct?: any;
|
|
181
181
|
createdAt?: Date;
|
|
182
182
|
updatedAt?: Date;
|
|
@@ -470,6 +470,20 @@ export interface Vendor {
|
|
|
470
470
|
};
|
|
471
471
|
};
|
|
472
472
|
};
|
|
473
|
+
subscription: {
|
|
474
|
+
planId: string | null;
|
|
475
|
+
planName: string;
|
|
476
|
+
status: 'trial' | 'active' | 'cancelled' | 'expired';
|
|
477
|
+
startDate: Date;
|
|
478
|
+
nextBillingDate: Date;
|
|
479
|
+
trialEndDate: Date;
|
|
480
|
+
autoRenewal: boolean;
|
|
481
|
+
};
|
|
482
|
+
usage: {
|
|
483
|
+
productsCount: number;
|
|
484
|
+
branchesCount: number;
|
|
485
|
+
usersCount: number;
|
|
486
|
+
};
|
|
473
487
|
}
|
|
474
488
|
export interface NotificationType {
|
|
475
489
|
_id?: any;
|
|
@@ -492,9 +506,6 @@ export interface PaymentMethod {
|
|
|
492
506
|
export interface OrderStatus {
|
|
493
507
|
status: 'pending' | 'cancelled' | 'rejected' | 'refunded' | 'preparing' | 'delivering' | 'completed' | 'awaiting_payment';
|
|
494
508
|
}
|
|
495
|
-
export interface OrderStatus {
|
|
496
|
-
status: 'pending' | 'cancelled' | 'rejected' | 'refunded' | 'preparing' | 'delivering' | 'completed' | 'awaiting_payment';
|
|
497
|
-
}
|
|
498
509
|
export interface OrderTypeOptions {
|
|
499
510
|
type: 'delivery' | 'instore' | 'pickup';
|
|
500
511
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shopoflex-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.77",
|
|
4
4
|
"description": "Shared TypeScript types for Shopoflex applications",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"typescript": "^5.8.3"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"mongoose": "^8.15.1"
|
|
30
|
+
"mongoose": "^8.15.1",
|
|
31
|
+
"shopoflex-types": "^1.0.76"
|
|
31
32
|
}
|
|
32
33
|
}
|