shopoflex-types 1.0.13 → 1.0.15

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.
@@ -299,39 +299,10 @@ export type IRole = {
299
299
  };
300
300
  permissions?: string[];
301
301
  };
302
- export interface IZone {
303
- country: string;
304
- deliveryType: "distance" | "constant";
305
- deliveryRange: "radius" | "country";
306
- deliveryFee?: string;
307
- pricePerKm: string;
308
- radius: number;
309
- center: ILatLng;
310
- markerPosition: ILatLng;
311
- }
312
- export interface IDeliverySettings {
313
- zones: IZone[];
314
- }
315
- export interface IPickupSettings {
316
- enabled: boolean;
317
- instruction?: string;
318
- }
319
- export interface IDineInSettings {
320
- enabled: boolean;
321
- }
322
302
  export interface IBranchName {
323
303
  en: string;
324
304
  ar?: string;
325
305
  }
326
- export interface IBranch {
327
- name: IBranchName;
328
- phone: string;
329
- vendorId: string | any;
330
- deliverySettings: IDeliverySettings;
331
- pickupSettings: IPickupSettings;
332
- dineInSettings: IDineInSettings;
333
- createdAt?: Date;
334
- }
335
306
  export interface Vendor {
336
307
  _id?: string;
337
308
  name: {
@@ -475,3 +446,68 @@ export interface StoreState {
475
446
  allCategories?: Category[];
476
447
  loading?: boolean;
477
448
  }
449
+ export interface ITimeSlot {
450
+ from: string;
451
+ to: string;
452
+ }
453
+ export interface IDayHours {
454
+ isOpen: boolean;
455
+ is24Hours: boolean;
456
+ timeSlots: ITimeSlot[];
457
+ }
458
+ export interface IOpeningHours {
459
+ Monday: IDayHours;
460
+ Tuesday: IDayHours;
461
+ Wednesday: IDayHours;
462
+ Thursday: IDayHours;
463
+ Friday: IDayHours;
464
+ Saturday: IDayHours;
465
+ Sunday: IDayHours;
466
+ }
467
+ export interface IZone {
468
+ i?: number;
469
+ deliveryType?: string;
470
+ deliveryRange?: string;
471
+ deliveryFee?: string;
472
+ pricePerKm?: string;
473
+ radius?: number;
474
+ center?: {
475
+ lat: number;
476
+ lng: number;
477
+ };
478
+ markerPosition?: {
479
+ lat: number;
480
+ lng: number;
481
+ };
482
+ countries?: string[];
483
+ }
484
+ export interface IDeliverySettings {
485
+ enabled?: boolean;
486
+ charge?: string;
487
+ zones?: IZone[];
488
+ openingHours?: IOpeningHours;
489
+ }
490
+ export interface IPickupSettings {
491
+ enabled?: boolean;
492
+ instruction?: string;
493
+ openingHours?: IOpeningHours;
494
+ }
495
+ export interface IDineInSettings {
496
+ enabled?: boolean;
497
+ tableCount?: string;
498
+ openingHours?: IOpeningHours;
499
+ }
500
+ export interface IBranch {
501
+ _id?: string;
502
+ name: {
503
+ en: string;
504
+ ar: string;
505
+ };
506
+ phone: string;
507
+ vendorId: string | any;
508
+ deliverySettings?: IDeliverySettings;
509
+ pickupSettings?: IPickupSettings;
510
+ dineInSettings?: IDineInSettings;
511
+ createdAt?: Date;
512
+ updatedAt?: Date;
513
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",