@open-tender/types 0.0.49 → 0.0.51

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,6 +1,6 @@
1
1
  import { DateString, ISOString, ISOStringOffset, RequestedAt, TimezonePython } from '../datetimes';
2
2
  import { CardType, ChannelType, Decimal, Money, NegativeMoney, OrderStatus, OrderType, ReceiptType, ServiceType, SurchargeType, Temperature, TenderStatus, TenderType } from '../global';
3
- import { Address, Customer, CustomerAllergens, CustomerGiftCards, CustomerRevenueCenterSettings, LoyaltyPoints } from './customer';
3
+ import { Address, Customer, CustomerAllergens, CustomerGiftCards, CustomerRevenueCenterSettings, LoyaltyPoints, RevenueCenterGroupOrdering } from './customer';
4
4
  import { PrepStatus, TicketStatus } from './kds';
5
5
  export interface OrderChannel {
6
6
  ext_id?: string | null;
@@ -56,6 +56,10 @@ export interface OrderRevenueCenter {
56
56
  timezone?: TimezonePython;
57
57
  distance?: number;
58
58
  settings?: CustomerRevenueCenterSettings;
59
+ group_ordering?: RevenueCenterGroupOrdering;
60
+ wait_times?: {
61
+ [key in ServiceType]?: number;
62
+ };
59
63
  }
60
64
  export interface OrderItemDiscount {
61
65
  discount_id: number;
@@ -121,7 +125,7 @@ export interface OrderItem {
121
125
  cals?: number;
122
126
  madeFor?: string;
123
127
  }
124
- export declare type OrderCart = Array<OrderItem>;
128
+ export declare type OrderCart = Array<Partial<OrderItem>>;
125
129
  export interface ModifiersMetadataOption {
126
130
  id: number;
127
131
  line_no: number;
@@ -1,6 +1,6 @@
1
1
  import { DateString, ISOString, ISOStringOffset, RequestedAt, TimezonePython } from '../datetimes';
2
2
  import { CardType, ChannelType, Decimal, Money, NegativeMoney, OrderStatus, OrderType, ReceiptType, ServiceType, SurchargeType, Temperature, TenderStatus, TenderType } from '../global';
3
- import { Address, Customer, CustomerAllergens, CustomerGiftCards, CustomerRevenueCenterSettings, LoyaltyPoints } from './customer';
3
+ import { Address, Customer, CustomerAllergens, CustomerGiftCards, CustomerRevenueCenterSettings, LoyaltyPoints, RevenueCenterGroupOrdering } from './customer';
4
4
  import { PrepStatus, TicketStatus } from './kds';
5
5
  export interface OrderChannel {
6
6
  ext_id?: string | null;
@@ -56,6 +56,10 @@ export interface OrderRevenueCenter {
56
56
  timezone?: TimezonePython;
57
57
  distance?: number;
58
58
  settings?: CustomerRevenueCenterSettings;
59
+ group_ordering?: RevenueCenterGroupOrdering;
60
+ wait_times?: {
61
+ [key in ServiceType]?: number;
62
+ };
59
63
  }
60
64
  export interface OrderItemDiscount {
61
65
  discount_id: number;
@@ -121,7 +125,7 @@ export interface OrderItem {
121
125
  cals?: number;
122
126
  madeFor?: string;
123
127
  }
124
- export declare type OrderCart = Array<OrderItem>;
128
+ export declare type OrderCart = Array<Partial<OrderItem>>;
125
129
  export interface ModifiersMetadataOption {
126
130
  id: number;
127
131
  line_no: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
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",