@posx/core 5.5.31 → 5.5.32

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/build/index.d.ts CHANGED
@@ -2046,6 +2046,11 @@ declare module '@posx/core/types/config.type' {
2046
2046
  * @ignore
2047
2047
  */
2048
2048
  offline_mode: boolean;
2049
+ /**
2050
+ * Business schedules
2051
+ * @ignore
2052
+ */
2053
+ opening_schedules: Schedule[];
2049
2054
  }
2050
2055
  export type UpdateGeneralConfigOptions = {
2051
2056
  [P in keyof IGeneralConfig]?: IGeneralConfig[P];
@@ -2083,8 +2088,33 @@ declare module '@posx/core/types/config.type' {
2083
2088
  logging: boolean;
2084
2089
  /** Offline mode status */
2085
2090
  offline_mode: boolean;
2091
+ /** Open schedule */
2092
+ opening_schedules: Schedule[];
2086
2093
  constructor();
2087
2094
  }
2095
+ export type OpenHours = {
2096
+ open: string;
2097
+ close: string;
2098
+ };
2099
+ export type DayOfWeek = 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
2100
+ export type SpecialDay = {
2101
+ date: string;
2102
+ hours: OpenHours[];
2103
+ };
2104
+ export type Holiday = {
2105
+ name: string;
2106
+ date: string;
2107
+ };
2108
+ export type BreakPeriod = {
2109
+ days: DayOfWeek[];
2110
+ time: {
2111
+ start: string;
2112
+ end: string;
2113
+ };
2114
+ };
2115
+ export type Schedule = {
2116
+ opening_hours: OpenHours;
2117
+ };
2088
2118
  export interface ITillConfig {
2089
2119
  /** Control flag for Till */
2090
2120
  control: boolean;
@@ -3295,6 +3325,7 @@ declare module '@posx/core/types/printer.type' {
3295
3325
  }
3296
3326
  export enum PrinterConnections {
3297
3327
  USB = "USB",
3328
+ WINDOWS_DRIVER = "WINDOWS_DRIVER",
3298
3329
  ETHERNET = "ETHERNET",
3299
3330
  BLUETOOTH = "BLUETOOTH",
3300
3331
  BUILTIN = "BUILTIN"
@@ -3518,13 +3549,15 @@ declare module '@posx/core/types/product.type' {
3518
3549
  /**
3519
3550
  * display large image for online order, if false, small image will be displayed
3520
3551
  */
3521
- online_order_display_large_image?: boolean;
3552
+ online_order_display_large_image: boolean;
3522
3553
  };
3523
3554
  export class ProductBase extends AppExtraModel implements IProductBase {
3524
3555
  meta: {};
3525
3556
  etc: {};
3526
3557
  assets: {};
3527
- config: {};
3558
+ config: {
3559
+ online_order_display_large_image: boolean;
3560
+ };
3528
3561
  color: string;
3529
3562
  icon: string;
3530
3563
  sequence: number;