@open-tender/types 0.4.60 → 0.4.61
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/LICENSE.md +21 -21
- package/README.md +2 -2
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/types/api/alerts.d.ts +5 -5
- package/dist/cjs/types/api/alerts.js +2 -2
- package/dist/cjs/types/api/allergens.d.ts +13 -13
- package/dist/cjs/types/api/allergens.js +2 -2
- package/dist/cjs/types/api/announcements.d.ts +57 -57
- package/dist/cjs/types/api/announcements.js +2 -2
- package/dist/cjs/types/api/arrivals.d.ts +14 -14
- package/dist/cjs/types/api/arrivals.js +2 -2
- package/dist/cjs/types/api/cart.d.ts +106 -106
- package/dist/cjs/types/api/cart.js +2 -2
- package/dist/cjs/types/api/checkout.d.ts +307 -307
- package/dist/cjs/types/api/checkout.js +29 -29
- package/dist/cjs/types/api/completedOrders.d.ts +42 -42
- package/dist/cjs/types/api/completedOrders.js +2 -2
- package/dist/cjs/types/api/config.d.ts +511 -511
- package/dist/cjs/types/api/config.js +2 -2
- package/dist/cjs/types/api/creditCards.d.ts +39 -39
- package/dist/cjs/types/api/creditCards.js +2 -2
- package/dist/cjs/types/api/customer/account.d.ts +24 -24
- package/dist/cjs/types/api/customer/account.js +2 -2
- package/dist/cjs/types/api/customer/addresses.d.ts +24 -24
- package/dist/cjs/types/api/customer/addresses.js +2 -2
- package/dist/cjs/types/api/customer/allergens.d.ts +5 -5
- package/dist/cjs/types/api/customer/allergens.js +2 -2
- package/dist/cjs/types/api/customer/communicationPreferences.d.ts +12 -12
- package/dist/cjs/types/api/customer/communicationPreferences.js +2 -2
- package/dist/cjs/types/api/customer/customer.d.ts +54 -54
- package/dist/cjs/types/api/customer/customer.js +2 -2
- package/dist/cjs/types/api/customer/giftCards.d.ts +36 -36
- package/dist/cjs/types/api/customer/giftCards.js +2 -2
- package/dist/cjs/types/api/customer/groupOrders.d.ts +62 -62
- package/dist/cjs/types/api/customer/groupOrders.js +11 -11
- package/dist/cjs/types/api/customer/houseAccounts.d.ts +21 -21
- package/dist/cjs/types/api/customer/houseAccounts.js +2 -2
- package/dist/cjs/types/api/customer/identify.d.ts +46 -46
- package/dist/cjs/types/api/customer/identify.js +2 -2
- package/dist/cjs/types/api/customer/index.d.ts +13 -13
- package/dist/cjs/types/api/customer/index.js +17 -17
- package/dist/cjs/types/api/customer/loyalty.d.ts +70 -70
- package/dist/cjs/types/api/customer/loyalty.js +2 -2
- package/dist/cjs/types/api/customer/qrcode.d.ts +3 -3
- package/dist/cjs/types/api/customer/qrcode.js +2 -2
- package/dist/cjs/types/api/customer/thanx.d.ts +26 -26
- package/dist/cjs/types/api/customer/thanx.js +2 -2
- package/dist/cjs/types/api/customer/tpls.d.ts +74 -74
- package/dist/cjs/types/api/customer/tpls.js +2 -2
- package/dist/cjs/types/api/devices.d.ts +94 -94
- package/dist/cjs/types/api/devices.js +2 -2
- package/dist/cjs/types/api/discounts.d.ts +63 -63
- package/dist/cjs/types/api/discounts.js +2 -2
- package/dist/cjs/types/api/donations.d.ts +12 -12
- package/dist/cjs/types/api/donations.js +2 -2
- package/dist/cjs/types/api/employee.d.ts +70 -70
- package/dist/cjs/types/api/employee.js +2 -2
- package/dist/cjs/types/api/errorAlerts.d.ts +9 -9
- package/dist/cjs/types/api/errorAlerts.js +2 -2
- package/dist/cjs/types/api/favorite.d.ts +13 -13
- package/dist/cjs/types/api/favorite.js +2 -2
- package/dist/cjs/types/api/giftCard.d.ts +11 -11
- package/dist/cjs/types/api/giftCard.js +2 -2
- package/dist/cjs/types/api/index.d.ts +36 -36
- package/dist/cjs/types/api/index.js +39 -39
- package/dist/cjs/types/api/itemTypes.d.ts +15 -15
- package/dist/cjs/types/api/itemTypes.js +2 -2
- package/dist/cjs/types/api/kds.d.ts +100 -100
- package/dist/cjs/types/api/kds.js +2 -2
- package/dist/cjs/types/api/kiosk.d.ts +34 -34
- package/dist/cjs/types/api/kiosk.js +2 -2
- package/dist/cjs/types/api/menu.d.ts +179 -179
- package/dist/cjs/types/api/menu.js +2 -2
- package/dist/cjs/types/api/menuPages.d.ts +21 -21
- package/dist/cjs/types/api/menuPages.js +2 -2
- package/dist/cjs/types/api/messages.d.ts +5 -5
- package/dist/cjs/types/api/messages.js +2 -2
- package/dist/cjs/types/api/notifications.d.ts +5 -5
- package/dist/cjs/types/api/notifications.js +2 -2
- package/dist/cjs/types/api/offlineAuths.d.ts +12 -12
- package/dist/cjs/types/api/offlineAuths.js +2 -2
- package/dist/cjs/types/api/order.d.ts +350 -350
- package/dist/cjs/types/api/order.js +19 -19
- package/dist/cjs/types/api/orders.d.ts +5 -5
- package/dist/cjs/types/api/orders.js +2 -2
- package/dist/cjs/types/api/refund.d.ts +22 -22
- package/dist/cjs/types/api/refund.js +2 -2
- package/dist/cjs/types/api/revenueCenter.d.ts +167 -167
- package/dist/cjs/types/api/revenueCenter.js +2 -2
- package/dist/cjs/types/api/selectOptions.d.ts +7 -7
- package/dist/cjs/types/api/selectOptions.js +2 -2
- package/dist/cjs/types/api/settings.d.ts +10 -10
- package/dist/cjs/types/api/settings.js +2 -2
- package/dist/cjs/types/api/store.d.ts +102 -102
- package/dist/cjs/types/api/store.js +2 -2
- package/dist/cjs/types/api/surcharges.d.ts +15 -15
- package/dist/cjs/types/api/surcharges.js +2 -2
- package/dist/cjs/types/api/tags.d.ts +13 -13
- package/dist/cjs/types/api/tags.js +2 -2
- package/dist/cjs/types/api/taxes.d.ts +15 -15
- package/dist/cjs/types/api/taxes.js +2 -2
- package/dist/cjs/types/api/theme.d.ts +737 -737
- package/dist/cjs/types/api/theme.js +2 -2
- package/dist/cjs/types/datetimes.d.ts +52 -52
- package/dist/cjs/types/datetimes.js +2 -2
- package/dist/cjs/types/errors.d.ts +2 -2
- package/dist/cjs/types/errors.js +5 -5
- package/dist/cjs/types/global.d.ts +58 -58
- package/dist/cjs/types/global.js +2 -2
- package/dist/cjs/types/index.d.ts +8 -8
- package/dist/cjs/types/index.js +11 -11
- package/dist/cjs/types/inputs.d.ts +82 -81
- package/dist/cjs/types/inputs.js +23 -23
- package/dist/cjs/types/pizzaBuilder.d.ts +7 -7
- package/dist/cjs/types/pizzaBuilder.js +2 -2
- package/dist/cjs/types/request.d.ts +27 -27
- package/dist/cjs/types/request.js +2 -2
- package/dist/cjs/types/themePos.d.ts +117 -117
- package/dist/cjs/types/themePos.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/api/alerts.d.ts +5 -5
- package/dist/esm/types/api/alerts.js +1 -1
- package/dist/esm/types/api/allergens.d.ts +13 -13
- package/dist/esm/types/api/allergens.js +1 -1
- package/dist/esm/types/api/announcements.d.ts +57 -57
- package/dist/esm/types/api/announcements.js +1 -1
- package/dist/esm/types/api/arrivals.d.ts +14 -14
- package/dist/esm/types/api/arrivals.js +1 -1
- package/dist/esm/types/api/cart.d.ts +106 -106
- package/dist/esm/types/api/cart.js +1 -1
- package/dist/esm/types/api/checkout.d.ts +307 -307
- package/dist/esm/types/api/checkout.js +20 -20
- package/dist/esm/types/api/completedOrders.d.ts +42 -42
- package/dist/esm/types/api/completedOrders.js +1 -1
- package/dist/esm/types/api/config.d.ts +511 -511
- package/dist/esm/types/api/config.js +1 -1
- package/dist/esm/types/api/creditCards.d.ts +39 -39
- package/dist/esm/types/api/creditCards.js +1 -1
- package/dist/esm/types/api/customer/account.d.ts +24 -24
- package/dist/esm/types/api/customer/account.js +1 -1
- package/dist/esm/types/api/customer/addresses.d.ts +24 -24
- package/dist/esm/types/api/customer/addresses.js +1 -1
- package/dist/esm/types/api/customer/allergens.d.ts +5 -5
- package/dist/esm/types/api/customer/allergens.js +1 -1
- package/dist/esm/types/api/customer/communicationPreferences.d.ts +12 -12
- package/dist/esm/types/api/customer/communicationPreferences.js +1 -1
- package/dist/esm/types/api/customer/customer.d.ts +54 -54
- package/dist/esm/types/api/customer/customer.js +1 -1
- package/dist/esm/types/api/customer/giftCards.d.ts +36 -36
- package/dist/esm/types/api/customer/giftCards.js +1 -1
- package/dist/esm/types/api/customer/groupOrders.d.ts +62 -62
- package/dist/esm/types/api/customer/groupOrders.js +6 -6
- package/dist/esm/types/api/customer/houseAccounts.d.ts +21 -21
- package/dist/esm/types/api/customer/houseAccounts.js +1 -1
- package/dist/esm/types/api/customer/identify.d.ts +46 -46
- package/dist/esm/types/api/customer/identify.js +1 -1
- package/dist/esm/types/api/customer/index.d.ts +13 -13
- package/dist/esm/types/api/customer/index.js +14 -14
- package/dist/esm/types/api/customer/loyalty.d.ts +70 -70
- package/dist/esm/types/api/customer/loyalty.js +1 -1
- package/dist/esm/types/api/customer/qrcode.d.ts +3 -3
- package/dist/esm/types/api/customer/qrcode.js +1 -1
- package/dist/esm/types/api/customer/thanx.d.ts +26 -26
- package/dist/esm/types/api/customer/thanx.js +1 -1
- package/dist/esm/types/api/customer/tpls.d.ts +74 -74
- package/dist/esm/types/api/customer/tpls.js +1 -1
- package/dist/esm/types/api/devices.d.ts +94 -94
- package/dist/esm/types/api/devices.js +1 -1
- package/dist/esm/types/api/discounts.d.ts +63 -63
- package/dist/esm/types/api/discounts.js +1 -1
- package/dist/esm/types/api/donations.d.ts +12 -12
- package/dist/esm/types/api/donations.js +1 -1
- package/dist/esm/types/api/employee.d.ts +70 -70
- package/dist/esm/types/api/employee.js +1 -1
- package/dist/esm/types/api/errorAlerts.d.ts +9 -9
- package/dist/esm/types/api/errorAlerts.js +1 -1
- package/dist/esm/types/api/favorite.d.ts +13 -13
- package/dist/esm/types/api/favorite.js +1 -1
- package/dist/esm/types/api/giftCard.d.ts +11 -11
- package/dist/esm/types/api/giftCard.js +1 -1
- package/dist/esm/types/api/index.d.ts +36 -36
- package/dist/esm/types/api/index.js +36 -36
- package/dist/esm/types/api/itemTypes.d.ts +15 -15
- package/dist/esm/types/api/itemTypes.js +1 -1
- package/dist/esm/types/api/kds.d.ts +100 -100
- package/dist/esm/types/api/kds.js +1 -1
- package/dist/esm/types/api/kiosk.d.ts +34 -34
- package/dist/esm/types/api/kiosk.js +1 -1
- package/dist/esm/types/api/menu.d.ts +179 -179
- package/dist/esm/types/api/menu.js +1 -1
- package/dist/esm/types/api/menuPages.d.ts +21 -21
- package/dist/esm/types/api/menuPages.js +1 -1
- package/dist/esm/types/api/messages.d.ts +5 -5
- package/dist/esm/types/api/messages.js +1 -1
- package/dist/esm/types/api/notifications.d.ts +5 -5
- package/dist/esm/types/api/notifications.js +1 -1
- package/dist/esm/types/api/offlineAuths.d.ts +12 -12
- package/dist/esm/types/api/offlineAuths.js +1 -1
- package/dist/esm/types/api/order.d.ts +350 -350
- package/dist/esm/types/api/order.js +12 -12
- package/dist/esm/types/api/orders.d.ts +5 -5
- package/dist/esm/types/api/orders.js +1 -1
- package/dist/esm/types/api/refund.d.ts +22 -22
- package/dist/esm/types/api/refund.js +1 -1
- package/dist/esm/types/api/revenueCenter.d.ts +167 -167
- package/dist/esm/types/api/revenueCenter.js +1 -1
- package/dist/esm/types/api/selectOptions.d.ts +7 -7
- package/dist/esm/types/api/selectOptions.js +1 -1
- package/dist/esm/types/api/settings.d.ts +10 -10
- package/dist/esm/types/api/settings.js +1 -1
- package/dist/esm/types/api/store.d.ts +102 -102
- package/dist/esm/types/api/store.js +1 -1
- package/dist/esm/types/api/surcharges.d.ts +15 -15
- package/dist/esm/types/api/surcharges.js +1 -1
- package/dist/esm/types/api/tags.d.ts +13 -13
- package/dist/esm/types/api/tags.js +1 -1
- package/dist/esm/types/api/taxes.d.ts +15 -15
- package/dist/esm/types/api/taxes.js +1 -1
- package/dist/esm/types/api/theme.d.ts +737 -737
- package/dist/esm/types/api/theme.js +1 -1
- package/dist/esm/types/datetimes.d.ts +52 -52
- package/dist/esm/types/datetimes.js +1 -1
- package/dist/esm/types/errors.d.ts +2 -2
- package/dist/esm/types/errors.js +2 -2
- package/dist/esm/types/global.d.ts +58 -58
- package/dist/esm/types/global.js +1 -1
- package/dist/esm/types/index.d.ts +8 -8
- package/dist/esm/types/index.js +8 -8
- package/dist/esm/types/inputs.d.ts +82 -81
- package/dist/esm/types/inputs.js +15 -15
- package/dist/esm/types/pizzaBuilder.d.ts +7 -7
- package/dist/esm/types/pizzaBuilder.js +1 -1
- package/dist/esm/types/request.d.ts +27 -27
- package/dist/esm/types/request.js +1 -1
- package/dist/esm/types/themePos.d.ts +117 -117
- package/dist/esm/types/themePos.js +1 -1
- package/package.json +59 -59
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { CardType, CardTypeName } from '../global';
|
|
2
|
-
export interface CreditCard {
|
|
3
|
-
card_type: CardType;
|
|
4
|
-
card_type_name: CardTypeName;
|
|
5
|
-
customer_card_id: number;
|
|
6
|
-
has_profile?: boolean;
|
|
7
|
-
is_default: boolean;
|
|
8
|
-
last4: string;
|
|
9
|
-
masked: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type CreditCards = CreditCard[];
|
|
12
|
-
export interface CreditCardSaved {
|
|
13
|
-
customer_card_id: number;
|
|
14
|
-
}
|
|
15
|
-
export interface CreditCardData {
|
|
16
|
-
acct: string;
|
|
17
|
-
addr?: string;
|
|
18
|
-
exp: string;
|
|
19
|
-
cvv: string;
|
|
20
|
-
zip: string;
|
|
21
|
-
save?: boolean;
|
|
22
|
-
is_default?: boolean;
|
|
23
|
-
token?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface CreditCardUpdate {
|
|
26
|
-
is_default: boolean;
|
|
27
|
-
}
|
|
28
|
-
export interface CreditCardErrors extends Record<string, string | undefined> {
|
|
29
|
-
addr?: string;
|
|
30
|
-
acct?: string;
|
|
31
|
-
exp?: string;
|
|
32
|
-
cvv?: string;
|
|
33
|
-
zip?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface CreditCardValidate {
|
|
36
|
-
card: CreditCardData;
|
|
37
|
-
cardType: CardType;
|
|
38
|
-
errors: CreditCardErrors | null;
|
|
39
|
-
}
|
|
1
|
+
import { CardType, CardTypeName } from '../global';
|
|
2
|
+
export interface CreditCard {
|
|
3
|
+
card_type: CardType;
|
|
4
|
+
card_type_name: CardTypeName;
|
|
5
|
+
customer_card_id: number;
|
|
6
|
+
has_profile?: boolean;
|
|
7
|
+
is_default: boolean;
|
|
8
|
+
last4: string;
|
|
9
|
+
masked: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type CreditCards = CreditCard[];
|
|
12
|
+
export interface CreditCardSaved {
|
|
13
|
+
customer_card_id: number;
|
|
14
|
+
}
|
|
15
|
+
export interface CreditCardData {
|
|
16
|
+
acct: string;
|
|
17
|
+
addr?: string;
|
|
18
|
+
exp: string;
|
|
19
|
+
cvv: string;
|
|
20
|
+
zip: string;
|
|
21
|
+
save?: boolean;
|
|
22
|
+
is_default?: boolean;
|
|
23
|
+
token?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface CreditCardUpdate {
|
|
26
|
+
is_default: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface CreditCardErrors extends Record<string, string | undefined> {
|
|
29
|
+
addr?: string;
|
|
30
|
+
acct?: string;
|
|
31
|
+
exp?: string;
|
|
32
|
+
cvv?: string;
|
|
33
|
+
zip?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface CreditCardValidate {
|
|
36
|
+
card: CreditCardData;
|
|
37
|
+
cardType: CardType;
|
|
38
|
+
errors: CreditCardErrors | null;
|
|
39
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface Auth {
|
|
2
|
-
access_token: string;
|
|
3
|
-
customer_id?: number;
|
|
4
|
-
expires_in: number;
|
|
5
|
-
message?: string;
|
|
6
|
-
refresh_token: string;
|
|
7
|
-
token_type: string;
|
|
8
|
-
}
|
|
9
|
-
export interface LoginData {
|
|
10
|
-
email: string;
|
|
11
|
-
password: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ResetPasswordData {
|
|
14
|
-
new_password: string;
|
|
15
|
-
password: string;
|
|
16
|
-
confirm: string;
|
|
17
|
-
}
|
|
18
|
-
export interface CustomerSignIn {
|
|
19
|
-
email?: string;
|
|
20
|
-
one_time_passcode?: string;
|
|
21
|
-
password?: string;
|
|
22
|
-
phone?: string;
|
|
23
|
-
token?: string;
|
|
24
|
-
}
|
|
1
|
+
export interface Auth {
|
|
2
|
+
access_token: string;
|
|
3
|
+
customer_id?: number;
|
|
4
|
+
expires_in: number;
|
|
5
|
+
message?: string;
|
|
6
|
+
refresh_token: string;
|
|
7
|
+
token_type: string;
|
|
8
|
+
}
|
|
9
|
+
export interface LoginData {
|
|
10
|
+
email: string;
|
|
11
|
+
password: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ResetPasswordData {
|
|
14
|
+
new_password: string;
|
|
15
|
+
password: string;
|
|
16
|
+
confirm: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CustomerSignIn {
|
|
19
|
+
email?: string;
|
|
20
|
+
one_time_passcode?: string;
|
|
21
|
+
password?: string;
|
|
22
|
+
phone?: string;
|
|
23
|
+
token?: string;
|
|
24
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { ISOStringOffset } from '../../datetimes';
|
|
2
|
-
export interface Address {
|
|
3
|
-
city: string;
|
|
4
|
-
company?: string;
|
|
5
|
-
contact?: string;
|
|
6
|
-
country?: string;
|
|
7
|
-
created_at?: ISOStringOffset;
|
|
8
|
-
customer_address_id?: number;
|
|
9
|
-
customer_id?: number;
|
|
10
|
-
description?: string;
|
|
11
|
-
formatted_address?: string;
|
|
12
|
-
is_active?: boolean;
|
|
13
|
-
is_default?: boolean;
|
|
14
|
-
last_used_at?: ISOStringOffset;
|
|
15
|
-
lat: number;
|
|
16
|
-
lng: number;
|
|
17
|
-
notes?: string;
|
|
18
|
-
phone?: string;
|
|
19
|
-
postal_code: string;
|
|
20
|
-
state: string;
|
|
21
|
-
street: string;
|
|
22
|
-
unit?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare type Addresses = Address[];
|
|
1
|
+
import { ISOStringOffset } from '../../datetimes';
|
|
2
|
+
export interface Address {
|
|
3
|
+
city: string;
|
|
4
|
+
company?: string;
|
|
5
|
+
contact?: string;
|
|
6
|
+
country?: string;
|
|
7
|
+
created_at?: ISOStringOffset;
|
|
8
|
+
customer_address_id?: number;
|
|
9
|
+
customer_id?: number;
|
|
10
|
+
description?: string;
|
|
11
|
+
formatted_address?: string;
|
|
12
|
+
is_active?: boolean;
|
|
13
|
+
is_default?: boolean;
|
|
14
|
+
last_used_at?: ISOStringOffset;
|
|
15
|
+
lat: number;
|
|
16
|
+
lng: number;
|
|
17
|
+
notes?: string;
|
|
18
|
+
phone?: string;
|
|
19
|
+
postal_code: string;
|
|
20
|
+
state: string;
|
|
21
|
+
street: string;
|
|
22
|
+
unit?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare type Addresses = Address[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface CustomerAllergen {
|
|
2
|
-
allergen_id: number;
|
|
3
|
-
name?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type CustomerAllergens = CustomerAllergen[];
|
|
1
|
+
export interface CustomerAllergen {
|
|
2
|
+
allergen_id: number;
|
|
3
|
+
name?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type CustomerAllergens = CustomerAllergen[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ISOStringOffset } from '../../datetimes';
|
|
2
|
-
export declare type NotificationChannel = 'EMAIL' | 'SMS' | 'PUSH' | 'ALL';
|
|
3
|
-
export declare type NotificationArea = 'ORDER' | 'RATING' | 'MARKETING';
|
|
4
|
-
export interface CustomerNotificationPref {
|
|
5
|
-
created_at: ISOStringOffset;
|
|
6
|
-
customer_notification_preference_id: number;
|
|
7
|
-
notification_area: NotificationArea;
|
|
8
|
-
notification_channel: NotificationChannel;
|
|
9
|
-
}
|
|
10
|
-
export declare type CustomerNotificationPrefs = CustomerNotificationPref[];
|
|
11
|
-
export declare type CustomerNotificationPrefCreate = Omit<CustomerNotificationPref, 'created_at' | 'customer_notification_preference_id'>;
|
|
12
|
-
export declare type CustomerNotificationPrefsCreate = CustomerNotificationPrefCreate[];
|
|
1
|
+
import { ISOStringOffset } from '../../datetimes';
|
|
2
|
+
export declare type NotificationChannel = 'EMAIL' | 'SMS' | 'PUSH' | 'ALL';
|
|
3
|
+
export declare type NotificationArea = 'ORDER' | 'RATING' | 'MARKETING';
|
|
4
|
+
export interface CustomerNotificationPref {
|
|
5
|
+
created_at: ISOStringOffset;
|
|
6
|
+
customer_notification_preference_id: number;
|
|
7
|
+
notification_area: NotificationArea;
|
|
8
|
+
notification_channel: NotificationChannel;
|
|
9
|
+
}
|
|
10
|
+
export declare type CustomerNotificationPrefs = CustomerNotificationPref[];
|
|
11
|
+
export declare type CustomerNotificationPrefCreate = Omit<CustomerNotificationPref, 'created_at' | 'customer_notification_preference_id'>;
|
|
12
|
+
export declare type CustomerNotificationPrefsCreate = CustomerNotificationPrefCreate[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { DateString } from '../../datetimes';
|
|
2
|
-
import { Gender, OrderNotifications } from '../../global';
|
|
3
|
-
import { Allergens } from '../allergens';
|
|
4
|
-
import { Discounts } from '../discounts';
|
|
5
|
-
import { Favorites } from '../favorite';
|
|
6
|
-
import { Orders } from '../order';
|
|
7
|
-
import { CustomerNotificationPrefs, NotificationChannel } from './communicationPreferences';
|
|
8
|
-
import { GiftCards } from './giftCards';
|
|
9
|
-
import { LoyaltyPrograms } from './loyalty';
|
|
10
|
-
export interface CustomerCreate {
|
|
11
|
-
birth_date?: DateString | null;
|
|
12
|
-
communications?: NotificationChannel[];
|
|
13
|
-
company?: string;
|
|
14
|
-
email: string;
|
|
15
|
-
first_name: string;
|
|
16
|
-
gender?: string | null;
|
|
17
|
-
last_name: string;
|
|
18
|
-
password?: string;
|
|
19
|
-
phone: string;
|
|
20
|
-
}
|
|
21
|
-
export interface Customer {
|
|
22
|
-
accepts_marketing: boolean;
|
|
23
|
-
allergens?: Allergens;
|
|
24
|
-
birth_date: DateString | null;
|
|
25
|
-
company: string;
|
|
26
|
-
customer_id: number;
|
|
27
|
-
customer_notification_preferences: CustomerNotificationPrefs;
|
|
28
|
-
email: string;
|
|
29
|
-
favorites?: Favorites;
|
|
30
|
-
first_name: string;
|
|
31
|
-
gender: Gender | null;
|
|
32
|
-
gift_cards?: GiftCards;
|
|
33
|
-
is_notification_set: boolean;
|
|
34
|
-
is_verified: boolean;
|
|
35
|
-
last_name: string;
|
|
36
|
-
order_notifications: OrderNotifications;
|
|
37
|
-
phone: string;
|
|
38
|
-
}
|
|
39
|
-
export interface Brand {
|
|
40
|
-
name: string;
|
|
41
|
-
}
|
|
42
|
-
export declare type Brands = Brand[];
|
|
43
|
-
declare type CustomerEndpoint = 'ACCOUNT' | 'DEALS' | 'GIFT_CARDS' | 'FAVORITES' | 'LOYALTY' | 'REWARDS' | 'ORDERS';
|
|
44
|
-
export declare type CustomerEndpoints = CustomerEndpoint[];
|
|
45
|
-
export interface CustomerEntities {
|
|
46
|
-
ACCOUNT?: Customer;
|
|
47
|
-
DEALS?: Discounts;
|
|
48
|
-
GIFT_CARDS?: GiftCards;
|
|
49
|
-
FAVORITES?: Favorites;
|
|
50
|
-
LOYALTY?: LoyaltyPrograms;
|
|
51
|
-
REWARDS?: Discounts;
|
|
52
|
-
ORDERS?: Orders;
|
|
53
|
-
}
|
|
54
|
-
export {};
|
|
1
|
+
import { DateString } from '../../datetimes';
|
|
2
|
+
import { Gender, OrderNotifications } from '../../global';
|
|
3
|
+
import { Allergens } from '../allergens';
|
|
4
|
+
import { Discounts } from '../discounts';
|
|
5
|
+
import { Favorites } from '../favorite';
|
|
6
|
+
import { Orders } from '../order';
|
|
7
|
+
import { CustomerNotificationPrefs, NotificationChannel } from './communicationPreferences';
|
|
8
|
+
import { GiftCards } from './giftCards';
|
|
9
|
+
import { LoyaltyPrograms } from './loyalty';
|
|
10
|
+
export interface CustomerCreate {
|
|
11
|
+
birth_date?: DateString | null;
|
|
12
|
+
communications?: NotificationChannel[];
|
|
13
|
+
company?: string;
|
|
14
|
+
email: string;
|
|
15
|
+
first_name: string;
|
|
16
|
+
gender?: string | null;
|
|
17
|
+
last_name: string;
|
|
18
|
+
password?: string;
|
|
19
|
+
phone: string;
|
|
20
|
+
}
|
|
21
|
+
export interface Customer {
|
|
22
|
+
accepts_marketing: boolean;
|
|
23
|
+
allergens?: Allergens;
|
|
24
|
+
birth_date: DateString | null;
|
|
25
|
+
company: string;
|
|
26
|
+
customer_id: number;
|
|
27
|
+
customer_notification_preferences: CustomerNotificationPrefs;
|
|
28
|
+
email: string;
|
|
29
|
+
favorites?: Favorites;
|
|
30
|
+
first_name: string;
|
|
31
|
+
gender: Gender | null;
|
|
32
|
+
gift_cards?: GiftCards;
|
|
33
|
+
is_notification_set: boolean;
|
|
34
|
+
is_verified: boolean;
|
|
35
|
+
last_name: string;
|
|
36
|
+
order_notifications: OrderNotifications;
|
|
37
|
+
phone: string;
|
|
38
|
+
}
|
|
39
|
+
export interface Brand {
|
|
40
|
+
name: string;
|
|
41
|
+
}
|
|
42
|
+
export declare type Brands = Brand[];
|
|
43
|
+
declare type CustomerEndpoint = 'ACCOUNT' | 'DEALS' | 'GIFT_CARDS' | 'FAVORITES' | 'LOYALTY' | 'REWARDS' | 'ORDERS';
|
|
44
|
+
export declare type CustomerEndpoints = CustomerEndpoint[];
|
|
45
|
+
export interface CustomerEntities {
|
|
46
|
+
ACCOUNT?: Customer;
|
|
47
|
+
DEALS?: Discounts;
|
|
48
|
+
GIFT_CARDS?: GiftCards;
|
|
49
|
+
FAVORITES?: Favorites;
|
|
50
|
+
LOYALTY?: LoyaltyPrograms;
|
|
51
|
+
REWARDS?: Discounts;
|
|
52
|
+
ORDERS?: Orders;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { DateString, ISOStringOffset } from '../../datetimes';
|
|
2
|
-
import { Money } from '../../global';
|
|
3
|
-
import { CreditCardData, CreditCardSaved } from '../creditCards';
|
|
4
|
-
export interface GiftCard {
|
|
5
|
-
balance: Money;
|
|
6
|
-
card_number: string;
|
|
7
|
-
expiration: DateString | null;
|
|
8
|
-
gift_card_id: number;
|
|
9
|
-
orders: number;
|
|
10
|
-
qr_code_url: string;
|
|
11
|
-
updated_at: ISOStringOffset;
|
|
12
|
-
}
|
|
13
|
-
export declare type GiftCards = GiftCard[];
|
|
14
|
-
export interface GiftCardPurchased {
|
|
15
|
-
email: string;
|
|
16
|
-
balance: string;
|
|
17
|
-
card_number: string;
|
|
18
|
-
}
|
|
19
|
-
export declare type GiftCardsPurchased = GiftCardPurchased[];
|
|
20
|
-
export interface GiftCardPurchaseData {
|
|
21
|
-
amount: string;
|
|
22
|
-
quantity: number;
|
|
23
|
-
email?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface GiftCardsPurchase {
|
|
26
|
-
credit_card: CreditCardData | CreditCardSaved;
|
|
27
|
-
email: string;
|
|
28
|
-
gift_cards: GiftCardPurchaseData[];
|
|
29
|
-
name: string;
|
|
30
|
-
url: string;
|
|
31
|
-
token?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface GiftCardPurchase {
|
|
34
|
-
amount: string;
|
|
35
|
-
customer_card_id: number;
|
|
36
|
-
}
|
|
1
|
+
import { DateString, ISOStringOffset } from '../../datetimes';
|
|
2
|
+
import { Money } from '../../global';
|
|
3
|
+
import { CreditCardData, CreditCardSaved } from '../creditCards';
|
|
4
|
+
export interface GiftCard {
|
|
5
|
+
balance: Money;
|
|
6
|
+
card_number: string;
|
|
7
|
+
expiration: DateString | null;
|
|
8
|
+
gift_card_id: number;
|
|
9
|
+
orders: number;
|
|
10
|
+
qr_code_url: string;
|
|
11
|
+
updated_at: ISOStringOffset;
|
|
12
|
+
}
|
|
13
|
+
export declare type GiftCards = GiftCard[];
|
|
14
|
+
export interface GiftCardPurchased {
|
|
15
|
+
email: string;
|
|
16
|
+
balance: string;
|
|
17
|
+
card_number: string;
|
|
18
|
+
}
|
|
19
|
+
export declare type GiftCardsPurchased = GiftCardPurchased[];
|
|
20
|
+
export interface GiftCardPurchaseData {
|
|
21
|
+
amount: string;
|
|
22
|
+
quantity: number;
|
|
23
|
+
email?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface GiftCardsPurchase {
|
|
26
|
+
credit_card: CreditCardData | CreditCardSaved;
|
|
27
|
+
email: string;
|
|
28
|
+
gift_cards: GiftCardPurchaseData[];
|
|
29
|
+
name: string;
|
|
30
|
+
url: string;
|
|
31
|
+
token?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface GiftCardPurchase {
|
|
34
|
+
amount: string;
|
|
35
|
+
customer_card_id: number;
|
|
36
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { ISOString, RequestedAt, TimezonePython } from '../../datetimes';
|
|
2
|
-
import { ServiceType } from '../../global';
|
|
3
|
-
import { SimpleCart } from '../checkout';
|
|
4
|
-
import { RevenueCenterType } from '../revenueCenter';
|
|
5
|
-
import { Address } from './addresses';
|
|
6
|
-
export interface CartOwner {
|
|
7
|
-
customer_id: number;
|
|
8
|
-
first_name: string;
|
|
9
|
-
last_name: string;
|
|
10
|
-
}
|
|
11
|
-
export interface GroupOrderGuestCreate {
|
|
12
|
-
cart_id: number;
|
|
13
|
-
first_name: string;
|
|
14
|
-
last_name: string;
|
|
15
|
-
}
|
|
16
|
-
export interface GroupOrderGuest extends GroupOrderGuestCreate {
|
|
17
|
-
cart_guest_id: number;
|
|
18
|
-
}
|
|
19
|
-
export declare type GroupOrderGuests = GroupOrderGuest[];
|
|
20
|
-
export interface GroupOrderRevenueCenter {
|
|
21
|
-
is_outpost: boolean;
|
|
22
|
-
name: string;
|
|
23
|
-
revenue_center_id: number;
|
|
24
|
-
revenue_center_type: RevenueCenterType;
|
|
25
|
-
timezone: TimezonePython;
|
|
26
|
-
}
|
|
27
|
-
export interface GroupOrder {
|
|
28
|
-
address: Address | null;
|
|
29
|
-
cart: SimpleCart;
|
|
30
|
-
cart_guests?: GroupOrderGuests;
|
|
31
|
-
cart_id: number;
|
|
32
|
-
closed: boolean;
|
|
33
|
-
customer?: CartOwner;
|
|
34
|
-
cutoff_at: ISOString | null;
|
|
35
|
-
guest_count: number;
|
|
36
|
-
guest_limit: number | null;
|
|
37
|
-
requested_at: RequestedAt;
|
|
38
|
-
revenue_center_id: number;
|
|
39
|
-
service_type: ServiceType;
|
|
40
|
-
spending_limit: string | null;
|
|
41
|
-
token: string;
|
|
42
|
-
}
|
|
43
|
-
export declare type GroupOrders = GroupOrder[];
|
|
44
|
-
export interface GroupOrderExpanded extends GroupOrder {
|
|
45
|
-
revenue_center: GroupOrderRevenueCenter;
|
|
46
|
-
}
|
|
47
|
-
export declare type GroupOrdersExpanded = GroupOrderExpanded[];
|
|
48
|
-
export interface GroupOrderTime {
|
|
49
|
-
isAdjusted: boolean;
|
|
50
|
-
firstIso: ISOString;
|
|
51
|
-
iso: ISOString;
|
|
52
|
-
date: Date;
|
|
53
|
-
dateStr: string;
|
|
54
|
-
cutoffIso: ISOString;
|
|
55
|
-
cutoffDate: Date;
|
|
56
|
-
cutoffDateStr: string;
|
|
57
|
-
}
|
|
58
|
-
export interface GroupOrderPrepTime {
|
|
59
|
-
prepTime: string;
|
|
60
|
-
}
|
|
61
|
-
export declare const isGroupOrderPrepTime: (orderTime: GroupOrderTime | GroupOrderPrepTime) => orderTime is GroupOrderPrepTime;
|
|
62
|
-
export declare const isGroupOrderTime: (orderTime: GroupOrderTime | GroupOrderPrepTime) => orderTime is GroupOrderTime;
|
|
1
|
+
import { ISOString, RequestedAt, TimezonePython } from '../../datetimes';
|
|
2
|
+
import { ServiceType } from '../../global';
|
|
3
|
+
import { SimpleCart } from '../checkout';
|
|
4
|
+
import { RevenueCenterType } from '../revenueCenter';
|
|
5
|
+
import { Address } from './addresses';
|
|
6
|
+
export interface CartOwner {
|
|
7
|
+
customer_id: number;
|
|
8
|
+
first_name: string;
|
|
9
|
+
last_name: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GroupOrderGuestCreate {
|
|
12
|
+
cart_id: number;
|
|
13
|
+
first_name: string;
|
|
14
|
+
last_name: string;
|
|
15
|
+
}
|
|
16
|
+
export interface GroupOrderGuest extends GroupOrderGuestCreate {
|
|
17
|
+
cart_guest_id: number;
|
|
18
|
+
}
|
|
19
|
+
export declare type GroupOrderGuests = GroupOrderGuest[];
|
|
20
|
+
export interface GroupOrderRevenueCenter {
|
|
21
|
+
is_outpost: boolean;
|
|
22
|
+
name: string;
|
|
23
|
+
revenue_center_id: number;
|
|
24
|
+
revenue_center_type: RevenueCenterType;
|
|
25
|
+
timezone: TimezonePython;
|
|
26
|
+
}
|
|
27
|
+
export interface GroupOrder {
|
|
28
|
+
address: Address | null;
|
|
29
|
+
cart: SimpleCart;
|
|
30
|
+
cart_guests?: GroupOrderGuests;
|
|
31
|
+
cart_id: number;
|
|
32
|
+
closed: boolean;
|
|
33
|
+
customer?: CartOwner;
|
|
34
|
+
cutoff_at: ISOString | null;
|
|
35
|
+
guest_count: number;
|
|
36
|
+
guest_limit: number | null;
|
|
37
|
+
requested_at: RequestedAt;
|
|
38
|
+
revenue_center_id: number;
|
|
39
|
+
service_type: ServiceType;
|
|
40
|
+
spending_limit: string | null;
|
|
41
|
+
token: string;
|
|
42
|
+
}
|
|
43
|
+
export declare type GroupOrders = GroupOrder[];
|
|
44
|
+
export interface GroupOrderExpanded extends GroupOrder {
|
|
45
|
+
revenue_center: GroupOrderRevenueCenter;
|
|
46
|
+
}
|
|
47
|
+
export declare type GroupOrdersExpanded = GroupOrderExpanded[];
|
|
48
|
+
export interface GroupOrderTime {
|
|
49
|
+
isAdjusted: boolean;
|
|
50
|
+
firstIso: ISOString;
|
|
51
|
+
iso: ISOString;
|
|
52
|
+
date: Date;
|
|
53
|
+
dateStr: string;
|
|
54
|
+
cutoffIso: ISOString;
|
|
55
|
+
cutoffDate: Date;
|
|
56
|
+
cutoffDateStr: string;
|
|
57
|
+
}
|
|
58
|
+
export interface GroupOrderPrepTime {
|
|
59
|
+
prepTime: string;
|
|
60
|
+
}
|
|
61
|
+
export declare const isGroupOrderPrepTime: (orderTime: GroupOrderTime | GroupOrderPrepTime) => orderTime is GroupOrderPrepTime;
|
|
62
|
+
export declare const isGroupOrderTime: (orderTime: GroupOrderTime | GroupOrderPrepTime) => orderTime is GroupOrderTime;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const isGroupOrderPrepTime = (orderTime) => {
|
|
2
|
-
return orderTime.prepTime !== undefined;
|
|
3
|
-
};
|
|
4
|
-
export const isGroupOrderTime = (orderTime) => {
|
|
5
|
-
return orderTime.isAdjusted !== undefined;
|
|
6
|
-
};
|
|
1
|
+
export const isGroupOrderPrepTime = (orderTime) => {
|
|
2
|
+
return orderTime.prepTime !== undefined;
|
|
3
|
+
};
|
|
4
|
+
export const isGroupOrderTime = (orderTime) => {
|
|
5
|
+
return orderTime.isAdjusted !== undefined;
|
|
6
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { OrderType, ServiceType } from '../../global';
|
|
2
|
-
import { RevenueCenterType } from '../revenueCenter';
|
|
3
|
-
export interface HouseAccountRevenueCenter {
|
|
4
|
-
name: string;
|
|
5
|
-
revenue_center_id: number;
|
|
6
|
-
revenue_center_type: RevenueCenterType;
|
|
7
|
-
}
|
|
8
|
-
export declare type HouseAccountRevenueCenters = HouseAccountRevenueCenter[];
|
|
9
|
-
export interface HouseAccount {
|
|
10
|
-
approved_contact: boolean;
|
|
11
|
-
domain: string | null;
|
|
12
|
-
house_account_id: number;
|
|
13
|
-
is_tax_exempt: boolean;
|
|
14
|
-
name: string;
|
|
15
|
-
order_type: OrderType | null;
|
|
16
|
-
pin: string;
|
|
17
|
-
revenue_centers: HouseAccountRevenueCenters;
|
|
18
|
-
service_type: ServiceType | null;
|
|
19
|
-
tax_exempt_id: string | null;
|
|
20
|
-
}
|
|
21
|
-
export declare type HouseAccounts = HouseAccount[];
|
|
1
|
+
import { OrderType, ServiceType } from '../../global';
|
|
2
|
+
import { RevenueCenterType } from '../revenueCenter';
|
|
3
|
+
export interface HouseAccountRevenueCenter {
|
|
4
|
+
name: string;
|
|
5
|
+
revenue_center_id: number;
|
|
6
|
+
revenue_center_type: RevenueCenterType;
|
|
7
|
+
}
|
|
8
|
+
export declare type HouseAccountRevenueCenters = HouseAccountRevenueCenter[];
|
|
9
|
+
export interface HouseAccount {
|
|
10
|
+
approved_contact: boolean;
|
|
11
|
+
domain: string | null;
|
|
12
|
+
house_account_id: number;
|
|
13
|
+
is_tax_exempt: boolean;
|
|
14
|
+
name: string;
|
|
15
|
+
order_type: OrderType | null;
|
|
16
|
+
pin: string;
|
|
17
|
+
revenue_centers: HouseAccountRevenueCenters;
|
|
18
|
+
service_type: ServiceType | null;
|
|
19
|
+
tax_exempt_id: string | null;
|
|
20
|
+
}
|
|
21
|
+
export declare type HouseAccounts = HouseAccount[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|