@final-commerce/common 2.4.0-staging.1 → 2.4.1-staging2.1

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.
@@ -458,8 +458,7 @@ declare enum NonRevenueItemType {
458
458
 
459
459
  declare enum ProductType {
460
460
  SIMPLE = "simple",
461
- VARIABLE = "variable",
462
- BOOKING = "booking"
461
+ VARIABLE = "variable"
463
462
  }
464
463
  declare enum ProductStatus {
465
464
  ACTIVE = "active",
@@ -473,34 +472,6 @@ declare enum PaymentProcessor {
473
472
  EXTERNAL = "external"
474
473
  }
475
474
 
476
- declare enum BookingType {
477
- RENTAL = "rental",
478
- APPOINTMENT = "appointment",
479
- OVERNIGHT = "overnight",
480
- GROUP = "group"
481
- }
482
- declare enum BookingRatePeriod {
483
- SLOT = "slot",
484
- DAY = "day",
485
- NIGHT = "night",
486
- WEEK = "week",
487
- MONTH = "month"
488
- }
489
- declare enum BookingResourceKind {
490
- ASSET = "asset",
491
- ROOM = "room",
492
- PROPERTY = "property",
493
- SPACE = "space",
494
- STAFF = "staff",
495
- TABLE = "table"
496
- }
497
- declare enum ReservationStatus {
498
- HELD = "held",
499
- CONFIRMED = "confirmed",
500
- CANCELLED = "cancelled",
501
- EXPIRED = "expired"
502
- }
503
-
504
475
  interface RefundLineItem {
505
476
  taxes?: OrderTax[];
506
477
  discount?: RefundDiscount;
@@ -607,31 +578,6 @@ interface TransactionPaymentData {
607
578
  chargeId?: string;
608
579
  }
609
580
 
610
- interface OrderReservation {
611
- internalId: string;
612
- bookingId?: string;
613
- productId: string;
614
- variantId?: string | null;
615
- resourceId: string;
616
- name: string;
617
- resourceName?: string;
618
- price: number;
619
- quantity?: number;
620
- fulfilledQuantity?: number;
621
- returnedQuantity?: number;
622
- taxes?: OrderTax[];
623
- discount?: OrderLineItemDiscount;
624
- fee?: OrderLineItemFee;
625
- totalTax?: number;
626
- total: number;
627
- taxTableId?: string;
628
- startAt: string;
629
- endAt: string;
630
- bufferEndAt: string;
631
- override?: boolean;
632
- overriddenBy?: string | null;
633
- }
634
-
635
581
  interface Attribute extends BaseEntity {
636
582
  optionName: string;
637
583
  sortingOrder: number;
@@ -847,7 +793,6 @@ interface Order extends BaseEntity {
847
793
  lineItems: Partial<OrderLineItem>[];
848
794
  customSales?: OrderCustomSale[];
849
795
  nonRevenueItems?: NonRevenueItem$1[];
850
- reservations?: OrderReservation[];
851
796
  refund?: OrderRefund[];
852
797
  minorUnits?: number;
853
798
  }
@@ -1184,22 +1129,6 @@ interface Variant extends BaseEntity {
1184
1129
  stockVariantId?: string;
1185
1130
  }
1186
1131
 
1187
- interface Tax {
1188
- id: string;
1189
- name: string;
1190
- percentage: number;
1191
- amount: number;
1192
- taxableAmount?: number;
1193
- taxTableName: string;
1194
- taxTableId: string;
1195
- compounding?: boolean;
1196
- priority?: number;
1197
- }
1198
- interface Tip {
1199
- amount: number;
1200
- percentage: number;
1201
- }
1202
-
1203
1132
  interface Address {
1204
1133
  firstName: string;
1205
1134
  lastName: string;
@@ -1261,7 +1190,6 @@ interface ActiveOutlet {
1261
1190
  taxId: string;
1262
1191
  postCode?: string;
1263
1192
  name?: string;
1264
- timeZone?: string;
1265
1193
  stripe?: {
1266
1194
  locationId: string;
1267
1195
  };
@@ -1392,6 +1320,22 @@ interface PosDataItem {
1392
1320
  };
1393
1321
  }
1394
1322
 
1323
+ interface Tax {
1324
+ id: string;
1325
+ name: string;
1326
+ percentage: number;
1327
+ amount: number;
1328
+ taxableAmount?: number;
1329
+ taxTableName: string;
1330
+ taxTableId: string;
1331
+ compounding?: boolean;
1332
+ priority?: number;
1333
+ }
1334
+ interface Tip {
1335
+ amount: number;
1336
+ percentage: number;
1337
+ }
1338
+
1395
1339
  interface DiscountDetail {
1396
1340
  percentage: number;
1397
1341
  amount: number;
@@ -1542,7 +1486,6 @@ interface RefundedLineItem {
1542
1486
  interface RefundItem {
1543
1487
  lineItems: RefundedLineItem[];
1544
1488
  customSales: RefundedCustomSale[];
1545
- reservations?: OrderReservation[];
1546
1489
  cartFees: CartFeeItem[];
1547
1490
  tips: RefundedTipPayment[];
1548
1491
  refundedBy: string;
@@ -1555,9 +1498,6 @@ interface RefundItem {
1555
1498
  minorUnits?: number;
1556
1499
  }
1557
1500
 
1558
- type ActiveOrderReservation = Omit<OrderReservation, 'taxes'> & {
1559
- taxes?: Tax[];
1560
- };
1561
1501
  type ActiveOrder = Enrich<Order, {
1562
1502
  _id: string;
1563
1503
  id?: string;
@@ -1581,7 +1521,6 @@ type ActiveOrder = Enrich<Order, {
1581
1521
  shipping: Address | null;
1582
1522
  lineItems: LineItem[];
1583
1523
  customSales: CustomSale[];
1584
- reservations?: ActiveOrderReservation[];
1585
1524
  nonRevenueItems?: NonRevenueItem[];
1586
1525
  refund?: RefundItem[];
1587
1526
  signature?: string | null;
@@ -1694,13 +1633,6 @@ interface ActiveProduct {
1694
1633
  productType?: ProductType;
1695
1634
  }
1696
1635
 
1697
- interface CartReservation extends OrderReservation {
1698
- bookingId: string;
1699
- expiresAt?: string;
1700
- discounts?: Discount[];
1701
- fees?: CustomFee[];
1702
- }
1703
-
1704
1636
  interface ActiveCustomSales {
1705
1637
  id: string;
1706
1638
  name: string;
@@ -1725,13 +1657,11 @@ interface ActiveCart {
1725
1657
  taxes?: Tax[];
1726
1658
  total: number;
1727
1659
  subtotal: number;
1728
- itemCount?: number;
1729
1660
  discount?: Discount;
1730
1661
  customFee?: CustomFee[];
1731
1662
  products: ActiveProduct[];
1732
1663
  customSales?: ActiveCustomSales[];
1733
1664
  nonRevenueItems?: NonRevenueItem[];
1734
- reservations?: CartReservation[];
1735
1665
  remainingBalance?: number;
1736
1666
  amountToBeCharged: number;
1737
1667
  customer?: Partial<ActiveCustomer | null> | null;
@@ -1813,7 +1743,6 @@ interface FullProduct {
1813
1743
  supplier?: string;
1814
1744
  sku?: string;
1815
1745
  productType: ProductType;
1816
- bookingRulesId?: string;
1817
1746
  variants: ProductVariant[];
1818
1747
  modifiers?: ResolvedModifier[];
1819
1748
  minPrice?: number;
@@ -1828,61 +1757,6 @@ interface FullProduct {
1828
1757
  }
1829
1758
  type ActiveFullProduct = FullProduct;
1830
1759
 
1831
- interface BookingSlotResource {
1832
- resourceId: string;
1833
- name: string;
1834
- capacity: number;
1835
- booked: number;
1836
- free: number;
1837
- }
1838
- interface BookingSlot {
1839
- startAt: string;
1840
- endAt: string;
1841
- bufferEndAt: string;
1842
- canStart: boolean;
1843
- capacity: number;
1844
- booked: number;
1845
- free: number;
1846
- resources: BookingSlotResource[];
1847
- }
1848
- interface BookingAvailability {
1849
- productId: string;
1850
- bookingRulesId: string;
1851
- bookingType: BookingType;
1852
- ratePeriod: BookingRatePeriod;
1853
- minimumToRun?: number;
1854
- minStay?: number;
1855
- maxStay?: number;
1856
- bookableUntil?: string;
1857
- beyondWindow?: boolean;
1858
- slots: BookingSlot[];
1859
- }
1860
- interface BookingResource {
1861
- id: string;
1862
- name: string;
1863
- kind: BookingResourceKind;
1864
- tag?: string;
1865
- }
1866
- interface Booking {
1867
- id: string;
1868
- productId: string;
1869
- resourceId: string;
1870
- variantId?: string;
1871
- startAt: string;
1872
- endAt: string;
1873
- bufferEndAt: string;
1874
- status: ReservationStatus;
1875
- expiresAt?: string;
1876
- orderId?: string;
1877
- customerId?: string;
1878
- productName?: string;
1879
- resourceName?: string;
1880
- customerName?: string;
1881
- outletId?: string;
1882
- outletName?: string;
1883
- timeZone?: string;
1884
- }
1885
-
1886
1760
  interface ActiveSession {
1887
1761
  id: string;
1888
1762
  stationId: string;
@@ -2401,4 +2275,4 @@ interface PubsubEventMessage {
2401
2275
  }
2402
2276
  type ServiceChannelMessage = PosBrainReadyMessage | HostHelloMessage | ServiceInitMessage | BootstrapMessage | TokenRefreshMessage | SelectionMessage | HostShutdownMessage | ReaderCapabilitiesMessage | RuntimeReadyMessage | HostNavigateMessage | SyncProgressMessage | DeviceOpRequestMessage | DeviceOpResponseMessage | PubsubTopicsRequestMessage | PubsubTopicsListMessage | PubsubSubscribeMessage | PubsubEventMessage;
2403
2277
 
2404
- 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 CartLineModifier, 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 ModifierChoiceSelection, type ModifierSelection, type ModifierSelectionType, type NonRevenueItem, type Note, type Order, type OrderCartDiscount, type OrderCartFee, type OrderCustomSale, type OrderCustomSaleDiscount, type OrderCustomSaleFee, type OrderLineItem, type OrderLineItemDiscount, type OrderLineItemFee, type OrderLineItemModifier, 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 ProdModifierBreakdown, type Product, type ProductTaxDetails, type ProductVariant, type PubsubEventMessage, type PubsubSubscribeMessage, type PubsubTopicsListMessage, type PubsubTopicsRequestMessage, type Reader, type ReaderAvailability, 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 ResolvedModifier, type ResolvedModifierChoice, 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 TimeClockEntry, type TimeClockEntryStatus, 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 };
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 CartLineModifier, 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 ModifierChoiceSelection, type ModifierSelection, type ModifierSelectionType, type NonRevenueItem, type Note, type Order, type OrderCartDiscount, type OrderCartFee, type OrderCustomSale, type OrderCustomSaleDiscount, type OrderCustomSaleFee, type OrderLineItem, type OrderLineItemDiscount, type OrderLineItemFee, type OrderLineItemModifier, type OrderNote, type OrderPaymentMethod, type OrderPosData, type OrderRefund, type OrderRefundSummary, 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 ProdModifierBreakdown, type Product, type ProductTaxDetails, type ProductVariant, type PubsubEventMessage, type PubsubSubscribeMessage, type PubsubTopicsListMessage, type PubsubTopicsRequestMessage, type Reader, type ReaderAvailability, 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 ResolvedModifier, type ResolvedModifierChoice, 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 TimeClockEntry, type TimeClockEntryStatus, 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 };
@@ -458,8 +458,7 @@ declare enum NonRevenueItemType {
458
458
 
459
459
  declare enum ProductType {
460
460
  SIMPLE = "simple",
461
- VARIABLE = "variable",
462
- BOOKING = "booking"
461
+ VARIABLE = "variable"
463
462
  }
464
463
  declare enum ProductStatus {
465
464
  ACTIVE = "active",
@@ -473,34 +472,6 @@ declare enum PaymentProcessor {
473
472
  EXTERNAL = "external"
474
473
  }
475
474
 
476
- declare enum BookingType {
477
- RENTAL = "rental",
478
- APPOINTMENT = "appointment",
479
- OVERNIGHT = "overnight",
480
- GROUP = "group"
481
- }
482
- declare enum BookingRatePeriod {
483
- SLOT = "slot",
484
- DAY = "day",
485
- NIGHT = "night",
486
- WEEK = "week",
487
- MONTH = "month"
488
- }
489
- declare enum BookingResourceKind {
490
- ASSET = "asset",
491
- ROOM = "room",
492
- PROPERTY = "property",
493
- SPACE = "space",
494
- STAFF = "staff",
495
- TABLE = "table"
496
- }
497
- declare enum ReservationStatus {
498
- HELD = "held",
499
- CONFIRMED = "confirmed",
500
- CANCELLED = "cancelled",
501
- EXPIRED = "expired"
502
- }
503
-
504
475
  interface RefundLineItem {
505
476
  taxes?: OrderTax[];
506
477
  discount?: RefundDiscount;
@@ -607,31 +578,6 @@ interface TransactionPaymentData {
607
578
  chargeId?: string;
608
579
  }
609
580
 
610
- interface OrderReservation {
611
- internalId: string;
612
- bookingId?: string;
613
- productId: string;
614
- variantId?: string | null;
615
- resourceId: string;
616
- name: string;
617
- resourceName?: string;
618
- price: number;
619
- quantity?: number;
620
- fulfilledQuantity?: number;
621
- returnedQuantity?: number;
622
- taxes?: OrderTax[];
623
- discount?: OrderLineItemDiscount;
624
- fee?: OrderLineItemFee;
625
- totalTax?: number;
626
- total: number;
627
- taxTableId?: string;
628
- startAt: string;
629
- endAt: string;
630
- bufferEndAt: string;
631
- override?: boolean;
632
- overriddenBy?: string | null;
633
- }
634
-
635
581
  interface Attribute extends BaseEntity {
636
582
  optionName: string;
637
583
  sortingOrder: number;
@@ -847,7 +793,6 @@ interface Order extends BaseEntity {
847
793
  lineItems: Partial<OrderLineItem>[];
848
794
  customSales?: OrderCustomSale[];
849
795
  nonRevenueItems?: NonRevenueItem$1[];
850
- reservations?: OrderReservation[];
851
796
  refund?: OrderRefund[];
852
797
  minorUnits?: number;
853
798
  }
@@ -1184,22 +1129,6 @@ interface Variant extends BaseEntity {
1184
1129
  stockVariantId?: string;
1185
1130
  }
1186
1131
 
1187
- interface Tax {
1188
- id: string;
1189
- name: string;
1190
- percentage: number;
1191
- amount: number;
1192
- taxableAmount?: number;
1193
- taxTableName: string;
1194
- taxTableId: string;
1195
- compounding?: boolean;
1196
- priority?: number;
1197
- }
1198
- interface Tip {
1199
- amount: number;
1200
- percentage: number;
1201
- }
1202
-
1203
1132
  interface Address {
1204
1133
  firstName: string;
1205
1134
  lastName: string;
@@ -1261,7 +1190,6 @@ interface ActiveOutlet {
1261
1190
  taxId: string;
1262
1191
  postCode?: string;
1263
1192
  name?: string;
1264
- timeZone?: string;
1265
1193
  stripe?: {
1266
1194
  locationId: string;
1267
1195
  };
@@ -1392,6 +1320,22 @@ interface PosDataItem {
1392
1320
  };
1393
1321
  }
1394
1322
 
1323
+ interface Tax {
1324
+ id: string;
1325
+ name: string;
1326
+ percentage: number;
1327
+ amount: number;
1328
+ taxableAmount?: number;
1329
+ taxTableName: string;
1330
+ taxTableId: string;
1331
+ compounding?: boolean;
1332
+ priority?: number;
1333
+ }
1334
+ interface Tip {
1335
+ amount: number;
1336
+ percentage: number;
1337
+ }
1338
+
1395
1339
  interface DiscountDetail {
1396
1340
  percentage: number;
1397
1341
  amount: number;
@@ -1542,7 +1486,6 @@ interface RefundedLineItem {
1542
1486
  interface RefundItem {
1543
1487
  lineItems: RefundedLineItem[];
1544
1488
  customSales: RefundedCustomSale[];
1545
- reservations?: OrderReservation[];
1546
1489
  cartFees: CartFeeItem[];
1547
1490
  tips: RefundedTipPayment[];
1548
1491
  refundedBy: string;
@@ -1555,9 +1498,6 @@ interface RefundItem {
1555
1498
  minorUnits?: number;
1556
1499
  }
1557
1500
 
1558
- type ActiveOrderReservation = Omit<OrderReservation, 'taxes'> & {
1559
- taxes?: Tax[];
1560
- };
1561
1501
  type ActiveOrder = Enrich<Order, {
1562
1502
  _id: string;
1563
1503
  id?: string;
@@ -1581,7 +1521,6 @@ type ActiveOrder = Enrich<Order, {
1581
1521
  shipping: Address | null;
1582
1522
  lineItems: LineItem[];
1583
1523
  customSales: CustomSale[];
1584
- reservations?: ActiveOrderReservation[];
1585
1524
  nonRevenueItems?: NonRevenueItem[];
1586
1525
  refund?: RefundItem[];
1587
1526
  signature?: string | null;
@@ -1694,13 +1633,6 @@ interface ActiveProduct {
1694
1633
  productType?: ProductType;
1695
1634
  }
1696
1635
 
1697
- interface CartReservation extends OrderReservation {
1698
- bookingId: string;
1699
- expiresAt?: string;
1700
- discounts?: Discount[];
1701
- fees?: CustomFee[];
1702
- }
1703
-
1704
1636
  interface ActiveCustomSales {
1705
1637
  id: string;
1706
1638
  name: string;
@@ -1725,13 +1657,11 @@ interface ActiveCart {
1725
1657
  taxes?: Tax[];
1726
1658
  total: number;
1727
1659
  subtotal: number;
1728
- itemCount?: number;
1729
1660
  discount?: Discount;
1730
1661
  customFee?: CustomFee[];
1731
1662
  products: ActiveProduct[];
1732
1663
  customSales?: ActiveCustomSales[];
1733
1664
  nonRevenueItems?: NonRevenueItem[];
1734
- reservations?: CartReservation[];
1735
1665
  remainingBalance?: number;
1736
1666
  amountToBeCharged: number;
1737
1667
  customer?: Partial<ActiveCustomer | null> | null;
@@ -1813,7 +1743,6 @@ interface FullProduct {
1813
1743
  supplier?: string;
1814
1744
  sku?: string;
1815
1745
  productType: ProductType;
1816
- bookingRulesId?: string;
1817
1746
  variants: ProductVariant[];
1818
1747
  modifiers?: ResolvedModifier[];
1819
1748
  minPrice?: number;
@@ -1828,61 +1757,6 @@ interface FullProduct {
1828
1757
  }
1829
1758
  type ActiveFullProduct = FullProduct;
1830
1759
 
1831
- interface BookingSlotResource {
1832
- resourceId: string;
1833
- name: string;
1834
- capacity: number;
1835
- booked: number;
1836
- free: number;
1837
- }
1838
- interface BookingSlot {
1839
- startAt: string;
1840
- endAt: string;
1841
- bufferEndAt: string;
1842
- canStart: boolean;
1843
- capacity: number;
1844
- booked: number;
1845
- free: number;
1846
- resources: BookingSlotResource[];
1847
- }
1848
- interface BookingAvailability {
1849
- productId: string;
1850
- bookingRulesId: string;
1851
- bookingType: BookingType;
1852
- ratePeriod: BookingRatePeriod;
1853
- minimumToRun?: number;
1854
- minStay?: number;
1855
- maxStay?: number;
1856
- bookableUntil?: string;
1857
- beyondWindow?: boolean;
1858
- slots: BookingSlot[];
1859
- }
1860
- interface BookingResource {
1861
- id: string;
1862
- name: string;
1863
- kind: BookingResourceKind;
1864
- tag?: string;
1865
- }
1866
- interface Booking {
1867
- id: string;
1868
- productId: string;
1869
- resourceId: string;
1870
- variantId?: string;
1871
- startAt: string;
1872
- endAt: string;
1873
- bufferEndAt: string;
1874
- status: ReservationStatus;
1875
- expiresAt?: string;
1876
- orderId?: string;
1877
- customerId?: string;
1878
- productName?: string;
1879
- resourceName?: string;
1880
- customerName?: string;
1881
- outletId?: string;
1882
- outletName?: string;
1883
- timeZone?: string;
1884
- }
1885
-
1886
1760
  interface ActiveSession {
1887
1761
  id: string;
1888
1762
  stationId: string;
@@ -2401,4 +2275,4 @@ interface PubsubEventMessage {
2401
2275
  }
2402
2276
  type ServiceChannelMessage = PosBrainReadyMessage | HostHelloMessage | ServiceInitMessage | BootstrapMessage | TokenRefreshMessage | SelectionMessage | HostShutdownMessage | ReaderCapabilitiesMessage | RuntimeReadyMessage | HostNavigateMessage | SyncProgressMessage | DeviceOpRequestMessage | DeviceOpResponseMessage | PubsubTopicsRequestMessage | PubsubTopicsListMessage | PubsubSubscribeMessage | PubsubEventMessage;
2403
2277
 
2404
- 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 CartLineModifier, 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 ModifierChoiceSelection, type ModifierSelection, type ModifierSelectionType, type NonRevenueItem, type Note, type Order, type OrderCartDiscount, type OrderCartFee, type OrderCustomSale, type OrderCustomSaleDiscount, type OrderCustomSaleFee, type OrderLineItem, type OrderLineItemDiscount, type OrderLineItemFee, type OrderLineItemModifier, 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 ProdModifierBreakdown, type Product, type ProductTaxDetails, type ProductVariant, type PubsubEventMessage, type PubsubSubscribeMessage, type PubsubTopicsListMessage, type PubsubTopicsRequestMessage, type Reader, type ReaderAvailability, 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 ResolvedModifier, type ResolvedModifierChoice, 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 TimeClockEntry, type TimeClockEntryStatus, 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 };
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 CartLineModifier, 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 ModifierChoiceSelection, type ModifierSelection, type ModifierSelectionType, type NonRevenueItem, type Note, type Order, type OrderCartDiscount, type OrderCartFee, type OrderCustomSale, type OrderCustomSaleDiscount, type OrderCustomSaleFee, type OrderLineItem, type OrderLineItemDiscount, type OrderLineItemFee, type OrderLineItemModifier, type OrderNote, type OrderPaymentMethod, type OrderPosData, type OrderRefund, type OrderRefundSummary, 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 ProdModifierBreakdown, type Product, type ProductTaxDetails, type ProductVariant, type PubsubEventMessage, type PubsubSubscribeMessage, type PubsubTopicsListMessage, type PubsubTopicsRequestMessage, type Reader, type ReaderAvailability, 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 ResolvedModifier, type ResolvedModifierChoice, 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 TimeClockEntry, type TimeClockEntryStatus, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@final-commerce/common",
3
- "version": "2.4.0-staging.1",
3
+ "version": "2.4.1-staging2.1",
4
4
  "description": "Shared utilities, types, constants, and engineering governance configs for the Final Commerce platform.",
5
5
  "homepage": "https://github.com/Final-Commerce/common#readme",
6
6
  "bugs": {