@open-tender/types 0.0.37 → 0.0.39

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,5 +1,5 @@
1
1
  export interface Address {
2
- city: string;
2
+ city?: string;
3
3
  company?: string;
4
4
  contact?: string;
5
5
  created_at?: string;
@@ -1,5 +1,5 @@
1
1
  import { ISOStringOffset } from '../../datetimes';
2
- export declare type NotificationChannel = 'EMAIL' | 'SMS' | 'PUSH';
2
+ export declare type NotificationChannel = 'EMAIL' | 'SMS' | 'PUSH' | 'ALL';
3
3
  export declare type NotificationArea = 'ORDER' | 'RATING' | 'MARKETING';
4
4
  export interface CustomerNotificationPref {
5
5
  craeted_at: ISOStringOffset;
@@ -1,4 +1,4 @@
1
- import { DateString, ISOString, ISOStringOffset, TimezonePython } from '../datetimes';
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
3
  import { Address, Customer, CustomerAllergens, CustomerGiftCards, LoyaltyPoints } from './customer';
4
4
  import { PrepStatus, TicketStatus } from './kds';
@@ -332,7 +332,7 @@ export interface Order {
332
332
  ready_at: ISOStringOffset | ISOString | null;
333
333
  receipt_type: ReceiptType;
334
334
  refunds?: Array<OrderTender>;
335
- requested_at: ISOStringOffset;
335
+ requested_at: RequestedAt;
336
336
  requested_time?: string;
337
337
  revenue_center: OrderRevenueCenter;
338
338
  service_type: ServiceType;
@@ -10,7 +10,7 @@ export declare type FullOrderType = OrderType | 'MAIN_MENU' | 'ECOMMERCE';
10
10
  export declare type OrderTypeMap = {
11
11
  [Property in OrderType]: string;
12
12
  };
13
- export declare type ServiceType = 'WALKIN' | 'PICKUP' | 'DELIVERY' | 'PORTAL';
13
+ export declare type ServiceType = 'WALKIN' | 'PICKUP' | 'DELIVERY' | 'PORTAL' | 'OUTPOST';
14
14
  export declare type ServiceTypeMap = {
15
15
  [Property in ServiceType]: string;
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
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",