@open-tender/types 0.0.33 → 0.0.35
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 +3 -3
- package/dist/cjs/types/api/customer/customer.d.ts +1 -0
- package/dist/cjs/types/api/customer/index.d.ts +1 -0
- package/dist/cjs/types/api/customer/index.js +1 -0
- package/dist/cjs/types/api/customer/rewards.d.ts +1 -0
- package/dist/cjs/types/api/customer/thanx.d.ts +13 -0
- package/dist/cjs/types/api/customer/thanx.js +2 -0
- package/dist/cjs/types/api/order.d.ts +15 -15
- package/dist/esm/types/api/checkout.d.ts +3 -3
- package/dist/esm/types/api/customer/customer.d.ts +1 -0
- package/dist/esm/types/api/customer/index.d.ts +1 -0
- package/dist/esm/types/api/customer/index.js +1 -0
- package/dist/esm/types/api/customer/rewards.d.ts +1 -0
- package/dist/esm/types/api/customer/thanx.d.ts +13 -0
- package/dist/esm/types/api/customer/thanx.js +1 -0
- package/dist/esm/types/api/order.d.ts +15 -15
- package/package.json +1 -1
|
@@ -107,7 +107,7 @@ export interface OrderCreate {
|
|
|
107
107
|
points?: Array<OrderCreatePoints>;
|
|
108
108
|
promo_codes?: string[];
|
|
109
109
|
requested_at: ISOString | 'asap';
|
|
110
|
-
revenue_center_id
|
|
110
|
+
revenue_center_id?: number;
|
|
111
111
|
service_type: ServiceType;
|
|
112
112
|
shipment_id?: string;
|
|
113
113
|
surcharges?: Array<OrderCreateSurcharge>;
|
|
@@ -145,9 +145,9 @@ export interface CheckoutConfig {
|
|
|
145
145
|
tender_types: Array<TenderType>;
|
|
146
146
|
}
|
|
147
147
|
export interface CheckoutForm {
|
|
148
|
-
address: Address | null;
|
|
148
|
+
address: Partial<Address> | null;
|
|
149
149
|
customer: Customer;
|
|
150
|
-
details: OrderDetails
|
|
150
|
+
details: Partial<OrderDetails>;
|
|
151
151
|
discounts: OrderDiscounts;
|
|
152
152
|
points: Array<LoyaltyPoints>;
|
|
153
153
|
promoCodes: any;
|
|
@@ -13,3 +13,4 @@ tslib_1.__exportStar(require("./houseAccounts"), exports);
|
|
|
13
13
|
tslib_1.__exportStar(require("./rewards"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./revenueCenters"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./qrcode"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./thanx"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Reward } from "./rewards";
|
|
2
|
+
export interface ThanxProgress {
|
|
3
|
+
percentage: string;
|
|
4
|
+
towards: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Thanx {
|
|
7
|
+
email: string;
|
|
8
|
+
ext_id: string;
|
|
9
|
+
first_name: string;
|
|
10
|
+
last_name: string;
|
|
11
|
+
progress: ThanxProgress;
|
|
12
|
+
rewards: Array<Partial<Reward>>;
|
|
13
|
+
}
|
|
@@ -436,22 +436,22 @@ export interface OrderItemCount {
|
|
|
436
436
|
count: number;
|
|
437
437
|
}
|
|
438
438
|
export interface UnpreparedOrderData {
|
|
439
|
-
orderId: number;
|
|
440
|
-
revenueCenterId: number;
|
|
441
|
-
serviceType: ServiceType;
|
|
442
|
-
requestedAt: string;
|
|
443
|
-
cart: OrderCart;
|
|
439
|
+
orderId: number | null;
|
|
440
|
+
revenueCenterId: number | null;
|
|
441
|
+
serviceType: ServiceType | null;
|
|
442
|
+
requestedAt: string | null;
|
|
443
|
+
cart: OrderCart | null;
|
|
444
444
|
customer: Customer;
|
|
445
445
|
address: Address | null;
|
|
446
|
-
details: OrderDetails;
|
|
447
|
-
surcharges: OrderSurcharge;
|
|
448
|
-
discounts: OrderDiscounts;
|
|
449
|
-
promoCodes: any;
|
|
450
|
-
points: LoyaltyPoints | number;
|
|
451
|
-
tip: number;
|
|
452
|
-
tenders: OrderTenders;
|
|
446
|
+
details: OrderDetails | null;
|
|
447
|
+
surcharges: OrderSurcharge | null;
|
|
448
|
+
discounts: OrderDiscounts | null;
|
|
449
|
+
promoCodes: any | null;
|
|
450
|
+
points: LoyaltyPoints | number | null;
|
|
451
|
+
tip: number | null;
|
|
452
|
+
tenders: OrderTenders | null;
|
|
453
453
|
cartId: number | null;
|
|
454
|
-
deviceType: string;
|
|
455
|
-
prepType: string;
|
|
456
|
-
table: number;
|
|
454
|
+
deviceType: string | null;
|
|
455
|
+
prepType: string | null;
|
|
456
|
+
table: number | null;
|
|
457
457
|
}
|
|
@@ -107,7 +107,7 @@ export interface OrderCreate {
|
|
|
107
107
|
points?: Array<OrderCreatePoints>;
|
|
108
108
|
promo_codes?: string[];
|
|
109
109
|
requested_at: ISOString | 'asap';
|
|
110
|
-
revenue_center_id
|
|
110
|
+
revenue_center_id?: number;
|
|
111
111
|
service_type: ServiceType;
|
|
112
112
|
shipment_id?: string;
|
|
113
113
|
surcharges?: Array<OrderCreateSurcharge>;
|
|
@@ -145,9 +145,9 @@ export interface CheckoutConfig {
|
|
|
145
145
|
tender_types: Array<TenderType>;
|
|
146
146
|
}
|
|
147
147
|
export interface CheckoutForm {
|
|
148
|
-
address: Address | null;
|
|
148
|
+
address: Partial<Address> | null;
|
|
149
149
|
customer: Customer;
|
|
150
|
-
details: OrderDetails
|
|
150
|
+
details: Partial<OrderDetails>;
|
|
151
151
|
discounts: OrderDiscounts;
|
|
152
152
|
points: Array<LoyaltyPoints>;
|
|
153
153
|
promoCodes: any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Reward } from "./rewards";
|
|
2
|
+
export interface ThanxProgress {
|
|
3
|
+
percentage: string;
|
|
4
|
+
towards: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Thanx {
|
|
7
|
+
email: string;
|
|
8
|
+
ext_id: string;
|
|
9
|
+
first_name: string;
|
|
10
|
+
last_name: string;
|
|
11
|
+
progress: ThanxProgress;
|
|
12
|
+
rewards: Array<Partial<Reward>>;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -436,22 +436,22 @@ export interface OrderItemCount {
|
|
|
436
436
|
count: number;
|
|
437
437
|
}
|
|
438
438
|
export interface UnpreparedOrderData {
|
|
439
|
-
orderId: number;
|
|
440
|
-
revenueCenterId: number;
|
|
441
|
-
serviceType: ServiceType;
|
|
442
|
-
requestedAt: string;
|
|
443
|
-
cart: OrderCart;
|
|
439
|
+
orderId: number | null;
|
|
440
|
+
revenueCenterId: number | null;
|
|
441
|
+
serviceType: ServiceType | null;
|
|
442
|
+
requestedAt: string | null;
|
|
443
|
+
cart: OrderCart | null;
|
|
444
444
|
customer: Customer;
|
|
445
445
|
address: Address | null;
|
|
446
|
-
details: OrderDetails;
|
|
447
|
-
surcharges: OrderSurcharge;
|
|
448
|
-
discounts: OrderDiscounts;
|
|
449
|
-
promoCodes: any;
|
|
450
|
-
points: LoyaltyPoints | number;
|
|
451
|
-
tip: number;
|
|
452
|
-
tenders: OrderTenders;
|
|
446
|
+
details: OrderDetails | null;
|
|
447
|
+
surcharges: OrderSurcharge | null;
|
|
448
|
+
discounts: OrderDiscounts | null;
|
|
449
|
+
promoCodes: any | null;
|
|
450
|
+
points: LoyaltyPoints | number | null;
|
|
451
|
+
tip: number | null;
|
|
452
|
+
tenders: OrderTenders | null;
|
|
453
453
|
cartId: number | null;
|
|
454
|
-
deviceType: string;
|
|
455
|
-
prepType: string;
|
|
456
|
-
table: number;
|
|
454
|
+
deviceType: string | null;
|
|
455
|
+
prepType: string | null;
|
|
456
|
+
table: number | null;
|
|
457
457
|
}
|
package/package.json
CHANGED