@posx/core 5.5.30 → 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
@@ -1974,6 +1974,14 @@ declare module '@posx/core/types/config.type' {
1974
1974
  currency: CurrencyConfig;
1975
1975
  cds: CustomerDisplaySystemConfig;
1976
1976
  kiosk: KioskSystemConfig;
1977
+ online_order: OnlineOrderConfig;
1978
+ constructor();
1979
+ }
1980
+ export interface IOnlineOrderConfig {
1981
+ menu_banner_image_url: string;
1982
+ }
1983
+ export class OnlineOrderConfig implements IOnlineOrderConfig {
1984
+ menu_banner_image_url: string;
1977
1985
  constructor();
1978
1986
  }
1979
1987
  export interface IGeneralConfig {
@@ -2038,6 +2046,11 @@ declare module '@posx/core/types/config.type' {
2038
2046
  * @ignore
2039
2047
  */
2040
2048
  offline_mode: boolean;
2049
+ /**
2050
+ * Business schedules
2051
+ * @ignore
2052
+ */
2053
+ opening_schedules: Schedule[];
2041
2054
  }
2042
2055
  export type UpdateGeneralConfigOptions = {
2043
2056
  [P in keyof IGeneralConfig]?: IGeneralConfig[P];
@@ -2075,8 +2088,33 @@ declare module '@posx/core/types/config.type' {
2075
2088
  logging: boolean;
2076
2089
  /** Offline mode status */
2077
2090
  offline_mode: boolean;
2091
+ /** Open schedule */
2092
+ opening_schedules: Schedule[];
2078
2093
  constructor();
2079
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
+ };
2080
2118
  export interface ITillConfig {
2081
2119
  /** Control flag for Till */
2082
2120
  control: boolean;
@@ -3287,6 +3325,7 @@ declare module '@posx/core/types/printer.type' {
3287
3325
  }
3288
3326
  export enum PrinterConnections {
3289
3327
  USB = "USB",
3328
+ WINDOWS_DRIVER = "WINDOWS_DRIVER",
3290
3329
  ETHERNET = "ETHERNET",
3291
3330
  BLUETOOTH = "BLUETOOTH",
3292
3331
  BUILTIN = "BUILTIN"
@@ -3510,13 +3549,15 @@ declare module '@posx/core/types/product.type' {
3510
3549
  /**
3511
3550
  * display large image for online order, if false, small image will be displayed
3512
3551
  */
3513
- online_order_display_large_image?: boolean;
3552
+ online_order_display_large_image: boolean;
3514
3553
  };
3515
3554
  export class ProductBase extends AppExtraModel implements IProductBase {
3516
3555
  meta: {};
3517
3556
  etc: {};
3518
3557
  assets: {};
3519
- config: {};
3558
+ config: {
3559
+ online_order_display_large_image: boolean;
3560
+ };
3520
3561
  color: string;
3521
3562
  icon: string;
3522
3563
  sequence: number;