shopoflex-types 1.0.28 → 1.0.30

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.
@@ -90,8 +90,10 @@ export interface Dimensions {
90
90
  }
91
91
  export interface StockHandle {
92
92
  active: boolean;
93
- stockQuantity: number;
94
- ifOutOfStock: 'showOutOfStock' | 'allowOrdering' | 'hideFromStore';
93
+ stockByBranch: Record<string, {
94
+ stockQuantity: number;
95
+ ifOutOfStock: 'showOutOfStock' | 'allowOrdering' | 'hideFromStore';
96
+ }>;
95
97
  }
96
98
  export interface Label {
97
99
  featured: boolean;
@@ -267,6 +269,18 @@ export interface OrderType {
267
269
  shipping: Shipping;
268
270
  createdAt?: Date;
269
271
  updatedAt?: Date;
272
+ scheduleTime: {
273
+ asap: boolean;
274
+ date?: Date;
275
+ time?: Date;
276
+ };
277
+ branch: {
278
+ id: mongoose.Types.ObjectId | string;
279
+ name?: {
280
+ en?: string;
281
+ ar?: string;
282
+ };
283
+ };
270
284
  orderNumber?: any;
271
285
  promo?: {
272
286
  _id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",