Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@open-tender/types

Package Overview
Dependencies
Maintainers
2
Versions
398
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-tender/types - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

4

dist/cjs/types/api/customer/revenueCenters.d.ts

@@ -112,2 +112,3 @@ import { DateString, ISOString, Time24, TimeHuman, TimezonePython } from '../../datetimes';

excluded_times: ExcludedTimes | null;
service_types?: Array<ServiceType>;
}

@@ -169,2 +170,5 @@ export interface CustomerRevenueCenter {

settings?: CustomerRevenueCenterSettings;
distance?: number;
inZone?: boolean;
priority?: number;
}

@@ -171,0 +175,0 @@ export declare type CustomerRevenueCenters = Array<CustomerRevenueCenter>;

import { DateString, ISOStringOffset, TimezonePython } from '../datetimes';
import { CardType, ChannelType, Decimal, Money, NegativeMoney, OrderStatus, OrderType, ReceiptType, ServiceType, SurchargeType, Temperature, TenderStatus, TenderType } from '../global';
import { Address, Customer, CustomerAllergens, CustomerGiftCards } from './customer';
import { Address, Customer, CustomerAllergens, CustomerGiftCards, LoyaltyPoints } from './customer';
import { PrepStatus, TicketStatus } from './kds';

@@ -18,4 +18,6 @@ export interface OrderChannel {

tax_exempt_id: string | null;
device_type: string;
}
export interface OrderDiscount {
discount_id?: number;
amount: Money;

@@ -56,2 +58,3 @@ description?: string | null;

timezone?: TimezonePython;
distance?: number;
}

@@ -180,3 +183,3 @@ export interface OrderItemDiscount {

id: number;
is_optinoal?: boolean;
is_optional?: boolean;
is_taxed: boolean;

@@ -431,1 +434,21 @@ label?: string;

}
export interface UnpreparedOrderData {
orderId: number;
revenueCenterId: number;
serviceType: ServiceType;
requestedAt: string;
cart: OrderCart;
customer: Customer;
address: Address | null;
details: OrderDetails;
surcharges: OrderSurcharge;
discounts: OrderDiscounts;
promoCodes: any;
points: LoyaltyPoints | number;
tip: number;
tenders: OrderTenders;
cartId: number | null;
deviceType: string;
prepType: string;
table: number;
}

@@ -52,3 +52,4 @@ import { TimeString } from '../datetimes';

temporary_pickup_wait_time_id: number | null;
distance?: number;
}
export declare type RevenueCenterType = 'POS' | 'OLO' | 'CATERING';

@@ -11,2 +11,3 @@ export interface IndexedError {

params?: Record<string, string>;
message?: string;
}

@@ -13,0 +14,0 @@ export declare type RequestError = RequestErrorAPI | null | undefined;

@@ -112,2 +112,3 @@ import { DateString, ISOString, Time24, TimeHuman, TimezonePython } from '../../datetimes';

excluded_times: ExcludedTimes | null;
service_types?: Array<ServiceType>;
}

@@ -169,2 +170,5 @@ export interface CustomerRevenueCenter {

settings?: CustomerRevenueCenterSettings;
distance?: number;
inZone?: boolean;
priority?: number;
}

@@ -171,0 +175,0 @@ export declare type CustomerRevenueCenters = Array<CustomerRevenueCenter>;

import { DateString, ISOStringOffset, TimezonePython } from '../datetimes';
import { CardType, ChannelType, Decimal, Money, NegativeMoney, OrderStatus, OrderType, ReceiptType, ServiceType, SurchargeType, Temperature, TenderStatus, TenderType } from '../global';
import { Address, Customer, CustomerAllergens, CustomerGiftCards } from './customer';
import { Address, Customer, CustomerAllergens, CustomerGiftCards, LoyaltyPoints } from './customer';
import { PrepStatus, TicketStatus } from './kds';

@@ -18,4 +18,6 @@ export interface OrderChannel {

tax_exempt_id: string | null;
device_type: string;
}
export interface OrderDiscount {
discount_id?: number;
amount: Money;

@@ -56,2 +58,3 @@ description?: string | null;

timezone?: TimezonePython;
distance?: number;
}

@@ -180,3 +183,3 @@ export interface OrderItemDiscount {

id: number;
is_optinoal?: boolean;
is_optional?: boolean;
is_taxed: boolean;

@@ -431,1 +434,21 @@ label?: string;

}
export interface UnpreparedOrderData {
orderId: number;
revenueCenterId: number;
serviceType: ServiceType;
requestedAt: string;
cart: OrderCart;
customer: Customer;
address: Address | null;
details: OrderDetails;
surcharges: OrderSurcharge;
discounts: OrderDiscounts;
promoCodes: any;
points: LoyaltyPoints | number;
tip: number;
tenders: OrderTenders;
cartId: number | null;
deviceType: string;
prepType: string;
table: number;
}

@@ -52,3 +52,4 @@ import { TimeString } from '../datetimes';

temporary_pickup_wait_time_id: number | null;
distance?: number;
}
export declare type RevenueCenterType = 'POS' | 'OLO' | 'CATERING';

@@ -11,2 +11,3 @@ export interface IndexedError {

params?: Record<string, string>;
message?: string;
}

@@ -13,0 +14,0 @@ export declare type RequestError = RequestErrorAPI | null | undefined;

2

package.json
{
"name": "@open-tender/types",
"version": "0.0.10",
"version": "0.0.11",
"description": "A library of types for use with Open Tender applications that utilize our cloud-based Order API.",

@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc