@orderingstack/ordering-types 1.9.4 → 1.10.0

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.
@@ -119,9 +119,19 @@ export interface IProduct {
119
119
  unit: string;
120
120
  qty: string;
121
121
  }>;
122
- attrs?: IStringKeyRecord<string | boolean>;
122
+ attrs?: IGroupAttributes;
123
123
  __?: IProductFrontAttributes;
124
124
  }
125
+ export interface IGroupAttributes {
126
+ selMin?: string;
127
+ selMax?: string;
128
+ qtyMin?: string;
129
+ qtyMax?: string;
130
+ vital?: boolean;
131
+ allowFraction?: boolean;
132
+ allowMultiple?: boolean;
133
+ hidden?: boolean;
134
+ }
125
135
  export interface IProductState {
126
136
  selected: IProductStateSelected;
127
137
  filter: IProductStateFilter;
@@ -581,3 +591,8 @@ export interface INotificationMessage {
581
591
  }[];
582
592
  fiscal?: IFiscalData;
583
593
  }
594
+ export interface ICategory {
595
+ id: string;
596
+ name: string;
597
+ img?: string;
598
+ }
@@ -1,7 +1,7 @@
1
1
  import React, { ReactElement } from "react";
2
2
  import { UseFormRegisterReturn } from "react-hook-form";
3
3
  import { UseTransitionProps } from "react-spring";
4
- import { IProduct, IOrder, IProductStateSelected, IProductStateFilter, EOrderPaymentType, IKioskError, TUpsellKind } from "./index";
4
+ import { IProduct, IOrder, IProductStateSelected, IProductStateFilter, EOrderPaymentType, IKioskError, TUpsellKind, ICategory } from "./index";
5
5
  import { IOrderLine } from "./index";
6
6
  export declare enum EPaymentStatus {
7
7
  UNINITIALIZED = "UNINITIALIZED",
@@ -80,6 +80,7 @@ export interface IMenuCategorySectionProps {
80
80
  cols?: number;
81
81
  colsLg?: number;
82
82
  MenuTile?: React.FC<IMenuTileProps>;
83
+ setCategoryWithScroll?: (ICategory: ICategory) => void;
83
84
  }
84
85
  export interface IMenuTopNavProps {
85
86
  goToStart: (state?: any) => void;
@@ -119,9 +119,19 @@ export interface IProduct {
119
119
  unit: string;
120
120
  qty: string;
121
121
  }>;
122
- attrs?: IStringKeyRecord<string | boolean>;
122
+ attrs?: IGroupAttributes;
123
123
  __?: IProductFrontAttributes;
124
124
  }
125
+ export interface IGroupAttributes {
126
+ selMin?: string;
127
+ selMax?: string;
128
+ qtyMin?: string;
129
+ qtyMax?: string;
130
+ vital?: boolean;
131
+ allowFraction?: boolean;
132
+ allowMultiple?: boolean;
133
+ hidden?: boolean;
134
+ }
125
135
  export interface IProductState {
126
136
  selected: IProductStateSelected;
127
137
  filter: IProductStateFilter;
@@ -581,3 +591,8 @@ export interface INotificationMessage {
581
591
  }[];
582
592
  fiscal?: IFiscalData;
583
593
  }
594
+ export interface ICategory {
595
+ id: string;
596
+ name: string;
597
+ img?: string;
598
+ }
@@ -1,7 +1,7 @@
1
1
  import React, { ReactElement } from "react";
2
2
  import { UseFormRegisterReturn } from "react-hook-form";
3
3
  import { UseTransitionProps } from "react-spring";
4
- import { IProduct, IOrder, IProductStateSelected, IProductStateFilter, EOrderPaymentType, IKioskError, TUpsellKind } from "./index";
4
+ import { IProduct, IOrder, IProductStateSelected, IProductStateFilter, EOrderPaymentType, IKioskError, TUpsellKind, ICategory } from "./index";
5
5
  import { IOrderLine } from "./index";
6
6
  export declare enum EPaymentStatus {
7
7
  UNINITIALIZED = "UNINITIALIZED",
@@ -80,6 +80,7 @@ export interface IMenuCategorySectionProps {
80
80
  cols?: number;
81
81
  colsLg?: number;
82
82
  MenuTile?: React.FC<IMenuTileProps>;
83
+ setCategoryWithScroll?: (ICategory: ICategory) => void;
83
84
  }
84
85
  export interface IMenuTopNavProps {
85
86
  goToStart: (state?: any) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.9.4",
3
+ "version": "1.10.0",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",