shopoflex-types 1.0.84 → 1.0.85

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.
Files changed (2) hide show
  1. package/dist/common.d.ts +10 -24
  2. package/package.json +1 -1
package/dist/common.d.ts CHANGED
@@ -177,22 +177,6 @@ export interface Specification {
177
177
  active: boolean;
178
178
  values: any[];
179
179
  }
180
- export interface AddonType {
181
- _id: string;
182
- name: {
183
- en: string;
184
- ar: string;
185
- };
186
- price: number;
187
- enableQuantity?: boolean;
188
- stockHandle: StockHandle;
189
- files?: FileType[];
190
- sortOrder?: number;
191
- isActive: boolean;
192
- vendorId: string | any;
193
- createdAt?: Date;
194
- updatedAt?: Date;
195
- }
196
180
  export interface Modifier {
197
181
  name?: {
198
182
  en?: string;
@@ -510,20 +494,22 @@ export interface Vendor {
510
494
  users: Array<unknown>;
511
495
  areas: Record<string, unknown>;
512
496
  payments: VendorPayments;
513
- subscription: {
514
- planId: string | null;
515
- planName: string;
516
- status: 'trial' | 'active' | 'cancelled' | 'expired';
517
- startDate: Date;
518
- nextBillingDate: Date;
519
- trialEndDate: Date;
520
- autoRenewal: boolean;
497
+ wallet: {
498
+ balance: number;
499
+ currency: string;
500
+ commissionRates: {
501
+ ecommerce: number;
502
+ pos: number;
503
+ };
521
504
  };
522
505
  usage: {
523
506
  productsCount: number;
524
507
  branchesCount: number;
525
508
  usersCount: number;
526
509
  };
510
+ addToWallet(amount: number): Promise<this>;
511
+ deductCommission(orderValue: number, source?: 'pos' | 'online'): Promise<this>;
512
+ canProcessOrder(orderValue: number, source?: 'pos' | 'online'): boolean;
527
513
  }
528
514
  export interface NotificationType {
529
515
  _id?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",