shopoflex-types 1.0.161 → 1.0.165
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 +49 -4
- package/dist/productCart.d.ts +2 -0
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -280,6 +280,31 @@ export interface PixelsOptions {
|
|
|
280
280
|
active?: boolean;
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
|
+
type LimitValue = number | 'unlimited';
|
|
284
|
+
interface PlanLimits {
|
|
285
|
+
dailyOrders: LimitValue;
|
|
286
|
+
users: LimitValue;
|
|
287
|
+
branches: LimitValue;
|
|
288
|
+
}
|
|
289
|
+
interface PlanFeatures {
|
|
290
|
+
terminalSynchronization: boolean;
|
|
291
|
+
customDomain: boolean;
|
|
292
|
+
tableManagement: boolean;
|
|
293
|
+
accounting: boolean;
|
|
294
|
+
advancedReports: boolean;
|
|
295
|
+
whatsappNotifications: boolean;
|
|
296
|
+
emailNotifications: boolean;
|
|
297
|
+
}
|
|
298
|
+
export interface IPlanPackage {
|
|
299
|
+
_id?: any;
|
|
300
|
+
name: string;
|
|
301
|
+
price: number | 'custom';
|
|
302
|
+
limits: PlanLimits;
|
|
303
|
+
features: PlanFeatures;
|
|
304
|
+
isActive: boolean;
|
|
305
|
+
createdAt: Date;
|
|
306
|
+
updatedAt: Date;
|
|
307
|
+
}
|
|
283
308
|
export interface Vendor {
|
|
284
309
|
_id?: string;
|
|
285
310
|
industry?: string;
|
|
@@ -327,7 +352,7 @@ export interface Vendor {
|
|
|
327
352
|
createdAt: Date;
|
|
328
353
|
orderType: PickType[];
|
|
329
354
|
socialLinks: string[];
|
|
330
|
-
users:
|
|
355
|
+
users: VendorUser[];
|
|
331
356
|
areas: Record<string, unknown>;
|
|
332
357
|
payments: VendorPayments;
|
|
333
358
|
wallet: {
|
|
@@ -346,10 +371,30 @@ export interface Vendor {
|
|
|
346
371
|
allowCustomPricing?: boolean;
|
|
347
372
|
pixelsOptions?: PixelsOptions;
|
|
348
373
|
taxManagement?: TaxManagement;
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
374
|
+
currentPlan?: IPlanPackage;
|
|
375
|
+
}
|
|
376
|
+
export interface VendorUser<TUser = string, TRole = string> {
|
|
377
|
+
user: TUser;
|
|
378
|
+
role: TRole;
|
|
379
|
+
status: "pending" | "active" | "disabled";
|
|
380
|
+
email: string;
|
|
381
|
+
lockPin: string;
|
|
382
|
+
notifications: {
|
|
383
|
+
tokens: string[];
|
|
384
|
+
email: boolean;
|
|
385
|
+
push: boolean;
|
|
386
|
+
inApp: boolean;
|
|
387
|
+
types: {
|
|
388
|
+
new_order: boolean;
|
|
389
|
+
order_update: boolean;
|
|
390
|
+
stock_alert: boolean;
|
|
391
|
+
product_update: boolean;
|
|
392
|
+
system_update: boolean;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
352
395
|
}
|
|
396
|
+
export type VendorUserPopulated = VendorUser<IUser, IRole>;
|
|
397
|
+
export type VendorUserUnpopulated = VendorUser<string, string>;
|
|
353
398
|
export interface NotificationType {
|
|
354
399
|
_id?: any;
|
|
355
400
|
recipientId?: string;
|
package/dist/productCart.d.ts
CHANGED
|
@@ -103,6 +103,7 @@ export interface CartItem {
|
|
|
103
103
|
files?: FileType[];
|
|
104
104
|
quantity: number;
|
|
105
105
|
refundedQuantity?: number;
|
|
106
|
+
printedQuantity?: number;
|
|
106
107
|
basePrice?: number;
|
|
107
108
|
modifiersPrice?: number;
|
|
108
109
|
unitPrice?: number;
|
|
@@ -218,6 +219,7 @@ export interface OrderType {
|
|
|
218
219
|
userId?: mongoose.Types.ObjectId | string;
|
|
219
220
|
}>;
|
|
220
221
|
currentHandler?: mongoose.Types.ObjectId | string;
|
|
222
|
+
printed?: boolean;
|
|
221
223
|
notes?: string;
|
|
222
224
|
refunded?: boolean;
|
|
223
225
|
addTimelineEntry?(action: string, userId?: mongoose.Types.ObjectId | string): this;
|