@open-tender/types 0.4.17 → 0.4.19

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.
@@ -1,8 +1,8 @@
1
1
  import { PrepStations } from './devices';
2
2
  import { OrderCart, OrderItem, Orders } from './order';
3
+ export declare type DeviceFontSize = 'xsmall' | 'small' | 'medium' | 'large';
4
+ export declare type DeviceColorScheme = 'dark' | 'light';
3
5
  export declare type KdsView = 'column' | 'grid' | 'list' | 'tiles';
4
- export declare type KdsFontSize = 'xsmall' | 'small' | 'medium' | 'large';
5
- export declare type KdsColorScheme = 'dark' | 'light';
6
6
  export declare type KdsPrepType = 'ASSEMBLY' | 'EXPO';
7
7
  export declare type KdsOrderType = 'CURRENT' | 'FUTURE' | 'COMPLETED' | 'INCOMPLETE';
8
8
  export declare type KdsAssemblyOptions = 'AUTO_PRINT' | 'PRINT_DONE' | 'MARK_DONE' | 'PRINT_AND_DONE' | null;
@@ -19,8 +19,8 @@ export interface KdsTerminalSettings {
19
19
  columns: number;
20
20
  boxes: number;
21
21
  cardWidth: number;
22
- fontSize: KdsFontSize;
23
- colorScheme: KdsColorScheme;
22
+ fontSize: DeviceFontSize;
23
+ colorScheme: DeviceColorScheme;
24
24
  }
25
25
  export interface KdsStationOrderTypeCount {
26
26
  orders: number;
@@ -18,6 +18,8 @@ export interface OrderItem {
18
18
  id: number;
19
19
  images: Images;
20
20
  ingredients: string | null;
21
+ item_no?: number;
22
+ line_no?: number;
21
23
  made_for?: string | null;
22
24
  name: string;
23
25
  notes?: string | null;
@@ -250,7 +252,7 @@ export interface Order {
250
252
  address: Address | null;
251
253
  cart: OrderCart;
252
254
  channel: OrderChannel;
253
- created_at: ISOStringOffset;
255
+ created_at: ISOString;
254
256
  customer: OrderCustomer | null;
255
257
  delivery: OrderDelivery | null;
256
258
  deposit: Money | null;
@@ -3,4 +3,5 @@ export * from './datetimes';
3
3
  export * from './global';
4
4
  export * from './inputs';
5
5
  export * from './request';
6
+ export * from './themePos';
6
7
  export * from './errors';
@@ -6,4 +6,5 @@ tslib_1.__exportStar(require("./datetimes"), exports);
6
6
  tslib_1.__exportStar(require("./global"), exports);
7
7
  tslib_1.__exportStar(require("./inputs"), exports);
8
8
  tslib_1.__exportStar(require("./request"), exports);
9
+ tslib_1.__exportStar(require("./themePos"), exports);
9
10
  tslib_1.__exportStar(require("./errors"), exports);
@@ -4,12 +4,20 @@ export declare type Layout = {
4
4
  margin: string;
5
5
  headerHeight: string;
6
6
  footerHeight: string;
7
- asideWidth: string;
8
7
  sidebarWidth: string;
9
8
  gutter: string;
10
9
  paddingLessGutter: string;
11
10
  marginLessGutter: string;
11
+ aside: {
12
+ width: string;
13
+ buttonHeight: string;
14
+ };
12
15
  bigButton: {
16
+ width: string;
17
+ height: string;
18
+ };
19
+ tallButton: {
20
+ width: string;
13
21
  height: string;
14
22
  };
15
23
  nav: {
@@ -1,8 +1,8 @@
1
1
  import { PrepStations } from './devices';
2
2
  import { OrderCart, OrderItem, Orders } from './order';
3
+ export declare type DeviceFontSize = 'xsmall' | 'small' | 'medium' | 'large';
4
+ export declare type DeviceColorScheme = 'dark' | 'light';
3
5
  export declare type KdsView = 'column' | 'grid' | 'list' | 'tiles';
4
- export declare type KdsFontSize = 'xsmall' | 'small' | 'medium' | 'large';
5
- export declare type KdsColorScheme = 'dark' | 'light';
6
6
  export declare type KdsPrepType = 'ASSEMBLY' | 'EXPO';
7
7
  export declare type KdsOrderType = 'CURRENT' | 'FUTURE' | 'COMPLETED' | 'INCOMPLETE';
8
8
  export declare type KdsAssemblyOptions = 'AUTO_PRINT' | 'PRINT_DONE' | 'MARK_DONE' | 'PRINT_AND_DONE' | null;
@@ -19,8 +19,8 @@ export interface KdsTerminalSettings {
19
19
  columns: number;
20
20
  boxes: number;
21
21
  cardWidth: number;
22
- fontSize: KdsFontSize;
23
- colorScheme: KdsColorScheme;
22
+ fontSize: DeviceFontSize;
23
+ colorScheme: DeviceColorScheme;
24
24
  }
25
25
  export interface KdsStationOrderTypeCount {
26
26
  orders: number;
@@ -18,6 +18,8 @@ export interface OrderItem {
18
18
  id: number;
19
19
  images: Images;
20
20
  ingredients: string | null;
21
+ item_no?: number;
22
+ line_no?: number;
21
23
  made_for?: string | null;
22
24
  name: string;
23
25
  notes?: string | null;
@@ -250,7 +252,7 @@ export interface Order {
250
252
  address: Address | null;
251
253
  cart: OrderCart;
252
254
  channel: OrderChannel;
253
- created_at: ISOStringOffset;
255
+ created_at: ISOString;
254
256
  customer: OrderCustomer | null;
255
257
  delivery: OrderDelivery | null;
256
258
  deposit: Money | null;
@@ -3,4 +3,5 @@ export * from './datetimes';
3
3
  export * from './global';
4
4
  export * from './inputs';
5
5
  export * from './request';
6
+ export * from './themePos';
6
7
  export * from './errors';
@@ -3,4 +3,5 @@ export * from './datetimes';
3
3
  export * from './global';
4
4
  export * from './inputs';
5
5
  export * from './request';
6
+ export * from './themePos';
6
7
  export * from './errors';
@@ -4,12 +4,20 @@ export declare type Layout = {
4
4
  margin: string;
5
5
  headerHeight: string;
6
6
  footerHeight: string;
7
- asideWidth: string;
8
7
  sidebarWidth: string;
9
8
  gutter: string;
10
9
  paddingLessGutter: string;
11
10
  marginLessGutter: string;
11
+ aside: {
12
+ width: string;
13
+ buttonHeight: string;
14
+ };
12
15
  bigButton: {
16
+ width: string;
17
+ height: string;
18
+ };
19
+ tallButton: {
20
+ width: string;
13
21
  height: string;
14
22
  };
15
23
  nav: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.17",
3
+ "version": "0.4.19",
4
4
  "description": "A library of types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
package/dist/.DS_Store DELETED
Binary file