@open-tender/types 0.4.22 → 0.4.24

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,8 +1,8 @@
1
1
  import { RequestedAt } from '../datetimes';
2
- import { CardType, CardTypeName, DeviceType, DiscountType, Money, OrderType, PrepType, ServiceType, TenderStatus, TenderType } from '../global';
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, Customer } from './customer';
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;
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 './loyalty';
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("./loyalty"), exports);
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
- // export * from './rewards'
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);
@@ -29,6 +29,7 @@ export interface TPLS {
29
29
  email: string;
30
30
  first_name: string;
31
31
  gender: Gender | null;
32
+ is_verified?: boolean;
32
33
  last_name: string;
33
34
  membership_tier: string | null;
34
35
  phone: string;
@@ -1,8 +1,8 @@
1
1
  import { RequestedAt } from '../datetimes';
2
- import { CardType, CardTypeName, DeviceType, DiscountType, Money, OrderType, PrepType, ServiceType, TenderStatus, TenderType } from '../global';
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, Customer } from './customer';
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;
@@ -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 './loyalty';
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 './loyalty';
6
+ export * from './giftCards';
7
7
  export * from './groupOrders';
8
- export * from './allergens';
9
8
  export * from './houseAccounts';
10
- // export * from './rewards'
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';
@@ -29,6 +29,7 @@ export interface TPLS {
29
29
  email: string;
30
30
  first_name: string;
31
31
  gender: Gender | null;
32
+ is_verified?: boolean;
32
33
  last_name: string;
33
34
  membership_tier: string | null;
34
35
  phone: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.22",
3
+ "version": "0.4.24",
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",
package/dist/.DS_Store DELETED
Binary file