@open-tender/types 0.1.7 → 0.1.9
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/config.d.ts +5 -368
- package/dist/cjs/types/api/configPos.d.ts +47 -0
- package/dist/cjs/types/api/creditCards.d.ts +6 -2
- package/dist/cjs/types/api/customer/communicationPreferences.d.ts +1 -1
- package/dist/cjs/types/api/customer/customer.d.ts +5 -5
- package/dist/cjs/types/api/customer/giftCards.d.ts +12 -3
- package/dist/cjs/types/api/customer/index.d.ts +0 -1
- package/dist/cjs/types/api/customer/index.js +0 -1
- package/dist/cjs/types/api/customer/rewards.d.ts +2 -3
- package/dist/cjs/types/api/deals.d.ts +2 -3
- package/dist/cjs/types/api/donations.d.ts +3 -3
- package/dist/cjs/types/api/index.d.ts +10 -10
- package/dist/cjs/types/api/index.js +10 -10
- package/dist/cjs/types/api/order.d.ts +8 -9
- package/dist/cjs/types/api/pos.d.ts +54 -3
- package/dist/cjs/types/api/revenueCenter.d.ts +160 -47
- package/dist/cjs/types/api/theme.d.ts +493 -0
- package/dist/cjs/types/global.d.ts +9 -1
- package/dist/cjs/types/index.d.ts +1 -1
- package/dist/cjs/types/index.js +1 -1
- package/dist/cjs/types/inputs.d.ts +80 -0
- package/dist/cjs/types/inputs.js +23 -0
- package/dist/cjs/types/request.d.ts +1 -1
- package/dist/cjs/types/themePos.js +2 -0
- package/dist/esm/types/api/config.d.ts +5 -368
- package/dist/esm/types/api/configPos.d.ts +47 -0
- package/dist/esm/types/api/creditCards.d.ts +6 -2
- package/dist/esm/types/api/customer/communicationPreferences.d.ts +1 -1
- package/dist/esm/types/api/customer/customer.d.ts +5 -5
- package/dist/esm/types/api/customer/giftCards.d.ts +12 -3
- package/dist/esm/types/api/customer/index.d.ts +0 -1
- package/dist/esm/types/api/customer/index.js +0 -1
- package/dist/esm/types/api/customer/rewards.d.ts +2 -3
- package/dist/esm/types/api/deals.d.ts +2 -3
- package/dist/esm/types/api/donations.d.ts +3 -3
- package/dist/esm/types/api/index.d.ts +10 -10
- package/dist/esm/types/api/index.js +10 -10
- package/dist/esm/types/api/order.d.ts +8 -9
- package/dist/esm/types/api/pos.d.ts +54 -3
- package/dist/esm/types/api/revenueCenter.d.ts +160 -47
- package/dist/esm/types/api/theme.d.ts +493 -0
- package/dist/esm/types/global.d.ts +9 -1
- package/dist/esm/types/index.d.ts +1 -1
- package/dist/esm/types/index.js +1 -1
- package/dist/esm/types/inputs.d.ts +80 -0
- package/dist/esm/types/inputs.js +15 -0
- package/dist/esm/types/request.d.ts +1 -1
- package/dist/esm/types/themePos.js +1 -0
- package/package.json +1 -1
- package/dist/cjs/types/api/customer/revenueCenters.d.ts +0 -187
- package/dist/esm/types/api/customer/revenueCenters.d.ts +0 -187
- /package/dist/cjs/types/api/{customer/revenueCenters.js → configPos.js} +0 -0
- /package/dist/cjs/types/{theme.js → api/theme.js} +0 -0
- /package/dist/cjs/types/{theme.d.ts → themePos.d.ts} +0 -0
- /package/dist/esm/types/api/{customer/revenueCenters.js → configPos.js} +0 -0
- /package/dist/esm/types/{theme.js → api/theme.js} +0 -0
- /package/dist/esm/types/{theme.d.ts → themePos.d.ts} +0 -0
|
@@ -1,53 +1,7 @@
|
|
|
1
1
|
import { TimezonePython } from '../datetimes';
|
|
2
|
-
import {
|
|
3
|
-
import { ButtonColor } from '../theme';
|
|
2
|
+
import { OrderType, ServiceType } from '../global';
|
|
4
3
|
import { LoyaltyType, NotificationChannel } from './customer';
|
|
5
|
-
import {
|
|
6
|
-
export interface Config {
|
|
7
|
-
backup_printer_ip_address: IpAddress | null;
|
|
8
|
-
backup_printer_use_beeper: boolean;
|
|
9
|
-
brand_id: number;
|
|
10
|
-
cardreader_id: string;
|
|
11
|
-
has_cardreader: boolean;
|
|
12
|
-
has_cardwriter: boolean;
|
|
13
|
-
has_cashdrawer: boolean;
|
|
14
|
-
has_pinpad: boolean;
|
|
15
|
-
has_qrcode: boolean;
|
|
16
|
-
has_timeclock: boolean;
|
|
17
|
-
ip_address: IpAddress;
|
|
18
|
-
name: string;
|
|
19
|
-
pos_server_id: number;
|
|
20
|
-
pos_terminal_id: number;
|
|
21
|
-
prep_stations?: PrepStations | null;
|
|
22
|
-
print_kds: boolean;
|
|
23
|
-
print_receipt: 'never' | 'always' | 'prompt';
|
|
24
|
-
printer: IpAddress;
|
|
25
|
-
printer_use_beeper: boolean;
|
|
26
|
-
scanner_id: string;
|
|
27
|
-
server: IpAddress;
|
|
28
|
-
terminal_type: 'POS_TERMINAL' | 'KDS_TERMINAL' | 'KIOSK';
|
|
29
|
-
}
|
|
30
|
-
export interface ItemType {
|
|
31
|
-
default_prep_status: PrepStatus;
|
|
32
|
-
is_default: boolean;
|
|
33
|
-
is_grouped: boolean;
|
|
34
|
-
is_hidden_assembly: boolean;
|
|
35
|
-
is_hidden_qa: boolean;
|
|
36
|
-
item_type_id: number;
|
|
37
|
-
items: number[];
|
|
38
|
-
name: string;
|
|
39
|
-
position: number;
|
|
40
|
-
prep_time: number;
|
|
41
|
-
print_on_completed: boolean;
|
|
42
|
-
}
|
|
43
|
-
export declare type ItemTypes = Array<ItemType>;
|
|
44
|
-
export interface SelectOption {
|
|
45
|
-
name: string;
|
|
46
|
-
option_type: 'PAID_IN' | 'PAID_OUT';
|
|
47
|
-
position: number;
|
|
48
|
-
select_option_id: number;
|
|
49
|
-
}
|
|
50
|
-
export declare type SelectOptions = Array<SelectOption>;
|
|
4
|
+
import { RevenueCenterStatus } from './revenueCenter';
|
|
51
5
|
export interface ConfigApp {
|
|
52
6
|
authUrl: string;
|
|
53
7
|
baseUrl: string;
|
|
@@ -97,7 +51,7 @@ export interface ConfigOrderNotifications {
|
|
|
97
51
|
title: string;
|
|
98
52
|
}
|
|
99
53
|
export interface ConfigBrand {
|
|
100
|
-
accepts_marketing: ConfigAcceptMarketing;
|
|
54
|
+
accepts_marketing: ConfigAcceptMarketing | null;
|
|
101
55
|
applePayMerchantId: string;
|
|
102
56
|
appleTouchIcon: string;
|
|
103
57
|
brandId: number;
|
|
@@ -127,7 +81,7 @@ export interface ConfigBrand {
|
|
|
127
81
|
loyalty: ConfigLoyalty;
|
|
128
82
|
olo_id: number;
|
|
129
83
|
openGraphImage: string | null;
|
|
130
|
-
order_notifications: ConfigOrderNotifications;
|
|
84
|
+
order_notifications: ConfigOrderNotifications | null;
|
|
131
85
|
origin: string;
|
|
132
86
|
timezone: TimezonePython;
|
|
133
87
|
title: string;
|
|
@@ -139,7 +93,6 @@ export interface ConfigContentField {
|
|
|
139
93
|
empty?: string;
|
|
140
94
|
}
|
|
141
95
|
export declare type HomeOrderTypes = 'CATERING' | 'DELIVERY' | 'DONATIONS' | 'GIFT_CARDS' | 'GROUP' | 'MERCH' | 'OUTPOST' | 'PICKUP' | 'WALKIN';
|
|
142
|
-
export declare type RevenueCenterStatus = 'CLOSED' | 'CLOSED_TEMPORARILY' | 'COMING_SOON';
|
|
143
96
|
export interface ConfigContent {
|
|
144
97
|
about: {
|
|
145
98
|
background: string;
|
|
@@ -461,7 +414,7 @@ export interface ConfigSettings {
|
|
|
461
414
|
zoom: number;
|
|
462
415
|
};
|
|
463
416
|
locationName: {
|
|
464
|
-
[keys in ServiceType]
|
|
417
|
+
[keys in ServiceType | 'OUTPOST']: Array<string>;
|
|
465
418
|
};
|
|
466
419
|
maxDistance: number;
|
|
467
420
|
orderTypes: Array<HomeOrderTypes>;
|
|
@@ -471,319 +424,3 @@ export interface ConfigSettings {
|
|
|
471
424
|
giftCards: boolean;
|
|
472
425
|
};
|
|
473
426
|
}
|
|
474
|
-
export interface ConfigButtonSize {
|
|
475
|
-
borderRadius: string;
|
|
476
|
-
borderWidth: string;
|
|
477
|
-
borderWidthApp: string;
|
|
478
|
-
fontSize: string;
|
|
479
|
-
letterSpacing: string;
|
|
480
|
-
padding: string;
|
|
481
|
-
showButtonApp: boolean;
|
|
482
|
-
showSubtitle: boolean;
|
|
483
|
-
showSubtitleMobile: boolean;
|
|
484
|
-
subtitleFontMobile: string;
|
|
485
|
-
subtitleFontSize: string;
|
|
486
|
-
subtitleFontSizeMobile: string;
|
|
487
|
-
subtitleFontWeight: string;
|
|
488
|
-
subtitleMarginTop: string;
|
|
489
|
-
subtitleMarginTopMobile: string;
|
|
490
|
-
titleFontMobile: string;
|
|
491
|
-
titleFontSize: string;
|
|
492
|
-
titleFontSizeMobile: string;
|
|
493
|
-
titleFontWeight: string;
|
|
494
|
-
titleMarginLeft: string;
|
|
495
|
-
titleMarginLeftMobile: string;
|
|
496
|
-
fontMobile: string;
|
|
497
|
-
}
|
|
498
|
-
export interface ConfigCardColors {
|
|
499
|
-
bgColor: string;
|
|
500
|
-
borderColor: string;
|
|
501
|
-
borderRadius: string;
|
|
502
|
-
borderWidth: string;
|
|
503
|
-
borderWidthApp: string;
|
|
504
|
-
boxShadow: string;
|
|
505
|
-
caloriesColor: string;
|
|
506
|
-
overrideFontColors: boolean;
|
|
507
|
-
priceColor: string;
|
|
508
|
-
priceSize: string;
|
|
509
|
-
priceSizeMobile: string;
|
|
510
|
-
textColor: string;
|
|
511
|
-
titleColor: string;
|
|
512
|
-
titleSize: string;
|
|
513
|
-
titleSizeMobile: string;
|
|
514
|
-
}
|
|
515
|
-
export interface ConfigCountColors {
|
|
516
|
-
bgColor: string;
|
|
517
|
-
borderColor: string;
|
|
518
|
-
borderWidth: string;
|
|
519
|
-
borderWidthApp: string;
|
|
520
|
-
color: string;
|
|
521
|
-
family: string;
|
|
522
|
-
fontMobile: string;
|
|
523
|
-
fontSize: string;
|
|
524
|
-
fontSizeMobile: string;
|
|
525
|
-
fontSmoothing: string;
|
|
526
|
-
paddingBottom: string;
|
|
527
|
-
paddingTop: string;
|
|
528
|
-
weight: string;
|
|
529
|
-
}
|
|
530
|
-
export declare type ConfigFontSizes = 'big' | 'giga' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'main' | 'mega' | 'small' | 'tera' | 'xBig' | 'xSmall' | 'xxBig' | 'xxSmall';
|
|
531
|
-
export declare type ConfigThemeFontSizes = Record<string, string> & {
|
|
532
|
-
[keys in ConfigFontSizes]: string;
|
|
533
|
-
};
|
|
534
|
-
export interface ConfigFont {
|
|
535
|
-
color: string;
|
|
536
|
-
family: string;
|
|
537
|
-
fontMobile: string;
|
|
538
|
-
fontSmoothing: string;
|
|
539
|
-
letterSpacing: string;
|
|
540
|
-
lineHeight: number;
|
|
541
|
-
lineHeights: ConfigThemeFontSizes;
|
|
542
|
-
textTransform: string;
|
|
543
|
-
url: string;
|
|
544
|
-
weight: string;
|
|
545
|
-
fontSize?: string;
|
|
546
|
-
}
|
|
547
|
-
export interface ConfigItem {
|
|
548
|
-
imageHeight: string;
|
|
549
|
-
imageMaxHeight: string;
|
|
550
|
-
imageMinHeight: string;
|
|
551
|
-
imagePadding: string;
|
|
552
|
-
maxWidth: string;
|
|
553
|
-
padding: string;
|
|
554
|
-
}
|
|
555
|
-
export interface ConfigLink {
|
|
556
|
-
color: string;
|
|
557
|
-
hover: string;
|
|
558
|
-
}
|
|
559
|
-
export interface ConfigThemeFont {
|
|
560
|
-
body: ConfigFont;
|
|
561
|
-
headings: ConfigFont;
|
|
562
|
-
headline: ConfigFont;
|
|
563
|
-
lineHeights: ConfigThemeFontSizes;
|
|
564
|
-
preface: ConfigFont;
|
|
565
|
-
sizes: ConfigThemeFontSizes;
|
|
566
|
-
sizesMobile: ConfigThemeFontSizes;
|
|
567
|
-
}
|
|
568
|
-
export interface ConfigThemeInputLabel {
|
|
569
|
-
fontSize: string;
|
|
570
|
-
left: string;
|
|
571
|
-
lineHeight: string;
|
|
572
|
-
offset: string;
|
|
573
|
-
padding: string;
|
|
574
|
-
top: string;
|
|
575
|
-
fontSizeMobile: string;
|
|
576
|
-
}
|
|
577
|
-
export interface ConfigThemeInput {
|
|
578
|
-
bgColor: string;
|
|
579
|
-
bgColorFocus: string;
|
|
580
|
-
borderColor: string;
|
|
581
|
-
borderColorFocus: string;
|
|
582
|
-
borderStyle: string;
|
|
583
|
-
borderWidth: string;
|
|
584
|
-
borderWidthApp: string;
|
|
585
|
-
bottomBorderOnly: boolean;
|
|
586
|
-
boxShadow: string;
|
|
587
|
-
color: string;
|
|
588
|
-
colorFocus: string;
|
|
589
|
-
family: string;
|
|
590
|
-
fontMobile: string;
|
|
591
|
-
fontSize: string;
|
|
592
|
-
fontSizeMobile: string;
|
|
593
|
-
fontSmoothing: string;
|
|
594
|
-
iconLeft: string;
|
|
595
|
-
iconPadding: string;
|
|
596
|
-
label: ConfigThemeInputLabel;
|
|
597
|
-
letterSpacing: string;
|
|
598
|
-
lineHeight: string;
|
|
599
|
-
padding: string;
|
|
600
|
-
paddingBottom: string;
|
|
601
|
-
paddingBottomActive: string;
|
|
602
|
-
paddingHorizontal: string;
|
|
603
|
-
paddingTop: string;
|
|
604
|
-
paddingTopActive: string;
|
|
605
|
-
paddingVertical: string;
|
|
606
|
-
placeholderColor: string;
|
|
607
|
-
radius: string;
|
|
608
|
-
selectPaddingBottom: string;
|
|
609
|
-
selectSize: string;
|
|
610
|
-
selectSizeMobile: string;
|
|
611
|
-
showIcon: boolean;
|
|
612
|
-
showLabel: boolean;
|
|
613
|
-
showOutline: boolean;
|
|
614
|
-
textTransform: string;
|
|
615
|
-
weight: string;
|
|
616
|
-
}
|
|
617
|
-
export interface ConfigThemeItem {
|
|
618
|
-
desktop: ConfigItem;
|
|
619
|
-
imageMaxHeight: string;
|
|
620
|
-
imageMinHeight: string;
|
|
621
|
-
imagePadding: string;
|
|
622
|
-
maxWidth: string;
|
|
623
|
-
mobile: ConfigItem;
|
|
624
|
-
padding: string;
|
|
625
|
-
}
|
|
626
|
-
export interface ConfigThemeLayout {
|
|
627
|
-
containerMaxWidth: string;
|
|
628
|
-
headerHeightApp: string;
|
|
629
|
-
headerHeightSite: string;
|
|
630
|
-
headerHeightSiteMobile: string;
|
|
631
|
-
margin: string;
|
|
632
|
-
marginMobile: string;
|
|
633
|
-
maxWidth: string;
|
|
634
|
-
navHeight: string;
|
|
635
|
-
navHeightApp: string;
|
|
636
|
-
navHeightMobile: string;
|
|
637
|
-
padding: string;
|
|
638
|
-
paddingMobile: string;
|
|
639
|
-
}
|
|
640
|
-
export interface ConfigCategoriesItem {
|
|
641
|
-
desktop: {
|
|
642
|
-
displayType: string;
|
|
643
|
-
};
|
|
644
|
-
mobile: {
|
|
645
|
-
displayType: string;
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
|
-
export interface ConfigThemeButtons {
|
|
649
|
-
colors: {
|
|
650
|
-
cart: ButtonColor;
|
|
651
|
-
cartHover: ButtonColor;
|
|
652
|
-
header: ButtonColor;
|
|
653
|
-
headerHover: ButtonColor;
|
|
654
|
-
large: ButtonColor & {
|
|
655
|
-
iconColor: string;
|
|
656
|
-
subtitleColor: string;
|
|
657
|
-
};
|
|
658
|
-
largeHover: ButtonColor & {
|
|
659
|
-
iconColor: string;
|
|
660
|
-
subtitleColor: string;
|
|
661
|
-
};
|
|
662
|
-
light: ButtonColor;
|
|
663
|
-
lightHover: ButtonColor;
|
|
664
|
-
primary: ButtonColor;
|
|
665
|
-
primaryHover: ButtonColor;
|
|
666
|
-
secondary: ButtonColor;
|
|
667
|
-
secondaryHover: ButtonColor;
|
|
668
|
-
};
|
|
669
|
-
sizes: {
|
|
670
|
-
big: Partial<ConfigButtonSize>;
|
|
671
|
-
default: Partial<ConfigButtonSize>;
|
|
672
|
-
header: Partial<ConfigButtonSize>;
|
|
673
|
-
large: Partial<ConfigButtonSize>;
|
|
674
|
-
small: Partial<ConfigButtonSize>;
|
|
675
|
-
};
|
|
676
|
-
}
|
|
677
|
-
export interface ConfigThemeCards {
|
|
678
|
-
default: Partial<ConfigCardColors>;
|
|
679
|
-
form: Partial<ConfigCardColors>;
|
|
680
|
-
menuItem: Partial<ConfigCardColors>;
|
|
681
|
-
modifier: Partial<ConfigCardColors>;
|
|
682
|
-
}
|
|
683
|
-
export interface ConfigThemeBorder {
|
|
684
|
-
color: string;
|
|
685
|
-
radius: string;
|
|
686
|
-
radiusSmall: string;
|
|
687
|
-
width: string;
|
|
688
|
-
widthApp: string;
|
|
689
|
-
}
|
|
690
|
-
export interface ConfigThemeCounts {
|
|
691
|
-
alerts: Partial<ConfigCountColors>;
|
|
692
|
-
quantity: Partial<ConfigCountColors>;
|
|
693
|
-
}
|
|
694
|
-
export interface ConfigThemeWelcome {
|
|
695
|
-
marginBottom: string;
|
|
696
|
-
marginTop: string;
|
|
697
|
-
subtitleLineHeight: string;
|
|
698
|
-
subtitleMarginTop: string;
|
|
699
|
-
subtitleSize: string;
|
|
700
|
-
textAlign: string;
|
|
701
|
-
titleLineHeight: string;
|
|
702
|
-
titleMarginLeft: string;
|
|
703
|
-
titleSize: string;
|
|
704
|
-
mobile?: ConfigThemeWelcome;
|
|
705
|
-
}
|
|
706
|
-
export interface ConfigThemeColors extends Record<string, string> {
|
|
707
|
-
alert: string;
|
|
708
|
-
allergens: string;
|
|
709
|
-
dark: string;
|
|
710
|
-
error: string;
|
|
711
|
-
highlight: string;
|
|
712
|
-
light: string;
|
|
713
|
-
primary: string;
|
|
714
|
-
secondary: string;
|
|
715
|
-
success: string;
|
|
716
|
-
tertiary: string;
|
|
717
|
-
toast: string;
|
|
718
|
-
}
|
|
719
|
-
export interface ConfigTheme {
|
|
720
|
-
alert: {
|
|
721
|
-
bgColor: string;
|
|
722
|
-
color: string;
|
|
723
|
-
};
|
|
724
|
-
bgColors: ConfigThemeColors;
|
|
725
|
-
boldWeight: string;
|
|
726
|
-
border: ConfigThemeBorder;
|
|
727
|
-
boxShadow: {
|
|
728
|
-
appBig: string;
|
|
729
|
-
appSmall: string;
|
|
730
|
-
inset: string;
|
|
731
|
-
outer: string;
|
|
732
|
-
};
|
|
733
|
-
breakpoints: {
|
|
734
|
-
laptop: string;
|
|
735
|
-
mobile: string;
|
|
736
|
-
narrow: string;
|
|
737
|
-
tablet: string;
|
|
738
|
-
};
|
|
739
|
-
buttons: ConfigThemeButtons;
|
|
740
|
-
cards: ConfigThemeCards;
|
|
741
|
-
colors: ConfigThemeColors;
|
|
742
|
-
counts: ConfigThemeCounts;
|
|
743
|
-
error: {
|
|
744
|
-
bgColor: string;
|
|
745
|
-
color: string;
|
|
746
|
-
};
|
|
747
|
-
favorite: {
|
|
748
|
-
iconSize: string;
|
|
749
|
-
size: string;
|
|
750
|
-
};
|
|
751
|
-
fonts: ConfigThemeFont;
|
|
752
|
-
header: {
|
|
753
|
-
primary: string;
|
|
754
|
-
stuck: string;
|
|
755
|
-
};
|
|
756
|
-
icons: {
|
|
757
|
-
strokeWidth: number;
|
|
758
|
-
};
|
|
759
|
-
inputs: ConfigThemeInput;
|
|
760
|
-
item: ConfigThemeItem;
|
|
761
|
-
layout: ConfigThemeLayout;
|
|
762
|
-
lineHeight: string;
|
|
763
|
-
links: {
|
|
764
|
-
customize: ConfigLink;
|
|
765
|
-
dark: ConfigLink;
|
|
766
|
-
light: ConfigLink;
|
|
767
|
-
primary: ConfigLink;
|
|
768
|
-
textDecoration: string;
|
|
769
|
-
transition: string;
|
|
770
|
-
};
|
|
771
|
-
overlay: {
|
|
772
|
-
alert: string;
|
|
773
|
-
dark: string;
|
|
774
|
-
light: string;
|
|
775
|
-
primary: string;
|
|
776
|
-
secondary: string;
|
|
777
|
-
tertiary: string;
|
|
778
|
-
};
|
|
779
|
-
success: {
|
|
780
|
-
bgColor: string;
|
|
781
|
-
color: string;
|
|
782
|
-
};
|
|
783
|
-
toast: {
|
|
784
|
-
bgColor: string;
|
|
785
|
-
color: string;
|
|
786
|
-
};
|
|
787
|
-
welcome: ConfigThemeWelcome;
|
|
788
|
-
categories: ConfigCategoriesItem;
|
|
789
|
-
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IpAddress } from '../global';
|
|
2
|
+
import { PrepStations, PrepStatus } from './kds';
|
|
3
|
+
export interface Config {
|
|
4
|
+
backup_printer_ip_address: IpAddress | null;
|
|
5
|
+
backup_printer_use_beeper: boolean;
|
|
6
|
+
brand_id: number;
|
|
7
|
+
cardreader_id: string;
|
|
8
|
+
has_cardreader: boolean;
|
|
9
|
+
has_cardwriter: boolean;
|
|
10
|
+
has_cashdrawer: boolean;
|
|
11
|
+
has_pinpad: boolean;
|
|
12
|
+
has_qrcode: boolean;
|
|
13
|
+
has_timeclock: boolean;
|
|
14
|
+
ip_address: IpAddress;
|
|
15
|
+
name: string;
|
|
16
|
+
pos_server_id: number;
|
|
17
|
+
pos_terminal_id: number;
|
|
18
|
+
prep_stations?: PrepStations | null;
|
|
19
|
+
print_kds: boolean;
|
|
20
|
+
print_receipt: 'never' | 'always' | 'prompt';
|
|
21
|
+
printer: IpAddress;
|
|
22
|
+
printer_use_beeper: boolean;
|
|
23
|
+
scanner_id: string;
|
|
24
|
+
server: IpAddress;
|
|
25
|
+
terminal_type: 'POS_TERMINAL' | 'KDS_TERMINAL' | 'KIOSK';
|
|
26
|
+
}
|
|
27
|
+
export interface ItemType {
|
|
28
|
+
default_prep_status: PrepStatus;
|
|
29
|
+
is_default: boolean;
|
|
30
|
+
is_grouped: boolean;
|
|
31
|
+
is_hidden_assembly: boolean;
|
|
32
|
+
is_hidden_qa: boolean;
|
|
33
|
+
item_type_id: number;
|
|
34
|
+
items: number[];
|
|
35
|
+
name: string;
|
|
36
|
+
position: number;
|
|
37
|
+
prep_time: number;
|
|
38
|
+
print_on_completed: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare type ItemTypes = Array<ItemType>;
|
|
41
|
+
export interface SelectOption {
|
|
42
|
+
name: string;
|
|
43
|
+
option_type: 'PAID_IN' | 'PAID_OUT';
|
|
44
|
+
position: number;
|
|
45
|
+
select_option_id: number;
|
|
46
|
+
}
|
|
47
|
+
export declare type SelectOptions = Array<SelectOption>;
|
|
@@ -8,7 +8,10 @@ export interface CreditCard {
|
|
|
8
8
|
last4: string;
|
|
9
9
|
masked: string;
|
|
10
10
|
}
|
|
11
|
-
export declare type CreditCards =
|
|
11
|
+
export declare type CreditCards = CreditCard[];
|
|
12
|
+
export interface CreditCardSaved {
|
|
13
|
+
customer_card_id: number;
|
|
14
|
+
}
|
|
12
15
|
export interface CreditCardData {
|
|
13
16
|
acct: string;
|
|
14
17
|
exp: string;
|
|
@@ -18,7 +21,8 @@ export interface CreditCardData {
|
|
|
18
21
|
is_default?: boolean;
|
|
19
22
|
token?: string;
|
|
20
23
|
}
|
|
21
|
-
export interface
|
|
24
|
+
export interface CreditCardValidate {
|
|
22
25
|
card: CreditCardData;
|
|
26
|
+
cardType: CardType;
|
|
23
27
|
errors: Partial<CreditCardData> | null;
|
|
24
28
|
}
|
|
@@ -2,7 +2,7 @@ import { ISOStringOffset } from '../../datetimes';
|
|
|
2
2
|
export declare type NotificationChannel = 'EMAIL' | 'SMS' | 'PUSH' | 'ALL';
|
|
3
3
|
export declare type NotificationArea = 'ORDER' | 'RATING' | 'MARKETING';
|
|
4
4
|
export interface CustomerNotificationPref {
|
|
5
|
-
|
|
5
|
+
created_at: ISOStringOffset;
|
|
6
6
|
customer_notification_preference_id: number;
|
|
7
7
|
notification_area: NotificationArea;
|
|
8
8
|
notification_channel: NotificationChannel;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DateString } from '../../datetimes';
|
|
2
|
+
import { Gender, OrderNotifications } from '../../global';
|
|
2
3
|
import { Allergens } from '../allergens';
|
|
3
|
-
import {
|
|
4
|
+
import { CreditCards } from '../creditCards';
|
|
4
5
|
import { Favorites } from '../favorite';
|
|
5
6
|
import { CustomerNotificationPrefs } from './communicationPreferences';
|
|
6
7
|
import { CustomerGiftCard, CustomerGiftCards } from './giftCards';
|
|
@@ -12,18 +13,17 @@ export interface Customer {
|
|
|
12
13
|
customer_id?: number;
|
|
13
14
|
email?: string;
|
|
14
15
|
first_name?: string;
|
|
15
|
-
gender?:
|
|
16
|
+
gender?: Gender;
|
|
16
17
|
is_guest?: boolean;
|
|
17
18
|
is_notification_set?: boolean;
|
|
18
19
|
is_verified?: boolean;
|
|
19
20
|
last_name?: string;
|
|
20
|
-
order_notifications?:
|
|
21
|
+
order_notifications?: OrderNotifications;
|
|
21
22
|
phone?: string | null;
|
|
22
23
|
password?: string;
|
|
23
|
-
credit_cards?:
|
|
24
|
+
credit_cards?: CreditCards;
|
|
24
25
|
gift_cards?: Array<Partial<CustomerGiftCard>>;
|
|
25
26
|
house_accounts?: HouseAccounts;
|
|
26
|
-
levelup?: any;
|
|
27
27
|
}
|
|
28
28
|
export interface CustomerWithRelated extends Customer {
|
|
29
29
|
allergens?: Allergens;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DateString, ISOStringOffset } from '../../datetimes';
|
|
2
2
|
import { Money } from '../../global';
|
|
3
|
+
import { CreditCardData, CreditCardSaved } from '../creditCards';
|
|
3
4
|
export interface CustomerGiftCard {
|
|
4
5
|
balance: Money;
|
|
5
6
|
card_number: string;
|
|
@@ -11,14 +12,22 @@ export interface CustomerGiftCard {
|
|
|
11
12
|
amount?: number;
|
|
12
13
|
customer_card_id?: string | number;
|
|
13
14
|
}
|
|
14
|
-
export declare type CustomerGiftCards =
|
|
15
|
-
export interface
|
|
15
|
+
export declare type CustomerGiftCards = CustomerGiftCard[];
|
|
16
|
+
export interface GiftCardPurchased {
|
|
16
17
|
email: string;
|
|
17
18
|
balance: string;
|
|
18
19
|
card_number: string;
|
|
19
20
|
}
|
|
20
|
-
export interface
|
|
21
|
+
export interface GiftCardPurchaseData {
|
|
21
22
|
amount: string;
|
|
22
23
|
quantity: number;
|
|
23
24
|
email: string;
|
|
24
25
|
}
|
|
26
|
+
export interface GiftCardsPurchase {
|
|
27
|
+
credit_card: CreditCardData | CreditCardSaved;
|
|
28
|
+
email: string;
|
|
29
|
+
gift_cards: GiftCardPurchaseData[];
|
|
30
|
+
name: string;
|
|
31
|
+
url: string;
|
|
32
|
+
token?: string;
|
|
33
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DiscountAuthType, DiscountType, OrderType, ServiceType } from '../../global';
|
|
1
|
+
import { DiscountAuthType, DiscountType, Images, OrderType, ServiceType } from '../../global';
|
|
2
2
|
import { MenuItems } from '../menu';
|
|
3
|
-
import { OrderItemImages } from '../order';
|
|
4
3
|
export interface DayPart {
|
|
5
4
|
daypart_id: number;
|
|
6
5
|
end_time: string;
|
|
@@ -21,7 +20,7 @@ export interface Reward {
|
|
|
21
20
|
discount_type: DiscountType;
|
|
22
21
|
discounted_items: RewardItems;
|
|
23
22
|
end_date: string;
|
|
24
|
-
images:
|
|
23
|
+
images: Images;
|
|
25
24
|
max_amount: string;
|
|
26
25
|
max_order_size: string;
|
|
27
26
|
max_redemptions: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { DiscountAuthType, DiscountType, Money, OrderType, ServiceType } from '../global';
|
|
1
|
+
import { DiscountAuthType, DiscountType, Images, Money, OrderType, ServiceType } from '../global';
|
|
2
2
|
import { DayPart } from './customer';
|
|
3
3
|
import { DiscountedItems } from './menu';
|
|
4
|
-
import { OrderItemImage } from './order';
|
|
5
4
|
import { RevenueCenter } from './revenueCenter';
|
|
6
5
|
export interface Deal {
|
|
7
6
|
amount: Money;
|
|
@@ -12,7 +11,7 @@ export interface Deal {
|
|
|
12
11
|
discount_type: DiscountType;
|
|
13
12
|
discounted_items: DiscountedItems;
|
|
14
13
|
end_date: string;
|
|
15
|
-
images:
|
|
14
|
+
images: Images;
|
|
16
15
|
max_amount: string;
|
|
17
16
|
max_order_size: string;
|
|
18
17
|
max_redemptions: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Money } from '../global';
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { CreditCardData, CreditCardSaved } from './creditCards';
|
|
3
|
+
export interface DonationPurchase {
|
|
4
4
|
amount: Money;
|
|
5
|
-
credit_card:
|
|
5
|
+
credit_card: CreditCardData | CreditCardSaved;
|
|
6
6
|
email: string;
|
|
7
7
|
token?: string;
|
|
8
8
|
}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
export * from './alerts';
|
|
2
|
+
export * from './allergens';
|
|
3
|
+
export * from './announcements';
|
|
2
4
|
export * from './arrivals';
|
|
3
5
|
export * from './cart';
|
|
4
6
|
export * from './checkout';
|
|
7
|
+
export * from './completedOrders';
|
|
5
8
|
export * from './config';
|
|
9
|
+
export * from './creditCards';
|
|
6
10
|
export * from './customer';
|
|
11
|
+
export * from './deals';
|
|
7
12
|
export * from './device';
|
|
8
13
|
export * from './discounts';
|
|
14
|
+
export * from './donations';
|
|
9
15
|
export * from './employee';
|
|
10
16
|
export * from './errorAlerts';
|
|
11
17
|
export * from './favorite';
|
|
12
18
|
export * from './giftCard';
|
|
19
|
+
export * from './guest';
|
|
13
20
|
export * from './kds';
|
|
14
21
|
export * from './menu';
|
|
15
22
|
export * from './menuPages';
|
|
@@ -17,19 +24,12 @@ export * from './messages';
|
|
|
17
24
|
export * from './notifications';
|
|
18
25
|
export * from './offlineAuths';
|
|
19
26
|
export * from './order';
|
|
27
|
+
export * from './orders';
|
|
28
|
+
export * from './pos';
|
|
20
29
|
export * from './refund';
|
|
21
30
|
export * from './revenueCenter';
|
|
22
31
|
export * from './settings';
|
|
23
32
|
export * from './store';
|
|
24
33
|
export * from './surcharges';
|
|
25
34
|
export * from './taxes';
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './guest';
|
|
28
|
-
export * from './completedOrders';
|
|
29
|
-
export * from './orders';
|
|
30
|
-
export * from './allergens';
|
|
31
|
-
export * from './creditCards';
|
|
32
|
-
export * from './announcements';
|
|
33
|
-
export * from './deals';
|
|
34
|
-
export * from './allergens';
|
|
35
|
-
export * from './config';
|
|
35
|
+
export * from './theme';
|