@open-tender/types 0.4.21 → 0.4.23
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 +2 -34
- package/dist/cjs/types/api/config.d.ts +16 -15
- package/dist/cjs/types/api/customer/identify.d.ts +35 -0
- package/dist/cjs/types/api/customer/identify.js +2 -0
- package/dist/cjs/types/api/customer/index.d.ts +4 -3
- package/dist/cjs/types/api/customer/index.js +5 -4
- package/dist/esm/types/api/checkout.d.ts +2 -34
- package/dist/esm/types/api/config.d.ts +16 -15
- package/dist/esm/types/api/customer/identify.d.ts +35 -0
- package/dist/esm/types/api/customer/identify.js +1 -0
- package/dist/esm/types/api/customer/index.d.ts +4 -3
- package/dist/esm/types/api/customer/index.js +5 -4
- package/package.json +1 -1
- package/dist/.DS_Store +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RequestedAt } from '../datetimes';
|
|
2
|
-
import { CardType, CardTypeName, DeviceType,
|
|
2
|
+
import { CardType, CardTypeName, DeviceType, Money, OrderType, PrepType, ServiceType, TenderStatus, TenderType } from '../global';
|
|
3
3
|
import { CheckoutErrorParams } from '../request';
|
|
4
4
|
import { Cart, CartItemWithPoints } from './cart';
|
|
5
|
-
import { Address
|
|
5
|
+
import { Address } from './customer';
|
|
6
6
|
import { Order, OrderCustomer, OrderDiscounts, OrderFulfillment, OrderSurcharge } from './order';
|
|
7
7
|
export interface SimpleCartOption {
|
|
8
8
|
id: number;
|
|
@@ -268,38 +268,6 @@ export interface OrderCreate {
|
|
|
268
268
|
tenders?: CheckoutTenders;
|
|
269
269
|
tip?: Money;
|
|
270
270
|
}
|
|
271
|
-
export interface CustomerIdentifier {
|
|
272
|
-
card_token?: string;
|
|
273
|
-
phone?: string;
|
|
274
|
-
qr_code?: string;
|
|
275
|
-
}
|
|
276
|
-
export interface IdentifyCustomer {
|
|
277
|
-
data: CustomerIdentifier;
|
|
278
|
-
callback?: () => void;
|
|
279
|
-
showError?: boolean;
|
|
280
|
-
}
|
|
281
|
-
export interface CustomerDiscount {
|
|
282
|
-
customer_loyalty_id: number;
|
|
283
|
-
loyalty_program_id: number;
|
|
284
|
-
order_type: OrderType;
|
|
285
|
-
amount: Money;
|
|
286
|
-
name: string;
|
|
287
|
-
discount_id: number;
|
|
288
|
-
discount_type: DiscountType;
|
|
289
|
-
description: string;
|
|
290
|
-
before_surcharge: boolean;
|
|
291
|
-
is_taxed: boolean;
|
|
292
|
-
is_promo_code: boolean;
|
|
293
|
-
is_auto: boolean;
|
|
294
|
-
is_loyalty: boolean;
|
|
295
|
-
}
|
|
296
|
-
export declare type CustomerDiscounts = Array<CustomerDiscount>;
|
|
297
|
-
export interface CustomerCheckout {
|
|
298
|
-
customer: Customer;
|
|
299
|
-
discounts: CustomerDiscounts;
|
|
300
|
-
points: any;
|
|
301
|
-
discount: any;
|
|
302
|
-
}
|
|
303
271
|
export interface CheckoutPoints {
|
|
304
272
|
points: CheckoutConfigLoyalty;
|
|
305
273
|
applied: OrderCreatePoints;
|
|
@@ -136,6 +136,21 @@ export interface BottomTabsDisplayed {
|
|
|
136
136
|
}
|
|
137
137
|
export declare type MenuSection = 'FEATURED' | 'FAVORITES' | 'RECENTS';
|
|
138
138
|
export declare type MenuSections = MenuSection[];
|
|
139
|
+
export interface ConfigUpsell {
|
|
140
|
+
cart: ConfigContentField & {
|
|
141
|
+
decline: string;
|
|
142
|
+
show: boolean;
|
|
143
|
+
};
|
|
144
|
+
checkout: ConfigContentField & {
|
|
145
|
+
decline: string;
|
|
146
|
+
proceed: string;
|
|
147
|
+
show: boolean;
|
|
148
|
+
};
|
|
149
|
+
item: ConfigContentField & {
|
|
150
|
+
decline: string;
|
|
151
|
+
show: boolean;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
139
154
|
export interface ConfigContent {
|
|
140
155
|
about: {
|
|
141
156
|
background: string;
|
|
@@ -367,21 +382,7 @@ export interface ConfigContent {
|
|
|
367
382
|
background: string;
|
|
368
383
|
displayed: (keyof CustomerCreate)[];
|
|
369
384
|
};
|
|
370
|
-
upsells:
|
|
371
|
-
cart: ConfigContentField & {
|
|
372
|
-
decline: string;
|
|
373
|
-
show: boolean;
|
|
374
|
-
};
|
|
375
|
-
checkout: ConfigContentField & {
|
|
376
|
-
decline: string;
|
|
377
|
-
proceed: string;
|
|
378
|
-
show: boolean;
|
|
379
|
-
};
|
|
380
|
-
item: ConfigContentField & {
|
|
381
|
-
decline: string;
|
|
382
|
-
show: boolean;
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
+
upsells: ConfigUpsell;
|
|
385
386
|
}
|
|
386
387
|
export interface ConfigSettingsCheckoutOrderType {
|
|
387
388
|
address_company: string | null;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DiscountType, Money, OrderType } from '../../global';
|
|
2
|
+
export interface CustomerIdentifier {
|
|
3
|
+
card_token?: string;
|
|
4
|
+
phone?: string;
|
|
5
|
+
qr_code?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CustomerIdentifyDiscount {
|
|
8
|
+
customer_loyalty_id: number;
|
|
9
|
+
loyalty_program_id: number;
|
|
10
|
+
order_type: OrderType;
|
|
11
|
+
amount: Money;
|
|
12
|
+
name: string;
|
|
13
|
+
discount_id: number;
|
|
14
|
+
discount_type: DiscountType;
|
|
15
|
+
description: string;
|
|
16
|
+
before_surcharge: boolean;
|
|
17
|
+
is_taxed: boolean;
|
|
18
|
+
is_promo_code: boolean;
|
|
19
|
+
is_auto: boolean;
|
|
20
|
+
is_loyalty: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare type CustomerIdentifyDiscounts = CustomerIdentifyDiscount[];
|
|
23
|
+
export interface CustomerIdentifyCustomer {
|
|
24
|
+
customer_id: number;
|
|
25
|
+
email: string;
|
|
26
|
+
first_name: string;
|
|
27
|
+
last_name: string;
|
|
28
|
+
phone: string;
|
|
29
|
+
}
|
|
30
|
+
export interface CustomerIdentify {
|
|
31
|
+
customer: CustomerIdentifyCustomer;
|
|
32
|
+
discounts: CustomerIdentifyDiscounts;
|
|
33
|
+
points: any;
|
|
34
|
+
discount: any;
|
|
35
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
export * from './allergens';
|
|
1
2
|
export * from './account';
|
|
2
3
|
export * from './addresses';
|
|
3
4
|
export * from './communicationPreferences';
|
|
4
|
-
export * from './giftCards';
|
|
5
5
|
export * from './customer';
|
|
6
|
-
export * from './
|
|
6
|
+
export * from './giftCards';
|
|
7
7
|
export * from './groupOrders';
|
|
8
|
-
export * from './allergens';
|
|
9
8
|
export * from './houseAccounts';
|
|
9
|
+
export * from './identify';
|
|
10
|
+
export * from './loyalty';
|
|
10
11
|
export * from './qrcode';
|
|
11
12
|
export * from './thanx';
|
|
12
13
|
export * from './tpls';
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./allergens"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./account"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./addresses"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./communicationPreferences"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./giftCards"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./customer"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./
|
|
9
|
+
tslib_1.__exportStar(require("./giftCards"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./groupOrders"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./allergens"), exports);
|
|
12
11
|
tslib_1.__exportStar(require("./houseAccounts"), exports);
|
|
13
|
-
|
|
12
|
+
tslib_1.__exportStar(require("./identify"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./loyalty"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./qrcode"), exports);
|
|
15
|
+
// export * from './rewards'
|
|
15
16
|
tslib_1.__exportStar(require("./thanx"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./tpls"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RequestedAt } from '../datetimes';
|
|
2
|
-
import { CardType, CardTypeName, DeviceType,
|
|
2
|
+
import { CardType, CardTypeName, DeviceType, Money, OrderType, PrepType, ServiceType, TenderStatus, TenderType } from '../global';
|
|
3
3
|
import { CheckoutErrorParams } from '../request';
|
|
4
4
|
import { Cart, CartItemWithPoints } from './cart';
|
|
5
|
-
import { Address
|
|
5
|
+
import { Address } from './customer';
|
|
6
6
|
import { Order, OrderCustomer, OrderDiscounts, OrderFulfillment, OrderSurcharge } from './order';
|
|
7
7
|
export interface SimpleCartOption {
|
|
8
8
|
id: number;
|
|
@@ -268,38 +268,6 @@ export interface OrderCreate {
|
|
|
268
268
|
tenders?: CheckoutTenders;
|
|
269
269
|
tip?: Money;
|
|
270
270
|
}
|
|
271
|
-
export interface CustomerIdentifier {
|
|
272
|
-
card_token?: string;
|
|
273
|
-
phone?: string;
|
|
274
|
-
qr_code?: string;
|
|
275
|
-
}
|
|
276
|
-
export interface IdentifyCustomer {
|
|
277
|
-
data: CustomerIdentifier;
|
|
278
|
-
callback?: () => void;
|
|
279
|
-
showError?: boolean;
|
|
280
|
-
}
|
|
281
|
-
export interface CustomerDiscount {
|
|
282
|
-
customer_loyalty_id: number;
|
|
283
|
-
loyalty_program_id: number;
|
|
284
|
-
order_type: OrderType;
|
|
285
|
-
amount: Money;
|
|
286
|
-
name: string;
|
|
287
|
-
discount_id: number;
|
|
288
|
-
discount_type: DiscountType;
|
|
289
|
-
description: string;
|
|
290
|
-
before_surcharge: boolean;
|
|
291
|
-
is_taxed: boolean;
|
|
292
|
-
is_promo_code: boolean;
|
|
293
|
-
is_auto: boolean;
|
|
294
|
-
is_loyalty: boolean;
|
|
295
|
-
}
|
|
296
|
-
export declare type CustomerDiscounts = Array<CustomerDiscount>;
|
|
297
|
-
export interface CustomerCheckout {
|
|
298
|
-
customer: Customer;
|
|
299
|
-
discounts: CustomerDiscounts;
|
|
300
|
-
points: any;
|
|
301
|
-
discount: any;
|
|
302
|
-
}
|
|
303
271
|
export interface CheckoutPoints {
|
|
304
272
|
points: CheckoutConfigLoyalty;
|
|
305
273
|
applied: OrderCreatePoints;
|
|
@@ -136,6 +136,21 @@ export interface BottomTabsDisplayed {
|
|
|
136
136
|
}
|
|
137
137
|
export declare type MenuSection = 'FEATURED' | 'FAVORITES' | 'RECENTS';
|
|
138
138
|
export declare type MenuSections = MenuSection[];
|
|
139
|
+
export interface ConfigUpsell {
|
|
140
|
+
cart: ConfigContentField & {
|
|
141
|
+
decline: string;
|
|
142
|
+
show: boolean;
|
|
143
|
+
};
|
|
144
|
+
checkout: ConfigContentField & {
|
|
145
|
+
decline: string;
|
|
146
|
+
proceed: string;
|
|
147
|
+
show: boolean;
|
|
148
|
+
};
|
|
149
|
+
item: ConfigContentField & {
|
|
150
|
+
decline: string;
|
|
151
|
+
show: boolean;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
139
154
|
export interface ConfigContent {
|
|
140
155
|
about: {
|
|
141
156
|
background: string;
|
|
@@ -367,21 +382,7 @@ export interface ConfigContent {
|
|
|
367
382
|
background: string;
|
|
368
383
|
displayed: (keyof CustomerCreate)[];
|
|
369
384
|
};
|
|
370
|
-
upsells:
|
|
371
|
-
cart: ConfigContentField & {
|
|
372
|
-
decline: string;
|
|
373
|
-
show: boolean;
|
|
374
|
-
};
|
|
375
|
-
checkout: ConfigContentField & {
|
|
376
|
-
decline: string;
|
|
377
|
-
proceed: string;
|
|
378
|
-
show: boolean;
|
|
379
|
-
};
|
|
380
|
-
item: ConfigContentField & {
|
|
381
|
-
decline: string;
|
|
382
|
-
show: boolean;
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
+
upsells: ConfigUpsell;
|
|
385
386
|
}
|
|
386
387
|
export interface ConfigSettingsCheckoutOrderType {
|
|
387
388
|
address_company: string | null;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DiscountType, Money, OrderType } from '../../global';
|
|
2
|
+
export interface CustomerIdentifier {
|
|
3
|
+
card_token?: string;
|
|
4
|
+
phone?: string;
|
|
5
|
+
qr_code?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CustomerIdentifyDiscount {
|
|
8
|
+
customer_loyalty_id: number;
|
|
9
|
+
loyalty_program_id: number;
|
|
10
|
+
order_type: OrderType;
|
|
11
|
+
amount: Money;
|
|
12
|
+
name: string;
|
|
13
|
+
discount_id: number;
|
|
14
|
+
discount_type: DiscountType;
|
|
15
|
+
description: string;
|
|
16
|
+
before_surcharge: boolean;
|
|
17
|
+
is_taxed: boolean;
|
|
18
|
+
is_promo_code: boolean;
|
|
19
|
+
is_auto: boolean;
|
|
20
|
+
is_loyalty: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare type CustomerIdentifyDiscounts = CustomerIdentifyDiscount[];
|
|
23
|
+
export interface CustomerIdentifyCustomer {
|
|
24
|
+
customer_id: number;
|
|
25
|
+
email: string;
|
|
26
|
+
first_name: string;
|
|
27
|
+
last_name: string;
|
|
28
|
+
phone: string;
|
|
29
|
+
}
|
|
30
|
+
export interface CustomerIdentify {
|
|
31
|
+
customer: CustomerIdentifyCustomer;
|
|
32
|
+
discounts: CustomerIdentifyDiscounts;
|
|
33
|
+
points: any;
|
|
34
|
+
discount: any;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
export * from './allergens';
|
|
1
2
|
export * from './account';
|
|
2
3
|
export * from './addresses';
|
|
3
4
|
export * from './communicationPreferences';
|
|
4
|
-
export * from './giftCards';
|
|
5
5
|
export * from './customer';
|
|
6
|
-
export * from './
|
|
6
|
+
export * from './giftCards';
|
|
7
7
|
export * from './groupOrders';
|
|
8
|
-
export * from './allergens';
|
|
9
8
|
export * from './houseAccounts';
|
|
9
|
+
export * from './identify';
|
|
10
|
+
export * from './loyalty';
|
|
10
11
|
export * from './qrcode';
|
|
11
12
|
export * from './thanx';
|
|
12
13
|
export * from './tpls';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
export * from './allergens';
|
|
1
2
|
export * from './account';
|
|
2
3
|
export * from './addresses';
|
|
3
4
|
export * from './communicationPreferences';
|
|
4
|
-
export * from './giftCards';
|
|
5
5
|
export * from './customer';
|
|
6
|
-
export * from './
|
|
6
|
+
export * from './giftCards';
|
|
7
7
|
export * from './groupOrders';
|
|
8
|
-
export * from './allergens';
|
|
9
8
|
export * from './houseAccounts';
|
|
10
|
-
|
|
9
|
+
export * from './identify';
|
|
10
|
+
export * from './loyalty';
|
|
11
11
|
export * from './qrcode';
|
|
12
|
+
// export * from './rewards'
|
|
12
13
|
export * from './thanx';
|
|
13
14
|
export * from './tpls';
|
package/package.json
CHANGED
package/dist/.DS_Store
DELETED
|
Binary file
|