@final-commerce/common 2.2.3-staging3.2 → 2.3.0-staging.2
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/index.d.mts +192 -4
- package/dist/index.d.ts +192 -4
- package/dist/index.js +448 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +430 -15
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +143 -129
- package/dist/pos-types/index.d.ts +143 -129
- package/dist/pos-types/index.js +0 -1
- package/dist/pos-types/index.js.map +1 -1
- package/dist/pos-types/index.mjs +0 -1
- package/dist/pos-types/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -78,9 +78,6 @@ interface OrderSummary {
|
|
|
78
78
|
cartFeesTotal?: number;
|
|
79
79
|
taxableFeesTotal?: number;
|
|
80
80
|
nonTaxableFeesTotal?: number;
|
|
81
|
-
modifiersTotal?: number;
|
|
82
|
-
taxableModifiersTotal?: number;
|
|
83
|
-
nonTaxableModifiersTotal?: number;
|
|
84
81
|
totalTaxableSales?: number;
|
|
85
82
|
totalNonTaxableSales?: number;
|
|
86
83
|
tipTotal?: number;
|
|
@@ -146,17 +143,6 @@ interface OrderLineItemFee {
|
|
|
146
143
|
cartFee?: PriceModifierDetail;
|
|
147
144
|
itemFees?: PriceModifierDetail[];
|
|
148
145
|
}
|
|
149
|
-
interface OrderLineItemModifier {
|
|
150
|
-
modifierId: string;
|
|
151
|
-
modifierName: string;
|
|
152
|
-
choiceId: string;
|
|
153
|
-
choiceName: string;
|
|
154
|
-
unitPrice: number;
|
|
155
|
-
quantity: number;
|
|
156
|
-
total: number;
|
|
157
|
-
totalTax?: number;
|
|
158
|
-
taxes?: OrderTax[];
|
|
159
|
-
}
|
|
160
146
|
interface OrderLineItem {
|
|
161
147
|
id?: string;
|
|
162
148
|
productId?: string;
|
|
@@ -179,7 +165,6 @@ interface OrderLineItem {
|
|
|
179
165
|
taxes?: OrderTax[];
|
|
180
166
|
discount?: OrderLineItemDiscount;
|
|
181
167
|
fee?: OrderLineItemFee;
|
|
182
|
-
modifiers?: OrderLineItemModifier[];
|
|
183
168
|
lineNetWithFees?: number;
|
|
184
169
|
metadata?: Metadata[];
|
|
185
170
|
stock?: number;
|
|
@@ -456,7 +441,8 @@ declare enum NonRevenueItemType {
|
|
|
456
441
|
|
|
457
442
|
declare enum ProductType {
|
|
458
443
|
SIMPLE = "simple",
|
|
459
|
-
VARIABLE = "variable"
|
|
444
|
+
VARIABLE = "variable",
|
|
445
|
+
BOOKING = "booking"
|
|
460
446
|
}
|
|
461
447
|
declare enum ProductStatus {
|
|
462
448
|
ACTIVE = "active",
|
|
@@ -470,11 +456,38 @@ declare enum PaymentProcessor {
|
|
|
470
456
|
EXTERNAL = "external"
|
|
471
457
|
}
|
|
472
458
|
|
|
459
|
+
declare enum BookingType {
|
|
460
|
+
RENTAL = "rental",
|
|
461
|
+
APPOINTMENT = "appointment",
|
|
462
|
+
OVERNIGHT = "overnight",
|
|
463
|
+
GROUP = "group"
|
|
464
|
+
}
|
|
465
|
+
declare enum BookingRatePeriod {
|
|
466
|
+
SLOT = "slot",
|
|
467
|
+
DAY = "day",
|
|
468
|
+
NIGHT = "night",
|
|
469
|
+
WEEK = "week",
|
|
470
|
+
MONTH = "month"
|
|
471
|
+
}
|
|
472
|
+
declare enum BookingResourceKind {
|
|
473
|
+
ASSET = "asset",
|
|
474
|
+
ROOM = "room",
|
|
475
|
+
PROPERTY = "property",
|
|
476
|
+
SPACE = "space",
|
|
477
|
+
STAFF = "staff",
|
|
478
|
+
TABLE = "table"
|
|
479
|
+
}
|
|
480
|
+
declare enum ReservationStatus {
|
|
481
|
+
HELD = "held",
|
|
482
|
+
CONFIRMED = "confirmed",
|
|
483
|
+
CANCELLED = "cancelled",
|
|
484
|
+
EXPIRED = "expired"
|
|
485
|
+
}
|
|
486
|
+
|
|
473
487
|
interface RefundLineItem {
|
|
474
488
|
taxes?: OrderTax[];
|
|
475
489
|
discount?: RefundDiscount;
|
|
476
490
|
fee?: OrderLineItemFee;
|
|
477
|
-
modifiers?: OrderLineItemModifier[];
|
|
478
491
|
lineNetWithFees?: number;
|
|
479
492
|
quantity?: number;
|
|
480
493
|
stockQuantity?: number;
|
|
@@ -534,9 +547,6 @@ interface RefundSummary {
|
|
|
534
547
|
cartFeesTotal?: number;
|
|
535
548
|
taxableFeesTotal?: number;
|
|
536
549
|
nonTaxableFeesTotal?: number;
|
|
537
|
-
modifiersTotal?: number;
|
|
538
|
-
taxableModifiersTotal?: number;
|
|
539
|
-
nonTaxableModifiersTotal?: number;
|
|
540
550
|
totalTaxableSales?: number;
|
|
541
551
|
totalNonTaxableSales?: number;
|
|
542
552
|
tipTotal?: number;
|
|
@@ -576,6 +586,32 @@ interface TransactionPaymentData {
|
|
|
576
586
|
chargeId?: string;
|
|
577
587
|
}
|
|
578
588
|
|
|
589
|
+
interface OrderReservation {
|
|
590
|
+
internalId: string;
|
|
591
|
+
bookingId?: string;
|
|
592
|
+
productId: string;
|
|
593
|
+
variantId?: string | null;
|
|
594
|
+
resourceId: string;
|
|
595
|
+
name: string;
|
|
596
|
+
resourceName?: string;
|
|
597
|
+
price: number;
|
|
598
|
+
quantity?: number;
|
|
599
|
+
fulfilledQuantity?: number;
|
|
600
|
+
returnedQuantity?: number;
|
|
601
|
+
taxes?: OrderTax[];
|
|
602
|
+
discount?: OrderLineItemDiscount;
|
|
603
|
+
fee?: OrderLineItemFee;
|
|
604
|
+
totalTax?: number;
|
|
605
|
+
total: number;
|
|
606
|
+
taxTableId?: string;
|
|
607
|
+
startAt: string;
|
|
608
|
+
endAt: string;
|
|
609
|
+
bufferEndAt: string;
|
|
610
|
+
status: ReservationStatus;
|
|
611
|
+
override?: boolean;
|
|
612
|
+
overriddenBy?: string | null;
|
|
613
|
+
}
|
|
614
|
+
|
|
579
615
|
interface Attribute extends BaseEntity {
|
|
580
616
|
optionName: string;
|
|
581
617
|
sortingOrder: number;
|
|
@@ -791,6 +827,7 @@ interface Order extends BaseEntity {
|
|
|
791
827
|
lineItems: Partial<OrderLineItem>[];
|
|
792
828
|
customSales?: OrderCustomSale[];
|
|
793
829
|
nonRevenueItems?: NonRevenueItem$1[];
|
|
830
|
+
reservations?: OrderReservation[];
|
|
794
831
|
refund?: OrderRefund[];
|
|
795
832
|
minorUnits?: number;
|
|
796
833
|
}
|
|
@@ -1074,24 +1111,6 @@ interface TaxTable extends BaseEntity {
|
|
|
1074
1111
|
isStandard?: boolean;
|
|
1075
1112
|
}
|
|
1076
1113
|
|
|
1077
|
-
type TimeClockEntryStatus = 'open' | 'on-break' | 'completed';
|
|
1078
|
-
interface TimeClockEntry extends BaseEntity {
|
|
1079
|
-
organizationId: string;
|
|
1080
|
-
employeeId: string;
|
|
1081
|
-
employeeName: string;
|
|
1082
|
-
outletId: string;
|
|
1083
|
-
outletName: string;
|
|
1084
|
-
clockInStationId: string;
|
|
1085
|
-
clockInStationName: string;
|
|
1086
|
-
clockOutStationId?: string;
|
|
1087
|
-
clockOutStationName?: string;
|
|
1088
|
-
clockInTime: string;
|
|
1089
|
-
clockOutTime?: string;
|
|
1090
|
-
breakStartedAt?: string | null;
|
|
1091
|
-
totalBreakMinutes: number;
|
|
1092
|
-
status: TimeClockEntryStatus;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
1114
|
interface User extends BaseDocument {
|
|
1096
1115
|
accountId?: string;
|
|
1097
1116
|
companies: string[];
|
|
@@ -1127,6 +1146,22 @@ interface Variant extends BaseEntity {
|
|
|
1127
1146
|
stockVariantId?: string;
|
|
1128
1147
|
}
|
|
1129
1148
|
|
|
1149
|
+
interface Tax {
|
|
1150
|
+
id: string;
|
|
1151
|
+
name: string;
|
|
1152
|
+
percentage: number;
|
|
1153
|
+
amount: number;
|
|
1154
|
+
taxableAmount?: number;
|
|
1155
|
+
taxTableName: string;
|
|
1156
|
+
taxTableId: string;
|
|
1157
|
+
compounding?: boolean;
|
|
1158
|
+
priority?: number;
|
|
1159
|
+
}
|
|
1160
|
+
interface Tip {
|
|
1161
|
+
amount: number;
|
|
1162
|
+
percentage: number;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1130
1165
|
interface Address {
|
|
1131
1166
|
firstName: string;
|
|
1132
1167
|
lastName: string;
|
|
@@ -1318,22 +1353,6 @@ interface PosDataItem {
|
|
|
1318
1353
|
};
|
|
1319
1354
|
}
|
|
1320
1355
|
|
|
1321
|
-
interface Tax {
|
|
1322
|
-
id: string;
|
|
1323
|
-
name: string;
|
|
1324
|
-
percentage: number;
|
|
1325
|
-
amount: number;
|
|
1326
|
-
taxableAmount?: number;
|
|
1327
|
-
taxTableName: string;
|
|
1328
|
-
taxTableId: string;
|
|
1329
|
-
compounding?: boolean;
|
|
1330
|
-
priority?: number;
|
|
1331
|
-
}
|
|
1332
|
-
interface Tip {
|
|
1333
|
-
amount: number;
|
|
1334
|
-
percentage: number;
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
1356
|
interface DiscountDetail {
|
|
1338
1357
|
percentage: number;
|
|
1339
1358
|
amount: number;
|
|
@@ -1367,7 +1386,6 @@ interface LineItem {
|
|
|
1367
1386
|
taxes: Tax[];
|
|
1368
1387
|
discount: DiscountLineItem;
|
|
1369
1388
|
fee: FeeLineItem;
|
|
1370
|
-
modifiers?: OrderLineItemModifier[];
|
|
1371
1389
|
totalTax: number;
|
|
1372
1390
|
total: number;
|
|
1373
1391
|
lineNetWithFees: number;
|
|
@@ -1441,9 +1459,6 @@ interface Summary {
|
|
|
1441
1459
|
cartFeesTotal?: number;
|
|
1442
1460
|
taxableFeesTotal?: number;
|
|
1443
1461
|
nonTaxableFeesTotal?: number;
|
|
1444
|
-
modifiersTotal?: number;
|
|
1445
|
-
taxableModifiersTotal?: number;
|
|
1446
|
-
nonTaxableModifiersTotal?: number;
|
|
1447
1462
|
totalTaxableSales?: number;
|
|
1448
1463
|
totalNonTaxableSales?: number;
|
|
1449
1464
|
tipTotal?: number;
|
|
@@ -1479,11 +1494,11 @@ interface RefundedLineItem {
|
|
|
1479
1494
|
description?: string;
|
|
1480
1495
|
images?: string[];
|
|
1481
1496
|
fee: FeeLineItem;
|
|
1482
|
-
modifiers?: OrderLineItemModifier[];
|
|
1483
1497
|
}
|
|
1484
1498
|
interface RefundItem {
|
|
1485
1499
|
lineItems: RefundedLineItem[];
|
|
1486
1500
|
customSales: RefundedCustomSale[];
|
|
1501
|
+
reservations?: OrderReservation[];
|
|
1487
1502
|
cartFees: CartFeeItem[];
|
|
1488
1503
|
tips: RefundedTipPayment[];
|
|
1489
1504
|
refundedBy: string;
|
|
@@ -1496,6 +1511,9 @@ interface RefundItem {
|
|
|
1496
1511
|
minorUnits?: number;
|
|
1497
1512
|
}
|
|
1498
1513
|
|
|
1514
|
+
type ActiveOrderReservation = Omit<OrderReservation, 'taxes'> & {
|
|
1515
|
+
taxes?: Tax[];
|
|
1516
|
+
};
|
|
1499
1517
|
type ActiveOrder = Enrich<Order, {
|
|
1500
1518
|
_id: string;
|
|
1501
1519
|
id?: string;
|
|
@@ -1519,6 +1537,7 @@ type ActiveOrder = Enrich<Order, {
|
|
|
1519
1537
|
shipping: Address | null;
|
|
1520
1538
|
lineItems: LineItem[];
|
|
1521
1539
|
customSales: CustomSale[];
|
|
1540
|
+
reservations?: ActiveOrderReservation[];
|
|
1522
1541
|
nonRevenueItems?: NonRevenueItem[];
|
|
1523
1542
|
refund?: RefundItem[];
|
|
1524
1543
|
signature?: string | null;
|
|
@@ -1531,47 +1550,6 @@ type ActiveOrder = Enrich<Order, {
|
|
|
1531
1550
|
station?: ActiveStation;
|
|
1532
1551
|
}>;
|
|
1533
1552
|
|
|
1534
|
-
type ModifierSelectionType = 'single' | 'multiple' | 'quantity';
|
|
1535
|
-
interface ResolvedModifierChoice {
|
|
1536
|
-
_id: string;
|
|
1537
|
-
name: string;
|
|
1538
|
-
price: number;
|
|
1539
|
-
isDefault?: boolean;
|
|
1540
|
-
defaultQuantity?: number;
|
|
1541
|
-
unavailableOutletIds?: string[];
|
|
1542
|
-
sortOrder: number;
|
|
1543
|
-
}
|
|
1544
|
-
interface ResolvedModifier {
|
|
1545
|
-
_id: string;
|
|
1546
|
-
name: string;
|
|
1547
|
-
selectionType: ModifierSelectionType;
|
|
1548
|
-
allowQuantity?: boolean;
|
|
1549
|
-
required: boolean;
|
|
1550
|
-
min?: number | null;
|
|
1551
|
-
max?: number | null;
|
|
1552
|
-
sortOrder: number;
|
|
1553
|
-
choices: ResolvedModifierChoice[];
|
|
1554
|
-
}
|
|
1555
|
-
interface ModifierChoiceSelection {
|
|
1556
|
-
choiceId: string;
|
|
1557
|
-
quantity: number;
|
|
1558
|
-
}
|
|
1559
|
-
interface ModifierSelection {
|
|
1560
|
-
modifierId: string;
|
|
1561
|
-
choices: ModifierChoiceSelection[];
|
|
1562
|
-
}
|
|
1563
|
-
interface CartLineModifier {
|
|
1564
|
-
modifierId: string;
|
|
1565
|
-
modifierName: string;
|
|
1566
|
-
choiceId: string;
|
|
1567
|
-
choiceName: string;
|
|
1568
|
-
label?: string;
|
|
1569
|
-
unitPrice: number;
|
|
1570
|
-
quantity: number;
|
|
1571
|
-
taxTableId?: string;
|
|
1572
|
-
taxRateId?: string;
|
|
1573
|
-
}
|
|
1574
|
-
|
|
1575
1553
|
interface Discount {
|
|
1576
1554
|
value: number;
|
|
1577
1555
|
label?: string;
|
|
@@ -1619,8 +1597,6 @@ interface ActiveProduct {
|
|
|
1619
1597
|
stock: number;
|
|
1620
1598
|
allowBackOrder?: boolean;
|
|
1621
1599
|
fees?: CustomFee[];
|
|
1622
|
-
modifierSelections?: ModifierSelection[];
|
|
1623
|
-
modifiers?: CartLineModifier[];
|
|
1624
1600
|
currency?: CurrencyCode;
|
|
1625
1601
|
minorUnits?: number;
|
|
1626
1602
|
isUnlimited?: boolean;
|
|
@@ -1632,6 +1608,13 @@ interface ActiveProduct {
|
|
|
1632
1608
|
productType?: ProductType;
|
|
1633
1609
|
}
|
|
1634
1610
|
|
|
1611
|
+
interface CartReservation extends OrderReservation {
|
|
1612
|
+
bookingId: string;
|
|
1613
|
+
expiresAt?: string;
|
|
1614
|
+
discounts?: Discount[];
|
|
1615
|
+
fees?: CustomFee[];
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1635
1618
|
interface ActiveCustomSales {
|
|
1636
1619
|
id: string;
|
|
1637
1620
|
name: string;
|
|
@@ -1656,11 +1639,13 @@ interface ActiveCart {
|
|
|
1656
1639
|
taxes?: Tax[];
|
|
1657
1640
|
total: number;
|
|
1658
1641
|
subtotal: number;
|
|
1642
|
+
itemCount?: number;
|
|
1659
1643
|
discount?: Discount;
|
|
1660
1644
|
customFee?: CustomFee[];
|
|
1661
1645
|
products: ActiveProduct[];
|
|
1662
1646
|
customSales?: ActiveCustomSales[];
|
|
1663
1647
|
nonRevenueItems?: NonRevenueItem[];
|
|
1648
|
+
reservations?: CartReservation[];
|
|
1664
1649
|
remainingBalance?: number;
|
|
1665
1650
|
amountToBeCharged: number;
|
|
1666
1651
|
customer?: Partial<ActiveCustomer | null> | null;
|
|
@@ -1742,8 +1727,8 @@ interface FullProduct {
|
|
|
1742
1727
|
supplier?: string;
|
|
1743
1728
|
sku?: string;
|
|
1744
1729
|
productType: ProductType;
|
|
1730
|
+
bookingRulesId?: string;
|
|
1745
1731
|
variants: ProductVariant[];
|
|
1746
|
-
modifiers?: ResolvedModifier[];
|
|
1747
1732
|
minPrice?: number;
|
|
1748
1733
|
maxPrice?: number;
|
|
1749
1734
|
price?: number;
|
|
@@ -1756,6 +1741,58 @@ interface FullProduct {
|
|
|
1756
1741
|
}
|
|
1757
1742
|
type ActiveFullProduct = FullProduct;
|
|
1758
1743
|
|
|
1744
|
+
interface BookingSlotResource {
|
|
1745
|
+
resourceId: string;
|
|
1746
|
+
name: string;
|
|
1747
|
+
capacity: number;
|
|
1748
|
+
booked: number;
|
|
1749
|
+
free: number;
|
|
1750
|
+
}
|
|
1751
|
+
interface BookingSlot {
|
|
1752
|
+
startAt: string;
|
|
1753
|
+
endAt: string;
|
|
1754
|
+
bufferEndAt: string;
|
|
1755
|
+
canStart: boolean;
|
|
1756
|
+
capacity: number;
|
|
1757
|
+
booked: number;
|
|
1758
|
+
free: number;
|
|
1759
|
+
resources: BookingSlotResource[];
|
|
1760
|
+
}
|
|
1761
|
+
interface BookingAvailability {
|
|
1762
|
+
productId: string;
|
|
1763
|
+
bookingRulesId: string;
|
|
1764
|
+
bookingType: BookingType;
|
|
1765
|
+
ratePeriod: BookingRatePeriod;
|
|
1766
|
+
minimumToRun?: number;
|
|
1767
|
+
minStay?: number;
|
|
1768
|
+
maxStay?: number;
|
|
1769
|
+
bookableUntil?: string;
|
|
1770
|
+
beyondWindow?: boolean;
|
|
1771
|
+
slots: BookingSlot[];
|
|
1772
|
+
}
|
|
1773
|
+
interface BookingResource {
|
|
1774
|
+
id: string;
|
|
1775
|
+
name: string;
|
|
1776
|
+
kind: BookingResourceKind;
|
|
1777
|
+
tag?: string;
|
|
1778
|
+
}
|
|
1779
|
+
interface Booking {
|
|
1780
|
+
id: string;
|
|
1781
|
+
productId: string;
|
|
1782
|
+
resourceId: string;
|
|
1783
|
+
variantId?: string;
|
|
1784
|
+
startAt: string;
|
|
1785
|
+
endAt: string;
|
|
1786
|
+
bufferEndAt: string;
|
|
1787
|
+
status: ReservationStatus;
|
|
1788
|
+
expiresAt?: string;
|
|
1789
|
+
orderId?: string;
|
|
1790
|
+
customerId?: string;
|
|
1791
|
+
productName?: string;
|
|
1792
|
+
resourceName?: string;
|
|
1793
|
+
customerName?: string;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1759
1796
|
interface ActiveSession {
|
|
1760
1797
|
id: string;
|
|
1761
1798
|
stationId: string;
|
|
@@ -1785,8 +1822,7 @@ declare enum ProcessorType {
|
|
|
1785
1822
|
CUSTOM_PAY = "CustomPay",
|
|
1786
1823
|
VENDARA = "Vendara",
|
|
1787
1824
|
REDEEM = "Redeem",
|
|
1788
|
-
INTEGRATION = "Integration"
|
|
1789
|
-
PAYMENT_LINK = "PaymentLink"
|
|
1825
|
+
INTEGRATION = "Integration"
|
|
1790
1826
|
}
|
|
1791
1827
|
|
|
1792
1828
|
interface PrinterDetails {
|
|
@@ -1908,20 +1944,6 @@ interface ProdFeeBreakdown {
|
|
|
1908
1944
|
taxRateId?: string;
|
|
1909
1945
|
applyTaxes: boolean;
|
|
1910
1946
|
}
|
|
1911
|
-
interface ProdModifierBreakdown {
|
|
1912
|
-
modifierId: string;
|
|
1913
|
-
modifierName: string;
|
|
1914
|
-
choiceId: string;
|
|
1915
|
-
choiceName: string;
|
|
1916
|
-
label?: string;
|
|
1917
|
-
unitPrice: number;
|
|
1918
|
-
quantity: number;
|
|
1919
|
-
amount: number;
|
|
1920
|
-
tax: number;
|
|
1921
|
-
taxTableId?: string;
|
|
1922
|
-
taxRateId?: string;
|
|
1923
|
-
taxes?: OrderTax[];
|
|
1924
|
-
}
|
|
1925
1947
|
interface ProductTaxDetails {
|
|
1926
1948
|
tax: number;
|
|
1927
1949
|
prodDiscount: number;
|
|
@@ -1950,9 +1972,6 @@ interface ProductTaxDetails {
|
|
|
1950
1972
|
prodDiscounts?: ProdDiscountBreakdown[];
|
|
1951
1973
|
fees?: ProdFeeBreakdown[];
|
|
1952
1974
|
lineNetWithFees?: number;
|
|
1953
|
-
modifierDisplay?: number;
|
|
1954
|
-
modifierTax?: number;
|
|
1955
|
-
modifiers?: ProdModifierBreakdown[];
|
|
1956
1975
|
}
|
|
1957
1976
|
interface CustomSaleDetails {
|
|
1958
1977
|
tax: number;
|
|
@@ -2170,10 +2189,6 @@ interface ReaderCapabilities {
|
|
|
2170
2189
|
tapToPay: boolean;
|
|
2171
2190
|
terminal: boolean;
|
|
2172
2191
|
}
|
|
2173
|
-
interface ReaderAvailability {
|
|
2174
|
-
bluetooth: boolean;
|
|
2175
|
-
unreferencedRefund?: boolean;
|
|
2176
|
-
}
|
|
2177
2192
|
type ServiceChannelMessageType = 'POSBRAIN_READY' | 'HOST_HELLO' | 'SERVICE_INIT' | 'BOOTSTRAP' | 'TOKEN_REFRESH' | 'SELECTION' | 'HOST_SHUTDOWN' | 'READER_CAPABILITIES' | 'RUNTIME_READY' | 'HOST_NAVIGATE' | 'SYNC_PROGRESS' | 'DEVICE_OP_REQUEST' | 'DEVICE_OP_RESPONSE' | 'PUBSUB_TOPICS_REQUEST' | 'PUBSUB_TOPICS_LIST' | 'PUBSUB_SUBSCRIBE' | 'PUBSUB_UNSUBSCRIBE' | 'PUBSUB_EVENT';
|
|
2178
2193
|
interface PosBrainReadyMessage {
|
|
2179
2194
|
type: 'POSBRAIN_READY';
|
|
@@ -2226,7 +2241,7 @@ interface SyncProgressMessage {
|
|
|
2226
2241
|
pending: string[];
|
|
2227
2242
|
done: boolean;
|
|
2228
2243
|
}
|
|
2229
|
-
type DeviceOpName = 'printImage' | 'printHTML' | 'printReceipt' | 'openCashDrawer' | 'captureCardPresent' | 'cancelCardPresent' | 'refundCardPresent'
|
|
2244
|
+
type DeviceOpName = 'printImage' | 'printHTML' | 'printReceipt' | 'openCashDrawer' | 'captureCardPresent' | 'cancelCardPresent' | 'refundCardPresent';
|
|
2230
2245
|
interface DeviceOpRequestMessage {
|
|
2231
2246
|
type: 'DEVICE_OP_REQUEST';
|
|
2232
2247
|
id: string;
|
|
@@ -2239,7 +2254,6 @@ interface DeviceOpResponseMessage {
|
|
|
2239
2254
|
ok: boolean;
|
|
2240
2255
|
error?: string;
|
|
2241
2256
|
data?: PaymentResponse;
|
|
2242
|
-
readerAvailability?: ReaderAvailability;
|
|
2243
2257
|
}
|
|
2244
2258
|
interface TopicDefinitionWire {
|
|
2245
2259
|
id: string;
|
|
@@ -2275,4 +2289,4 @@ interface PubsubEventMessage {
|
|
|
2275
2289
|
}
|
|
2276
2290
|
type ServiceChannelMessage = PosBrainReadyMessage | HostHelloMessage | ServiceInitMessage | BootstrapMessage | TokenRefreshMessage | SelectionMessage | HostShutdownMessage | ReaderCapabilitiesMessage | RuntimeReadyMessage | HostNavigateMessage | SyncProgressMessage | DeviceOpRequestMessage | DeviceOpResponseMessage | PubsubTopicsRequestMessage | PubsubTopicsListMessage | PubsubSubscribeMessage | PubsubEventMessage;
|
|
2277
2291
|
|
|
2278
|
-
export { type ActiveCart, type ActiveCartProduct, type ActiveCompany, type ActiveCustomSales, type ActiveCustomer, type ActiveEntityChanges, ActiveEntityType, type ActiveFullProduct, type ActiveOrder, type ActiveOutlet, type ActivePark, type ActiveProduct, type ActiveRefundOrder, type ActiveSession, type ActiveSplitPayment, type ActiveStation, type ActiveTaxDetails, type ActiveTimer, type ActiveUpdatedOrder, type ActiveUser, type ActiveUserRole, type Address, type Attribute, type AttributeEmbedded, type AttributeOption, type BaseDocument, type BaseEntity, type BaseTile, type BootstrapMessage, type CalculatedTaxDetails, type CartDiscountItem, type CartFeeItem, type CartFeeTaxEntry, type CartFeesDetails, type
|
|
2292
|
+
export { type ActiveCart, type ActiveCartProduct, type ActiveCompany, type ActiveCustomSales, type ActiveCustomer, type ActiveEntityChanges, ActiveEntityType, type ActiveFullProduct, type ActiveOrder, type ActiveOrderReservation, type ActiveOutlet, type ActivePark, type ActiveProduct, type ActiveRefundOrder, type ActiveSession, type ActiveSplitPayment, type ActiveStation, type ActiveTaxDetails, type ActiveTimer, type ActiveUpdatedOrder, type ActiveUser, type ActiveUserRole, type Address, type Attribute, type AttributeEmbedded, type AttributeOption, type BaseDocument, type BaseEntity, type BaseTile, type Booking, type BookingAvailability, type BookingResource, type BookingSlot, type BookingSlotResource, type BootstrapMessage, type CalculatedTaxDetails, type CartDiscountItem, type CartFeeItem, type CartFeeTaxEntry, type CartFeesDetails, type CartReservation, type CashPaymentSettings, type CashRoundingIncrement, type Category, type CompanyExtension, type CompanySettingsEavValue, type CompanySettingsEavValueType, type CustomExtension, type CustomFee, type CustomSale, type CustomSaleDetails, type CustomTable, type CustomTableField, type CustomTableMetadata, type CustomTableRow, type CustomTableValue, type Customer, type CustomerNote, type DeviceEnvAttribute, type DeviceEnvCategory, type DeviceEnvValue, type DeviceOpName, type DeviceOpRequestMessage, type DeviceOpResponseMessage, type Discount, type DiscountDetail, type DiscountLineItem, type Enrich, EnvironmentDataKeys, EnvironmentDataSubKeys, type FeeDetail, type FeeLineItem, type Flow, type FlowSettings, type FlowSettingsKey, type FlowWebApp, type FlowWebAppVersion, type FullProduct, type HostHelloMessage, type HostNavigateMessage, type HostNavigateTarget, type HostShutdownMessage, type Inventory, type LineItem, type Metadata, type MetadataItem, type NonRevenueItem, type Note, type Order, type OrderCartDiscount, type OrderCartFee, type OrderCustomSale, type OrderCustomSaleDiscount, type OrderCustomSaleFee, type OrderLineItem, type OrderLineItemDiscount, type OrderLineItemFee, type OrderNote, type OrderPaymentMethod, type OrderPosData, type OrderRefund, type OrderRefundSummary, type OrderReservation, type OrderStateActor, type OrderStateActorType, type OrderStateConfig, type OrderStateEvent, type OrderStateEventTrigger, type OrderStateHistoryEntry, type OrderStateOperation, type OrderStatePair, type OrderSummary, type OrderSummaryPayments, type OrderTax, type OrderTip, type Outlet, type PaymentMethod, type PaymentResponse, type PaymentSetting, PaymentStatus, type PosBrainReadyMessage, type PosDataItem, type PriceModifierDetail, type PrinterDetails, ProcessorType, type ProdDiscountBreakdown, type ProdFeeBreakdown, type Product, type ProductTaxDetails, type ProductVariant, type PubsubEventMessage, type PubsubSubscribeMessage, type PubsubTopicsListMessage, type PubsubTopicsRequestMessage, type Reader, type ReaderCapabilities, type ReaderCapabilitiesMessage, type Refund, type RefundCartDiscount, type RefundDiscount, type RefundItem, type RefundItemDiscount, type RefundLineItem, type RefundPayment, type RefundProcessingStatus, type RefundSummary, type RefundTip, type RefundedCustomSale, type RefundedLineItem, type RefundedTipPayment, type Role, type RolePermission, type RuntimeReadyMessage, type SelectionContext, type SelectionFlowContext, type SelectionMessage, type SelectionRoleContext, type ServiceChannelMessage, type ServiceChannelMessageType, type ServiceInitMessage, type Session, type SessionClosingAmounts, type SmartGridSetting, type SmartGridSettings, type SmartGridSettingsData, type Station, type StripeAccount, type Summary, type SummaryPayments, type SyncProgressMessage, type Tax, type TaxRate, type TaxRateValue, type TaxTable, type TaxTableActive, type TaxTableRate, type TileGrid, type Tip, type TipData, type TipPayment, type TipsDetails, type TokenRefreshMessage, type TopicDefinitionWire, type TopicEventWire, type Transaction, type TransactionPaymentData, type User, type UserType, type Variant, type VariantInventory };
|