@open-tender/types 0.2.55 → 0.2.57

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.
@@ -85,6 +85,7 @@ export interface ConfigBrand {
85
85
  origin: string;
86
86
  timezone: TimezonePython;
87
87
  title: string;
88
+ tpls: 'COMO' | 'THANX' | null;
88
89
  url: string;
89
90
  }
90
91
  export interface ConfigContentField {
@@ -1,6 +1,8 @@
1
1
  export interface Auth {
2
2
  access_token: string;
3
+ customer_id?: number;
3
4
  expires_in: number;
5
+ message?: string;
4
6
  refresh_token: string;
5
7
  token_type: string;
6
8
  }
@@ -13,3 +15,8 @@ export interface ResetPasswordData {
13
15
  password: string;
14
16
  confirm: string;
15
17
  }
18
+ export interface OneTimePasscode {
19
+ email?: string;
20
+ one_time_passcode?: string;
21
+ phone?: string;
22
+ }
@@ -1,5 +1,5 @@
1
1
  import { DateString, ISOString, ISOStringOffset, RequestedAt, TimeHuman, TimezonePython } from '../datetimes';
2
- import { CardType, CardTypeName, ChannelType, DiscountAuthType, DiscountType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, TenderType } from '../global';
2
+ import { CardType, CardTypeName, ChannelType, DiscountAuthType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, TenderType } from '../global';
3
3
  import { CreditCard, CreditCards } from './creditCards';
4
4
  import { Address, Customer, GiftCard, HouseAccounts } from './customer';
5
5
  import { PrepStatus } from './kds';
@@ -88,15 +88,17 @@ export interface OrderDetails {
88
88
  serving_utensils: boolean;
89
89
  tax_exempt_id: string | null;
90
90
  }
91
+ export declare type OrderDiscountType = 'DEAL' | 'DISCOUNT' | 'LOYALTY' | 'PROMO_CODE' | 'REWARD';
91
92
  export interface OrderDiscount {
92
93
  amount: NegativeMoney;
93
94
  auth_type: DiscountAuthType;
94
- discount_type: DiscountType;
95
+ description?: string | null;
96
+ discount_type: OrderDiscountType;
95
97
  ext_id?: string | null;
96
98
  id: number;
97
99
  is_deal: boolean;
98
100
  is_loyalty: boolean;
99
- is_optional: boolean;
101
+ is_optional?: boolean;
100
102
  is_promo_code: boolean;
101
103
  is_reward: boolean;
102
104
  name: string;
@@ -85,6 +85,7 @@ export interface ConfigBrand {
85
85
  origin: string;
86
86
  timezone: TimezonePython;
87
87
  title: string;
88
+ tpls: 'COMO' | 'THANX' | null;
88
89
  url: string;
89
90
  }
90
91
  export interface ConfigContentField {
@@ -1,6 +1,8 @@
1
1
  export interface Auth {
2
2
  access_token: string;
3
+ customer_id?: number;
3
4
  expires_in: number;
5
+ message?: string;
4
6
  refresh_token: string;
5
7
  token_type: string;
6
8
  }
@@ -13,3 +15,8 @@ export interface ResetPasswordData {
13
15
  password: string;
14
16
  confirm: string;
15
17
  }
18
+ export interface OneTimePasscode {
19
+ email?: string;
20
+ one_time_passcode?: string;
21
+ phone?: string;
22
+ }
@@ -1,5 +1,5 @@
1
1
  import { DateString, ISOString, ISOStringOffset, RequestedAt, TimeHuman, TimezonePython } from '../datetimes';
2
- import { CardType, CardTypeName, ChannelType, DiscountAuthType, DiscountType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, TenderType } from '../global';
2
+ import { CardType, CardTypeName, ChannelType, DiscountAuthType, Gender, Images, Money, NegativeMoney, OrderStatus, OrderType, ServiceType, TenderType } from '../global';
3
3
  import { CreditCard, CreditCards } from './creditCards';
4
4
  import { Address, Customer, GiftCard, HouseAccounts } from './customer';
5
5
  import { PrepStatus } from './kds';
@@ -88,15 +88,17 @@ export interface OrderDetails {
88
88
  serving_utensils: boolean;
89
89
  tax_exempt_id: string | null;
90
90
  }
91
+ export declare type OrderDiscountType = 'DEAL' | 'DISCOUNT' | 'LOYALTY' | 'PROMO_CODE' | 'REWARD';
91
92
  export interface OrderDiscount {
92
93
  amount: NegativeMoney;
93
94
  auth_type: DiscountAuthType;
94
- discount_type: DiscountType;
95
+ description?: string | null;
96
+ discount_type: OrderDiscountType;
95
97
  ext_id?: string | null;
96
98
  id: number;
97
99
  is_deal: boolean;
98
100
  is_loyalty: boolean;
99
- is_optional: boolean;
101
+ is_optional?: boolean;
100
102
  is_promo_code: boolean;
101
103
  is_reward: boolean;
102
104
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.55",
3
+ "version": "0.2.57",
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",