@posx/core 5.5.31 → 5.5.33

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