@open-tender/types 0.4.28 → 0.4.30
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.
- package/dist/cjs/types/api/checkout.d.ts +4 -7
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/pizzaBuilder.d.ts +7 -0
- package/dist/cjs/types/pizzaBuilder.js +2 -0
- package/dist/esm/types/api/checkout.d.ts +4 -7
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/pizzaBuilder.d.ts +7 -0
- package/dist/esm/types/pizzaBuilder.js +1 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RequestedAt } from '../datetimes';
|
|
2
2
|
import { CardType, CardTypeName, DeviceType, Money, OrderType, PrepType, ServiceType, TenderStatus, TenderType } from '../global';
|
|
3
3
|
import { CheckoutErrorParams } from '../request';
|
|
4
|
-
import { Cart
|
|
5
|
-
import { Address } from './customer';
|
|
4
|
+
import { Cart } from './cart';
|
|
5
|
+
import { Address, CustomerIdentify } from './customer';
|
|
6
6
|
import { Order, OrderCustomer, OrderDiscounts, OrderFulfillment, OrderSurcharge } from './order';
|
|
7
7
|
export interface SimpleCartOption {
|
|
8
8
|
id: number;
|
|
@@ -268,9 +268,6 @@ export interface OrderCreate {
|
|
|
268
268
|
tenders?: CheckoutTenders;
|
|
269
269
|
tip?: Money;
|
|
270
270
|
}
|
|
271
|
-
export interface
|
|
272
|
-
|
|
273
|
-
applied: OrderCreatePoints;
|
|
274
|
-
apply: (item: CartItemWithPoints) => void;
|
|
275
|
-
remove: (item: CartItemWithPoints) => void;
|
|
271
|
+
export interface OrderCreatePos extends Omit<OrderCreate, 'customer'> {
|
|
272
|
+
customer: CustomerIdentify | null;
|
|
276
273
|
}
|
package/dist/cjs/types/index.js
CHANGED
|
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./api"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./datetimes"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./global"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./inputs"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pizzaBuilder"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./request"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./themePos"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./errors"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CartItemGroup, CartItemOption } from './api';
|
|
2
|
+
export declare type Coverage = '1st-half' | 'whole' | '2nd-half';
|
|
3
|
+
export declare type Amount = 'normal' | 'extra' | 'light';
|
|
4
|
+
export interface GroupOption {
|
|
5
|
+
group: CartItemGroup;
|
|
6
|
+
option: CartItemOption;
|
|
7
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RequestedAt } from '../datetimes';
|
|
2
2
|
import { CardType, CardTypeName, DeviceType, Money, OrderType, PrepType, ServiceType, TenderStatus, TenderType } from '../global';
|
|
3
3
|
import { CheckoutErrorParams } from '../request';
|
|
4
|
-
import { Cart
|
|
5
|
-
import { Address } from './customer';
|
|
4
|
+
import { Cart } from './cart';
|
|
5
|
+
import { Address, CustomerIdentify } from './customer';
|
|
6
6
|
import { Order, OrderCustomer, OrderDiscounts, OrderFulfillment, OrderSurcharge } from './order';
|
|
7
7
|
export interface SimpleCartOption {
|
|
8
8
|
id: number;
|
|
@@ -268,9 +268,6 @@ export interface OrderCreate {
|
|
|
268
268
|
tenders?: CheckoutTenders;
|
|
269
269
|
tip?: Money;
|
|
270
270
|
}
|
|
271
|
-
export interface
|
|
272
|
-
|
|
273
|
-
applied: OrderCreatePoints;
|
|
274
|
-
apply: (item: CartItemWithPoints) => void;
|
|
275
|
-
remove: (item: CartItemWithPoints) => void;
|
|
271
|
+
export interface OrderCreatePos extends Omit<OrderCreate, 'customer'> {
|
|
272
|
+
customer: CustomerIdentify | null;
|
|
276
273
|
}
|
package/dist/esm/types/index.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CartItemGroup, CartItemOption } from './api';
|
|
2
|
+
export declare type Coverage = '1st-half' | 'whole' | '2nd-half';
|
|
3
|
+
export declare type Amount = 'normal' | 'extra' | 'light';
|
|
4
|
+
export interface GroupOption {
|
|
5
|
+
group: CartItemGroup;
|
|
6
|
+
option: CartItemOption;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED