@final-commerce/common 2.8.1-preprod.2 → 2.9.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 CHANGED
@@ -190,8 +190,7 @@ declare enum Platform {
190
190
  declare enum OrderPlatform {
191
191
  POS = "in-store",
192
192
  WOO_COMMERCE = "woo-commerce",
193
- PUBLIC_API = "public-api",
194
- ONLINE_STORE = "online-store"
193
+ PUBLIC_API = "public-api"
195
194
  }
196
195
  declare enum CustomerPlatform {
197
196
  POS = "in-store",
@@ -344,6 +343,15 @@ declare enum InvoiceStatus {
344
343
  PENDING = "pending",
345
344
  EXPIRED = "expired"
346
345
  }
346
+ declare enum HttpMethod {
347
+ GET = "GET",
348
+ POST = "POST",
349
+ PUT = "PUT",
350
+ PATCH = "PATCH",
351
+ DELETE = "DELETE",
352
+ HEAD = "HEAD",
353
+ OPTIONS = "OPTIONS"
354
+ }
347
355
 
348
356
  declare enum StripeCurrencyCode {
349
357
  USD = "USD",
@@ -444,41 +452,22 @@ declare enum ResourceAvailabilityState {
444
452
  NO_HOURS_IN_RANGE = "noHoursInRange"
445
453
  }
446
454
 
447
- declare enum ShippingZoneKind {
448
- COUNTRY = "country",
449
- PROVINCE = "province",
450
- CITY = "city",
451
- EVERYWHERE = "everywhere"
452
- }
453
- declare enum ShippingOptionType {
454
- SHIP = "ship",
455
- PICKUP = "pickup"
456
- }
457
- declare enum ShippingRateType {
458
- FLAT = "flat"
459
- }
460
- declare enum ShippingChannel {
461
- WEB = "web",
462
- POS = "pos"
463
- }
464
- declare enum ShippingNoOptionReason {
465
- INCOMPLETE = "INCOMPLETE",
466
- ADDRESS_MISMATCH = "ADDRESS_MISMATCH",
467
- NO_COVERAGE = "NO_COVERAGE",
468
- BLOCKED = "BLOCKED",
469
- NO_OPTION = "NO_OPTION"
470
- }
471
- declare enum ShippingZoneError {
472
- NO_PLACES = "NO_PLACES",
473
- INVALID_PLACE = "INVALID_PLACE",
474
- DUPLICATE_PLACE = "DUPLICATE_PLACE",
475
- NO_WEBSITE_OPTION = "NO_WEBSITE_OPTION",
476
- INVALID_PRICE = "INVALID_PRICE",
477
- INVALID_DAYS = "INVALID_DAYS",
478
- INVALID_TIERS = "INVALID_TIERS",
479
- NO_CHANNEL = "NO_CHANNEL",
480
- PICKUP_WITHOUT_STORE = "PICKUP_WITHOUT_STORE",
481
- MISSING_NAME = "MISSING_NAME"
455
+ declare enum SalesLineAction {
456
+ SALE = "sale",
457
+ REFUND = "refund"
458
+ }
459
+ declare enum SalesLineSourceArray {
460
+ LINE_ITEMS = "lineItems",
461
+ RESERVATIONS = "reservations",
462
+ CUSTOM_SALES = "customSales"
463
+ }
464
+ declare enum ProductSalesChartStep {
465
+ DAY = "day",
466
+ MONTH = "month"
467
+ }
468
+ declare enum ProductSalesReportCompare {
469
+ PREVIOUS = "previous",
470
+ YEAR = "year"
482
471
  }
483
472
 
484
473
  interface CurrencyConfig {
@@ -1014,46 +1003,6 @@ declare function compositeModifierMismatches(lineItems: readonly {
1014
1003
  }[]): string[];
1015
1004
  declare function compositeReservationMismatches(order: CompositeReservationOrder): string[];
1016
1005
 
1017
- type IdLike = string | {
1018
- toString(): string;
1019
- };
1020
- interface StockLineComponent {
1021
- productId: IdLike;
1022
- variantId: IdLike;
1023
- quantity: number;
1024
- stockQuantity?: number | null;
1025
- unitId?: IdLike | null;
1026
- stockVariantId?: IdLike | null;
1027
- }
1028
- interface StockLine {
1029
- internalId?: string | null;
1030
- productId?: IdLike | null;
1031
- variantId?: IdLike | null;
1032
- name?: string | null;
1033
- stockQuantity?: number | null;
1034
- unitId?: IdLike | null;
1035
- stockVariantId?: IdLike | null;
1036
- components?: readonly StockLineComponent[] | null;
1037
- }
1038
- interface StockReservationLink {
1039
- lineItemInternalId?: string | null;
1040
- componentIndex?: number | null;
1041
- }
1042
- interface LineStockMove {
1043
- productId: string;
1044
- variantId: string;
1045
- fields: {
1046
- quantity: number;
1047
- stockQuantity?: number;
1048
- unitId?: string;
1049
- stockVariantId?: string;
1050
- compositeProductId?: string;
1051
- compositeName?: string;
1052
- };
1053
- componentIndex?: number;
1054
- }
1055
- declare function lineStockMoves(item: StockLine, quantity: number, reservations?: readonly StockReservationLink[]): LineStockMove[];
1056
-
1057
1006
  declare const SYSTEM_FAMILY_IDS: {
1058
1007
  readonly COUNT: "count";
1059
1008
  readonly WEIGHT: "weight-metric";
@@ -1737,112 +1686,6 @@ declare function planWindow({ rule, timeZone, presence, startAt, endAt, now, bus
1737
1686
  };
1738
1687
  declare const holdExpiresAt: (rule: BookingRulesInput, now: Date) => Date;
1739
1688
 
1740
- interface ShippingPlace {
1741
- country: string;
1742
- province?: string | null;
1743
- city?: string | null;
1744
- }
1745
- interface ShippingPriceTier {
1746
- from: number;
1747
- price: number;
1748
- }
1749
- interface ShippingOptionRule {
1750
- id: string;
1751
- type: ShippingOptionType | `${ShippingOptionType}`;
1752
- rate?: ShippingRateType | `${ShippingRateType}`;
1753
- name?: string | null;
1754
- price: number;
1755
- priceByTotal?: ShippingPriceTier[] | null;
1756
- freeOver?: number | null;
1757
- minDays?: number | null;
1758
- maxDays?: number | null;
1759
- channels: (ShippingChannel | `${ShippingChannel}`)[];
1760
- outletId?: string | null;
1761
- }
1762
- interface ShippingZoneRule {
1763
- id: string;
1764
- kind: ShippingZoneKind | `${ShippingZoneKind}`;
1765
- places: ShippingPlace[];
1766
- ships: boolean;
1767
- message?: string | null;
1768
- options: ShippingOptionRule[];
1769
- }
1770
- interface AddressLike {
1771
- country?: string | null;
1772
- state?: string | null;
1773
- province?: string | null;
1774
- city?: string | null;
1775
- postCode?: string | null;
1776
- postalCode?: string | null;
1777
- zip?: string | null;
1778
- }
1779
- interface NormalizedAddress {
1780
- country?: string;
1781
- province?: string;
1782
- cityKey?: string;
1783
- postCode?: string;
1784
- }
1785
- interface ShippingQuoteOption {
1786
- optionId: string;
1787
- zoneId: string;
1788
- type: ShippingOptionType | `${ShippingOptionType}`;
1789
- name: string | null;
1790
- amount: number;
1791
- amountToFree: number | null;
1792
- minDays: number | null;
1793
- maxDays: number | null;
1794
- outletId: string | null;
1795
- }
1796
- interface ShippingResolution {
1797
- zoneId: string | null;
1798
- options: ShippingQuoteOption[];
1799
- reason: ShippingNoOptionReason | null;
1800
- message: string | null;
1801
- shipsToCountries: string[];
1802
- }
1803
- interface ResolveShippingInput {
1804
- zones: ShippingZoneRule[];
1805
- address: AddressLike | null | undefined;
1806
- itemsTotal: number;
1807
- channel: ShippingChannel | `${ShippingChannel}`;
1808
- }
1809
-
1810
- declare function normalizeCountry(value: string | null | undefined): string | undefined;
1811
- interface CountryOption {
1812
- code: string;
1813
- name: string;
1814
- }
1815
- declare function listCountries(locale?: string): CountryOption[];
1816
-
1817
- interface Province {
1818
- code: string;
1819
- name: string;
1820
- nameFr: string;
1821
- postalLetters: string[];
1822
- aliases?: string[];
1823
- }
1824
- declare const CANADA_PROVINCES: readonly Province[];
1825
- declare function normalizeProvince(country: string | undefined, value: string | null | undefined): string | undefined;
1826
- declare function listProvinces(country: string): readonly Province[];
1827
- declare function provincesForPostCode(country: string | undefined, postCode: string | undefined): string[];
1828
-
1829
- declare const EVERYWHERE_KEY = "*";
1830
- declare function normalizeCityKey(value: string | null | undefined): string | undefined;
1831
- declare function normalizePostCode(value: string | null | undefined): string | undefined;
1832
- declare function normalizeAddress(address: AddressLike | null | undefined): NormalizedAddress;
1833
- declare function postCodeMatchesProvince(address: NormalizedAddress): boolean;
1834
- declare function placeKey(place: ShippingPlace): string | undefined;
1835
- declare function addressPlaceKeys(address: NormalizedAddress): string[];
1836
-
1837
- declare function resolveShipping({ zones, address, itemsTotal, channel }: ResolveShippingInput): ShippingResolution;
1838
- declare function priceForTotal(option: ShippingOptionRule, itemsTotal: number): number;
1839
-
1840
- interface ShippingZoneProblem {
1841
- code: ShippingZoneError;
1842
- optionId?: string;
1843
- }
1844
- declare function validateShippingZone(zone: ShippingZoneRule): ShippingZoneProblem[];
1845
-
1846
1689
  interface CurrencyRate {
1847
1690
  rate: number;
1848
1691
  country: string;
@@ -1854,25 +1697,6 @@ declare const EUFixedRates: Record<string, CurrencyRate>;
1854
1697
  declare const OtherFixedRates: Record<string, CurrencyRate>;
1855
1698
  declare const COUNTRY_CURRENCIES: Record<string, string>;
1856
1699
 
1857
- declare enum ProcessorType {
1858
- FINAL_PAY = "Terminal",
1859
- TAP_TO_PAY = "TapToPay",
1860
- MOTO = "Moto",
1861
- CLOUD = "Cloud",
1862
- BLUETOOTH = "Bluetooth",
1863
- CASH = "Cash",
1864
- CUSTOM_PAY = "CustomPay",
1865
- VENDARA = "Vendara",
1866
- REDEEM = "Redeem",
1867
- INTEGRATION = "Integration",
1868
- PAYMENT_LINK = "PaymentLink",
1869
- ONLINE_PAYMENT = "OnlinePayment",
1870
- EXTERNAL = "External"
1871
- }
1872
-
1873
- declare const PAYMENT_CHANNELS: readonly ["inPerson", "online"];
1874
- type PaymentChannel = (typeof PAYMENT_CHANNELS)[number];
1875
-
1876
1700
  declare const EXPENSE_PAYMENT_METHOD_PRESETS: readonly ["Cash", "Cheque", "Credit card", "Direct debit", "E-Transfer", "Wire transfer"];
1877
1701
  declare const EXPENSE_NAME_MAX_LENGTH = 40;
1878
1702
  declare const EXPENSE_DEFAULT_CATEGORIES: readonly [{
@@ -1911,4 +1735,4 @@ declare const EXPENSE_DEFAULT_CATEGORIES: readonly [{
1911
1735
  }];
1912
1736
  type ExpenseDefaultCategoryKey = (typeof EXPENSE_DEFAULT_CATEGORIES)[number]['key'];
1913
1737
 
1914
- export { ADYEN_JOB_TITLE_ASSOCIATION_TYPES, ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES, ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES, ADYEN_ROLLOUT_COUNTRY_CODES, ADYEN_STORE_STATE_PROVINCE_COUNTRIES, ADYEN_TAX_NUMBER_FORMATS, ADYEN_TAX_NUMBER_MIN_LENGTH, AFFIRM_COUNTRY_CODES, AFFIRM_PRICE_PLANS, type AddressLike, type AdyenBnplSettings, type AdyenBnplSkippedStore, type AdyenBnplUpdateResult, type AffirmPricePlan, type Amount, AttributeType, type AvailabilityInput, type AvailabilitySlot, type AvailableTransition, BNPL_METHOD_STATUS, BNPL_SKIP_REASON, type BnplMethodStatus, type BnplSkipReason, type BookingOccupancy, BookingRatePeriod, type BookingResourceInput, BookingResourceKind, BookingResourceStatus, BookingRulesError, type BookingRulesInput, BookingType, type BusyWindow, CANADA_PROVINCES, CONDITION_OPERATORS, COUNTRY_CURRENCIES, CURRENCY_CONFIG, type CartDiscountBucket, type CartFeeBucket, type CashDrawer, type CashRoundingTuple, type CategoryModifierRow, type CategoryRow, CompanyType, type CompositeAvailabilityRows, type CompositeMakeable, type CompositeMakeableRow, type CompositePriceItem, type CompositePricePart, type CompositeReservationOrder, type CompositeShelf, type CompositeStockPart, type Condition, type ConditionGroup, type ConditionOperator, type ConfigUpdatedPayload, type ConfigValidationError, type ConfigValidationResult, type ConfigValidationWarning, type CountryOption, type CrossAxisRequires, type CrossAxisRule, type CrossAxisTrigger, CurrencyCode, type CurrencyConfig, type CurrencyRate, CustomTableAvailability, CustomerPlatform, DEFAULT_CONFIG, DEFAULT_CROSS_AXIS_RULES, DEFAULT_DISPLAY_STATE_MAP, DEFAULT_HOLD_MINUTES, DEFAULT_RESOLVED_CONFIG, DEFAULT_UNIT_ID, type DeleteStateConfigFragmentParams, type DeleteStateConfigFragmentResponse, type DiscountsBreakdown, type DiscountsTuple, type DisplayStateResult, type DisplayStateRule, DualWriteStrategy, EUFixedRates, EUROPE, EVERYWHERE_KEY, EXPENSE_DEFAULT_CATEGORIES, EXPENSE_NAME_MAX_LENGTH, EXPENSE_PAYMENT_METHOD_PRESETS, type EndOfSessionReport, type ExpenseDefaultCategoryKey, ExtensionCategory, FINANCIAL_INVARIANTS, FULFILLMENT_STATES, type FailedCondition, type FeesBreakdown, FeesCustomBillingStatus, type FeesTuple, type FinancialInvariant, type FragmentParam, type FragmentValidationResult, type FulfillmentState, type FulfillmentStateDefinition, type FulfillmentTransitionPath, type GetAvailableTransitionsParams, type GetAvailableTransitionsResponse, type GetOrderDisplayStateParams, type GetOrderDisplayStateResponse, type GetOrderStateConfigParams, type GetOrderStateConfigResponse, type GetStateConfigFragmentParams, type GetStateConfigFragmentResponse, type GridSlot, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, type LineStockMove, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, type ModifierChoiceRow, type ModifierRow, type ModifiersBreakdown, type ModifiersTuple, NAFixedRates, NORTH_AMERICA, NonRevenueItemType, type NormalizedAddress, ORDER_STATE_ACTIONS, ORDER_STATE_EVENTS, ORDER_STATE_TOPIC, type OrderContext, type OrderLikeForContext, type OrderLikeForInCart, type OrderLikeForLegacyInference, type OrderLineItem, type OrderMutationData, type OrderPaymentMethod, OrderPlatform, type OrderRefund, type OrderReservationForContext, type OrderStateEventPayload, type OrderStateWritable, type OrderStatusDefinition, type OrderStatusValidationError, type OrderWriteStrategy, OtherFixedRates, OwnerType, PATH_MODES, PAYMENT_CHANNELS, PAYMENT_STATES, POS_VALID_INITIAL_STATES, type PathMode, type PaymentChannel, PaymentMethod, PaymentProcessor, type PaymentState, type PaymentStateDefinition, type PaymentTransitionPath, type PlanWindowInput, Platform, type PoolDrawing, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, ProcessorType, type ProductDiscountBucket, type ProductFeeBucket, ProductStatus, ProductType, type Province, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ReservationStatus, ResidualPaymentMethod, ResidualStatus, type ResolveInputs, type ResolveShippingInput, type ResolveTemplateResult, type ResourceAvailability, ResourceAvailabilityState, type ResourceInWindow, type ResourcePresenceRow, STATE_SCHEMA, STRIPE_SUPPORTED_COUNTRIES, SYSTEM_FAMILIES, SYSTEM_FAMILY_IDS, SYSTEM_UNITS, SYSTEM_UNIT_IDS, type SalesSummary, type SaveStateConfigFragmentParams, type SaveStateConfigFragmentResponse, type SettlementBreakdown, type SettlementBuckets, type SettlementCardSection, type SettlementCashSection, type SettlementCustomEntry, ShippingChannel, ShippingNoOptionReason, type ShippingOptionRule, ShippingOptionType, type ShippingPlace, type ShippingPriceTier, type ShippingQuoteOption, ShippingRateType, type ShippingResolution, ShippingZoneError, ShippingZoneKind, type ShippingZoneProblem, type ShippingZoneRule, type SplitPayment, type SplitPaymentPayment, type StaffSales, type StaffSalesEntry, type StateConfig, type StateConfigFragment, type StateDefinition, type StatePair, type StateSchema, type StateTransitionBlockedPayload, type StateTransitionCompletedPayload, StationStatus, type StockLine, type StockLineComponent, type StockReservationLink, type StoredStateConfig, StripeCurrencyCode, StripeStatus, type TaxBreakdown, type TaxBreakdownRateEntry, type TaxBreakdownSection, type TaxBreakdownSubtotal, type TaxesTuple, TimePeriod, type TipEntry, type TipsBreakdown, type TipsTuple, TopMetericsSort, type TransitionBlockedBy, type TransitionConditionSet, type TransitionOrderStateParams, type TransitionOrderStateResponse, type TransitionPath, type TransitionRequest, type TransitionResult, UserTypes, type WeeklyHours, addAmounts, addressPlaceKeys, adyenLegalEntityRequiresStateOrProvince, adyenRequiresJobTitle, adyenStoreRequiresStateOrProvince, adyenSupportsTaxNumberAbsent, adyenTaxNumberFormat, amountToString, ancestorChain, assertUnitSane, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildAvailability, buildGrid, buildOrderContext, buildPosPresetConfig, buildResolvedConfig, calculatePercentage, canTransition, cheapestCompositeItem, cheapestCompositePrice, compositeItemCost, compositeItemUnavailable, compositeMakeable, compositeModifierMismatches, compositeReservationMismatches, compositeVariantInStock, conditionSummary, convertFixedFeeToLocalCurrency, createAmount, crossAxisRuleApplies, deriveDisplayState, deriveFamilyCode, deriveUnitId, displayRuleMatchesPair, divideAmount, evaluateCondition, evaluateConditionSet, extendPrice, extendPriceFor, formatCurrency, formatInUnit, formatMinorUnitsToString, formatQuantity, fromBase, fromMinorUnits, generateMongoID, getAvailableTransitions, getCashAmountDue, getCountriesByRegion, getCurrencyConfig, getCurrentISODate, getFinancialInvariantViolations, getGoodsPortion, getLineSubtotal, getMinorUnitMultiplier, getMinorUnits, getPaymentLegTotal, getPricingRegionFromCountry, getSettlementTotal, getTotalCollected, hasInCartFlag, hasSellableChoice, holdExpiresAt, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isAffirmCountry, isAffirmPricePlan, isChoiceAvailableAtOutlet, isConditionOperator, isFulfillmentState, isInCart, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, lineStockMoves, listCountries, listProvinces, mapToLegacyStatus, maxPrecisionFor, mergeFragment, modifiersSellable, multiplyAmount, normalizeAddress, normalizeCityKey, normalizeCountry, normalizeMongoIdString, normalizePostCode, normalizeProvince, occupancyIn, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, placeKey, planWindow, poolDemand, poolOf, poolShortfall, poolStockAt, postCodeMatchesProvince, presentAt, priceForTotal, provincesForPostCode, removeFragment, resolveFamily, resolveModifiersForProduct, resolveShipping, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, shopDayKey, shopDayRange, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, validateOrderStatuses, validateShippingZone, violatesFinancialInvariant, windowEndsAt, withinPresence };
1738
+ export { ADYEN_JOB_TITLE_ASSOCIATION_TYPES, ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES, ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES, ADYEN_ROLLOUT_COUNTRY_CODES, ADYEN_STORE_STATE_PROVINCE_COUNTRIES, ADYEN_TAX_NUMBER_FORMATS, ADYEN_TAX_NUMBER_MIN_LENGTH, AFFIRM_COUNTRY_CODES, AFFIRM_PRICE_PLANS, type AdyenBnplSettings, type AdyenBnplSkippedStore, type AdyenBnplUpdateResult, type AffirmPricePlan, type Amount, AttributeType, type AvailabilityInput, type AvailabilitySlot, type AvailableTransition, BNPL_METHOD_STATUS, BNPL_SKIP_REASON, type BnplMethodStatus, type BnplSkipReason, type BookingOccupancy, BookingRatePeriod, type BookingResourceInput, BookingResourceKind, BookingResourceStatus, BookingRulesError, type BookingRulesInput, BookingType, type BusyWindow, CONDITION_OPERATORS, COUNTRY_CURRENCIES, CURRENCY_CONFIG, type CartDiscountBucket, type CartFeeBucket, type CashDrawer, type CashRoundingTuple, type CategoryModifierRow, type CategoryRow, CompanyType, type CompositeAvailabilityRows, type CompositeMakeable, type CompositeMakeableRow, type CompositePriceItem, type CompositePricePart, type CompositeReservationOrder, type CompositeShelf, type CompositeStockPart, type Condition, type ConditionGroup, type ConditionOperator, type ConfigUpdatedPayload, type ConfigValidationError, type ConfigValidationResult, type ConfigValidationWarning, type CrossAxisRequires, type CrossAxisRule, type CrossAxisTrigger, CurrencyCode, type CurrencyConfig, type CurrencyRate, CustomTableAvailability, CustomerPlatform, DEFAULT_CONFIG, DEFAULT_CROSS_AXIS_RULES, DEFAULT_DISPLAY_STATE_MAP, DEFAULT_HOLD_MINUTES, DEFAULT_RESOLVED_CONFIG, DEFAULT_UNIT_ID, type DeleteStateConfigFragmentParams, type DeleteStateConfigFragmentResponse, type DiscountsBreakdown, type DiscountsTuple, type DisplayStateResult, type DisplayStateRule, DualWriteStrategy, EUFixedRates, EUROPE, EXPENSE_DEFAULT_CATEGORIES, EXPENSE_NAME_MAX_LENGTH, EXPENSE_PAYMENT_METHOD_PRESETS, type EndOfSessionReport, type ExpenseDefaultCategoryKey, ExtensionCategory, FINANCIAL_INVARIANTS, FULFILLMENT_STATES, type FailedCondition, type FeesBreakdown, FeesCustomBillingStatus, type FeesTuple, type FinancialInvariant, type FragmentParam, type FragmentValidationResult, type FulfillmentState, type FulfillmentStateDefinition, type FulfillmentTransitionPath, type GetAvailableTransitionsParams, type GetAvailableTransitionsResponse, type GetOrderDisplayStateParams, type GetOrderDisplayStateResponse, type GetOrderStateConfigParams, type GetOrderStateConfigResponse, type GetStateConfigFragmentParams, type GetStateConfigFragmentResponse, type GridSlot, HttpMethod, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, type ModifierChoiceRow, type ModifierRow, type ModifiersBreakdown, type ModifiersTuple, NAFixedRates, NORTH_AMERICA, NonRevenueItemType, ORDER_STATE_ACTIONS, ORDER_STATE_EVENTS, ORDER_STATE_TOPIC, type OrderContext, type OrderLikeForContext, type OrderLikeForInCart, type OrderLikeForLegacyInference, type OrderLineItem, type OrderMutationData, type OrderPaymentMethod, OrderPlatform, type OrderRefund, type OrderReservationForContext, type OrderStateEventPayload, type OrderStateWritable, type OrderStatusDefinition, type OrderStatusValidationError, type OrderWriteStrategy, OtherFixedRates, OwnerType, PATH_MODES, PAYMENT_STATES, POS_VALID_INITIAL_STATES, type PathMode, PaymentMethod, PaymentProcessor, type PaymentState, type PaymentStateDefinition, type PaymentTransitionPath, type PlanWindowInput, Platform, type PoolDrawing, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, type ProductDiscountBucket, type ProductFeeBucket, ProductSalesChartStep, ProductSalesReportCompare, ProductStatus, ProductType, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ReservationStatus, ResidualPaymentMethod, ResidualStatus, type ResolveInputs, type ResolveTemplateResult, type ResourceAvailability, ResourceAvailabilityState, type ResourceInWindow, type ResourcePresenceRow, STATE_SCHEMA, STRIPE_SUPPORTED_COUNTRIES, SYSTEM_FAMILIES, SYSTEM_FAMILY_IDS, SYSTEM_UNITS, SYSTEM_UNIT_IDS, SalesLineAction, SalesLineSourceArray, type SalesSummary, type SaveStateConfigFragmentParams, type SaveStateConfigFragmentResponse, type SettlementBreakdown, type SettlementBuckets, type SettlementCardSection, type SettlementCashSection, type SettlementCustomEntry, type SplitPayment, type SplitPaymentPayment, type StaffSales, type StaffSalesEntry, type StateConfig, type StateConfigFragment, type StateDefinition, type StatePair, type StateSchema, type StateTransitionBlockedPayload, type StateTransitionCompletedPayload, StationStatus, type StoredStateConfig, StripeCurrencyCode, StripeStatus, type TaxBreakdown, type TaxBreakdownRateEntry, type TaxBreakdownSection, type TaxBreakdownSubtotal, type TaxesTuple, TimePeriod, type TipEntry, type TipsBreakdown, type TipsTuple, TopMetericsSort, type TransitionBlockedBy, type TransitionConditionSet, type TransitionOrderStateParams, type TransitionOrderStateResponse, type TransitionPath, type TransitionRequest, type TransitionResult, UserTypes, type WeeklyHours, addAmounts, adyenLegalEntityRequiresStateOrProvince, adyenRequiresJobTitle, adyenStoreRequiresStateOrProvince, adyenSupportsTaxNumberAbsent, adyenTaxNumberFormat, amountToString, ancestorChain, assertUnitSane, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildAvailability, buildGrid, buildOrderContext, buildPosPresetConfig, buildResolvedConfig, calculatePercentage, canTransition, cheapestCompositeItem, cheapestCompositePrice, compositeItemCost, compositeItemUnavailable, compositeMakeable, compositeModifierMismatches, compositeReservationMismatches, compositeVariantInStock, conditionSummary, convertFixedFeeToLocalCurrency, createAmount, crossAxisRuleApplies, deriveDisplayState, deriveFamilyCode, deriveUnitId, displayRuleMatchesPair, divideAmount, evaluateCondition, evaluateConditionSet, extendPrice, extendPriceFor, formatCurrency, formatInUnit, formatMinorUnitsToString, formatQuantity, fromBase, fromMinorUnits, generateMongoID, getAvailableTransitions, getCashAmountDue, getCountriesByRegion, getCurrencyConfig, getCurrentISODate, getFinancialInvariantViolations, getGoodsPortion, getLineSubtotal, getMinorUnitMultiplier, getMinorUnits, getPaymentLegTotal, getPricingRegionFromCountry, getSettlementTotal, getTotalCollected, hasInCartFlag, hasSellableChoice, holdExpiresAt, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isAffirmCountry, isAffirmPricePlan, isChoiceAvailableAtOutlet, isConditionOperator, isFulfillmentState, isInCart, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, mapToLegacyStatus, maxPrecisionFor, mergeFragment, modifiersSellable, multiplyAmount, normalizeMongoIdString, occupancyIn, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, planWindow, poolDemand, poolOf, poolShortfall, poolStockAt, presentAt, removeFragment, resolveFamily, resolveModifiersForProduct, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, shopDayKey, shopDayRange, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, validateOrderStatuses, violatesFinancialInvariant, windowEndsAt, withinPresence };
package/dist/index.d.ts CHANGED
@@ -190,8 +190,7 @@ declare enum Platform {
190
190
  declare enum OrderPlatform {
191
191
  POS = "in-store",
192
192
  WOO_COMMERCE = "woo-commerce",
193
- PUBLIC_API = "public-api",
194
- ONLINE_STORE = "online-store"
193
+ PUBLIC_API = "public-api"
195
194
  }
196
195
  declare enum CustomerPlatform {
197
196
  POS = "in-store",
@@ -344,6 +343,15 @@ declare enum InvoiceStatus {
344
343
  PENDING = "pending",
345
344
  EXPIRED = "expired"
346
345
  }
346
+ declare enum HttpMethod {
347
+ GET = "GET",
348
+ POST = "POST",
349
+ PUT = "PUT",
350
+ PATCH = "PATCH",
351
+ DELETE = "DELETE",
352
+ HEAD = "HEAD",
353
+ OPTIONS = "OPTIONS"
354
+ }
347
355
 
348
356
  declare enum StripeCurrencyCode {
349
357
  USD = "USD",
@@ -444,41 +452,22 @@ declare enum ResourceAvailabilityState {
444
452
  NO_HOURS_IN_RANGE = "noHoursInRange"
445
453
  }
446
454
 
447
- declare enum ShippingZoneKind {
448
- COUNTRY = "country",
449
- PROVINCE = "province",
450
- CITY = "city",
451
- EVERYWHERE = "everywhere"
452
- }
453
- declare enum ShippingOptionType {
454
- SHIP = "ship",
455
- PICKUP = "pickup"
456
- }
457
- declare enum ShippingRateType {
458
- FLAT = "flat"
459
- }
460
- declare enum ShippingChannel {
461
- WEB = "web",
462
- POS = "pos"
463
- }
464
- declare enum ShippingNoOptionReason {
465
- INCOMPLETE = "INCOMPLETE",
466
- ADDRESS_MISMATCH = "ADDRESS_MISMATCH",
467
- NO_COVERAGE = "NO_COVERAGE",
468
- BLOCKED = "BLOCKED",
469
- NO_OPTION = "NO_OPTION"
470
- }
471
- declare enum ShippingZoneError {
472
- NO_PLACES = "NO_PLACES",
473
- INVALID_PLACE = "INVALID_PLACE",
474
- DUPLICATE_PLACE = "DUPLICATE_PLACE",
475
- NO_WEBSITE_OPTION = "NO_WEBSITE_OPTION",
476
- INVALID_PRICE = "INVALID_PRICE",
477
- INVALID_DAYS = "INVALID_DAYS",
478
- INVALID_TIERS = "INVALID_TIERS",
479
- NO_CHANNEL = "NO_CHANNEL",
480
- PICKUP_WITHOUT_STORE = "PICKUP_WITHOUT_STORE",
481
- MISSING_NAME = "MISSING_NAME"
455
+ declare enum SalesLineAction {
456
+ SALE = "sale",
457
+ REFUND = "refund"
458
+ }
459
+ declare enum SalesLineSourceArray {
460
+ LINE_ITEMS = "lineItems",
461
+ RESERVATIONS = "reservations",
462
+ CUSTOM_SALES = "customSales"
463
+ }
464
+ declare enum ProductSalesChartStep {
465
+ DAY = "day",
466
+ MONTH = "month"
467
+ }
468
+ declare enum ProductSalesReportCompare {
469
+ PREVIOUS = "previous",
470
+ YEAR = "year"
482
471
  }
483
472
 
484
473
  interface CurrencyConfig {
@@ -1014,46 +1003,6 @@ declare function compositeModifierMismatches(lineItems: readonly {
1014
1003
  }[]): string[];
1015
1004
  declare function compositeReservationMismatches(order: CompositeReservationOrder): string[];
1016
1005
 
1017
- type IdLike = string | {
1018
- toString(): string;
1019
- };
1020
- interface StockLineComponent {
1021
- productId: IdLike;
1022
- variantId: IdLike;
1023
- quantity: number;
1024
- stockQuantity?: number | null;
1025
- unitId?: IdLike | null;
1026
- stockVariantId?: IdLike | null;
1027
- }
1028
- interface StockLine {
1029
- internalId?: string | null;
1030
- productId?: IdLike | null;
1031
- variantId?: IdLike | null;
1032
- name?: string | null;
1033
- stockQuantity?: number | null;
1034
- unitId?: IdLike | null;
1035
- stockVariantId?: IdLike | null;
1036
- components?: readonly StockLineComponent[] | null;
1037
- }
1038
- interface StockReservationLink {
1039
- lineItemInternalId?: string | null;
1040
- componentIndex?: number | null;
1041
- }
1042
- interface LineStockMove {
1043
- productId: string;
1044
- variantId: string;
1045
- fields: {
1046
- quantity: number;
1047
- stockQuantity?: number;
1048
- unitId?: string;
1049
- stockVariantId?: string;
1050
- compositeProductId?: string;
1051
- compositeName?: string;
1052
- };
1053
- componentIndex?: number;
1054
- }
1055
- declare function lineStockMoves(item: StockLine, quantity: number, reservations?: readonly StockReservationLink[]): LineStockMove[];
1056
-
1057
1006
  declare const SYSTEM_FAMILY_IDS: {
1058
1007
  readonly COUNT: "count";
1059
1008
  readonly WEIGHT: "weight-metric";
@@ -1737,112 +1686,6 @@ declare function planWindow({ rule, timeZone, presence, startAt, endAt, now, bus
1737
1686
  };
1738
1687
  declare const holdExpiresAt: (rule: BookingRulesInput, now: Date) => Date;
1739
1688
 
1740
- interface ShippingPlace {
1741
- country: string;
1742
- province?: string | null;
1743
- city?: string | null;
1744
- }
1745
- interface ShippingPriceTier {
1746
- from: number;
1747
- price: number;
1748
- }
1749
- interface ShippingOptionRule {
1750
- id: string;
1751
- type: ShippingOptionType | `${ShippingOptionType}`;
1752
- rate?: ShippingRateType | `${ShippingRateType}`;
1753
- name?: string | null;
1754
- price: number;
1755
- priceByTotal?: ShippingPriceTier[] | null;
1756
- freeOver?: number | null;
1757
- minDays?: number | null;
1758
- maxDays?: number | null;
1759
- channels: (ShippingChannel | `${ShippingChannel}`)[];
1760
- outletId?: string | null;
1761
- }
1762
- interface ShippingZoneRule {
1763
- id: string;
1764
- kind: ShippingZoneKind | `${ShippingZoneKind}`;
1765
- places: ShippingPlace[];
1766
- ships: boolean;
1767
- message?: string | null;
1768
- options: ShippingOptionRule[];
1769
- }
1770
- interface AddressLike {
1771
- country?: string | null;
1772
- state?: string | null;
1773
- province?: string | null;
1774
- city?: string | null;
1775
- postCode?: string | null;
1776
- postalCode?: string | null;
1777
- zip?: string | null;
1778
- }
1779
- interface NormalizedAddress {
1780
- country?: string;
1781
- province?: string;
1782
- cityKey?: string;
1783
- postCode?: string;
1784
- }
1785
- interface ShippingQuoteOption {
1786
- optionId: string;
1787
- zoneId: string;
1788
- type: ShippingOptionType | `${ShippingOptionType}`;
1789
- name: string | null;
1790
- amount: number;
1791
- amountToFree: number | null;
1792
- minDays: number | null;
1793
- maxDays: number | null;
1794
- outletId: string | null;
1795
- }
1796
- interface ShippingResolution {
1797
- zoneId: string | null;
1798
- options: ShippingQuoteOption[];
1799
- reason: ShippingNoOptionReason | null;
1800
- message: string | null;
1801
- shipsToCountries: string[];
1802
- }
1803
- interface ResolveShippingInput {
1804
- zones: ShippingZoneRule[];
1805
- address: AddressLike | null | undefined;
1806
- itemsTotal: number;
1807
- channel: ShippingChannel | `${ShippingChannel}`;
1808
- }
1809
-
1810
- declare function normalizeCountry(value: string | null | undefined): string | undefined;
1811
- interface CountryOption {
1812
- code: string;
1813
- name: string;
1814
- }
1815
- declare function listCountries(locale?: string): CountryOption[];
1816
-
1817
- interface Province {
1818
- code: string;
1819
- name: string;
1820
- nameFr: string;
1821
- postalLetters: string[];
1822
- aliases?: string[];
1823
- }
1824
- declare const CANADA_PROVINCES: readonly Province[];
1825
- declare function normalizeProvince(country: string | undefined, value: string | null | undefined): string | undefined;
1826
- declare function listProvinces(country: string): readonly Province[];
1827
- declare function provincesForPostCode(country: string | undefined, postCode: string | undefined): string[];
1828
-
1829
- declare const EVERYWHERE_KEY = "*";
1830
- declare function normalizeCityKey(value: string | null | undefined): string | undefined;
1831
- declare function normalizePostCode(value: string | null | undefined): string | undefined;
1832
- declare function normalizeAddress(address: AddressLike | null | undefined): NormalizedAddress;
1833
- declare function postCodeMatchesProvince(address: NormalizedAddress): boolean;
1834
- declare function placeKey(place: ShippingPlace): string | undefined;
1835
- declare function addressPlaceKeys(address: NormalizedAddress): string[];
1836
-
1837
- declare function resolveShipping({ zones, address, itemsTotal, channel }: ResolveShippingInput): ShippingResolution;
1838
- declare function priceForTotal(option: ShippingOptionRule, itemsTotal: number): number;
1839
-
1840
- interface ShippingZoneProblem {
1841
- code: ShippingZoneError;
1842
- optionId?: string;
1843
- }
1844
- declare function validateShippingZone(zone: ShippingZoneRule): ShippingZoneProblem[];
1845
-
1846
1689
  interface CurrencyRate {
1847
1690
  rate: number;
1848
1691
  country: string;
@@ -1854,25 +1697,6 @@ declare const EUFixedRates: Record<string, CurrencyRate>;
1854
1697
  declare const OtherFixedRates: Record<string, CurrencyRate>;
1855
1698
  declare const COUNTRY_CURRENCIES: Record<string, string>;
1856
1699
 
1857
- declare enum ProcessorType {
1858
- FINAL_PAY = "Terminal",
1859
- TAP_TO_PAY = "TapToPay",
1860
- MOTO = "Moto",
1861
- CLOUD = "Cloud",
1862
- BLUETOOTH = "Bluetooth",
1863
- CASH = "Cash",
1864
- CUSTOM_PAY = "CustomPay",
1865
- VENDARA = "Vendara",
1866
- REDEEM = "Redeem",
1867
- INTEGRATION = "Integration",
1868
- PAYMENT_LINK = "PaymentLink",
1869
- ONLINE_PAYMENT = "OnlinePayment",
1870
- EXTERNAL = "External"
1871
- }
1872
-
1873
- declare const PAYMENT_CHANNELS: readonly ["inPerson", "online"];
1874
- type PaymentChannel = (typeof PAYMENT_CHANNELS)[number];
1875
-
1876
1700
  declare const EXPENSE_PAYMENT_METHOD_PRESETS: readonly ["Cash", "Cheque", "Credit card", "Direct debit", "E-Transfer", "Wire transfer"];
1877
1701
  declare const EXPENSE_NAME_MAX_LENGTH = 40;
1878
1702
  declare const EXPENSE_DEFAULT_CATEGORIES: readonly [{
@@ -1911,4 +1735,4 @@ declare const EXPENSE_DEFAULT_CATEGORIES: readonly [{
1911
1735
  }];
1912
1736
  type ExpenseDefaultCategoryKey = (typeof EXPENSE_DEFAULT_CATEGORIES)[number]['key'];
1913
1737
 
1914
- export { ADYEN_JOB_TITLE_ASSOCIATION_TYPES, ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES, ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES, ADYEN_ROLLOUT_COUNTRY_CODES, ADYEN_STORE_STATE_PROVINCE_COUNTRIES, ADYEN_TAX_NUMBER_FORMATS, ADYEN_TAX_NUMBER_MIN_LENGTH, AFFIRM_COUNTRY_CODES, AFFIRM_PRICE_PLANS, type AddressLike, type AdyenBnplSettings, type AdyenBnplSkippedStore, type AdyenBnplUpdateResult, type AffirmPricePlan, type Amount, AttributeType, type AvailabilityInput, type AvailabilitySlot, type AvailableTransition, BNPL_METHOD_STATUS, BNPL_SKIP_REASON, type BnplMethodStatus, type BnplSkipReason, type BookingOccupancy, BookingRatePeriod, type BookingResourceInput, BookingResourceKind, BookingResourceStatus, BookingRulesError, type BookingRulesInput, BookingType, type BusyWindow, CANADA_PROVINCES, CONDITION_OPERATORS, COUNTRY_CURRENCIES, CURRENCY_CONFIG, type CartDiscountBucket, type CartFeeBucket, type CashDrawer, type CashRoundingTuple, type CategoryModifierRow, type CategoryRow, CompanyType, type CompositeAvailabilityRows, type CompositeMakeable, type CompositeMakeableRow, type CompositePriceItem, type CompositePricePart, type CompositeReservationOrder, type CompositeShelf, type CompositeStockPart, type Condition, type ConditionGroup, type ConditionOperator, type ConfigUpdatedPayload, type ConfigValidationError, type ConfigValidationResult, type ConfigValidationWarning, type CountryOption, type CrossAxisRequires, type CrossAxisRule, type CrossAxisTrigger, CurrencyCode, type CurrencyConfig, type CurrencyRate, CustomTableAvailability, CustomerPlatform, DEFAULT_CONFIG, DEFAULT_CROSS_AXIS_RULES, DEFAULT_DISPLAY_STATE_MAP, DEFAULT_HOLD_MINUTES, DEFAULT_RESOLVED_CONFIG, DEFAULT_UNIT_ID, type DeleteStateConfigFragmentParams, type DeleteStateConfigFragmentResponse, type DiscountsBreakdown, type DiscountsTuple, type DisplayStateResult, type DisplayStateRule, DualWriteStrategy, EUFixedRates, EUROPE, EVERYWHERE_KEY, EXPENSE_DEFAULT_CATEGORIES, EXPENSE_NAME_MAX_LENGTH, EXPENSE_PAYMENT_METHOD_PRESETS, type EndOfSessionReport, type ExpenseDefaultCategoryKey, ExtensionCategory, FINANCIAL_INVARIANTS, FULFILLMENT_STATES, type FailedCondition, type FeesBreakdown, FeesCustomBillingStatus, type FeesTuple, type FinancialInvariant, type FragmentParam, type FragmentValidationResult, type FulfillmentState, type FulfillmentStateDefinition, type FulfillmentTransitionPath, type GetAvailableTransitionsParams, type GetAvailableTransitionsResponse, type GetOrderDisplayStateParams, type GetOrderDisplayStateResponse, type GetOrderStateConfigParams, type GetOrderStateConfigResponse, type GetStateConfigFragmentParams, type GetStateConfigFragmentResponse, type GridSlot, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, type LineStockMove, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, type ModifierChoiceRow, type ModifierRow, type ModifiersBreakdown, type ModifiersTuple, NAFixedRates, NORTH_AMERICA, NonRevenueItemType, type NormalizedAddress, ORDER_STATE_ACTIONS, ORDER_STATE_EVENTS, ORDER_STATE_TOPIC, type OrderContext, type OrderLikeForContext, type OrderLikeForInCart, type OrderLikeForLegacyInference, type OrderLineItem, type OrderMutationData, type OrderPaymentMethod, OrderPlatform, type OrderRefund, type OrderReservationForContext, type OrderStateEventPayload, type OrderStateWritable, type OrderStatusDefinition, type OrderStatusValidationError, type OrderWriteStrategy, OtherFixedRates, OwnerType, PATH_MODES, PAYMENT_CHANNELS, PAYMENT_STATES, POS_VALID_INITIAL_STATES, type PathMode, type PaymentChannel, PaymentMethod, PaymentProcessor, type PaymentState, type PaymentStateDefinition, type PaymentTransitionPath, type PlanWindowInput, Platform, type PoolDrawing, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, ProcessorType, type ProductDiscountBucket, type ProductFeeBucket, ProductStatus, ProductType, type Province, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ReservationStatus, ResidualPaymentMethod, ResidualStatus, type ResolveInputs, type ResolveShippingInput, type ResolveTemplateResult, type ResourceAvailability, ResourceAvailabilityState, type ResourceInWindow, type ResourcePresenceRow, STATE_SCHEMA, STRIPE_SUPPORTED_COUNTRIES, SYSTEM_FAMILIES, SYSTEM_FAMILY_IDS, SYSTEM_UNITS, SYSTEM_UNIT_IDS, type SalesSummary, type SaveStateConfigFragmentParams, type SaveStateConfigFragmentResponse, type SettlementBreakdown, type SettlementBuckets, type SettlementCardSection, type SettlementCashSection, type SettlementCustomEntry, ShippingChannel, ShippingNoOptionReason, type ShippingOptionRule, ShippingOptionType, type ShippingPlace, type ShippingPriceTier, type ShippingQuoteOption, ShippingRateType, type ShippingResolution, ShippingZoneError, ShippingZoneKind, type ShippingZoneProblem, type ShippingZoneRule, type SplitPayment, type SplitPaymentPayment, type StaffSales, type StaffSalesEntry, type StateConfig, type StateConfigFragment, type StateDefinition, type StatePair, type StateSchema, type StateTransitionBlockedPayload, type StateTransitionCompletedPayload, StationStatus, type StockLine, type StockLineComponent, type StockReservationLink, type StoredStateConfig, StripeCurrencyCode, StripeStatus, type TaxBreakdown, type TaxBreakdownRateEntry, type TaxBreakdownSection, type TaxBreakdownSubtotal, type TaxesTuple, TimePeriod, type TipEntry, type TipsBreakdown, type TipsTuple, TopMetericsSort, type TransitionBlockedBy, type TransitionConditionSet, type TransitionOrderStateParams, type TransitionOrderStateResponse, type TransitionPath, type TransitionRequest, type TransitionResult, UserTypes, type WeeklyHours, addAmounts, addressPlaceKeys, adyenLegalEntityRequiresStateOrProvince, adyenRequiresJobTitle, adyenStoreRequiresStateOrProvince, adyenSupportsTaxNumberAbsent, adyenTaxNumberFormat, amountToString, ancestorChain, assertUnitSane, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildAvailability, buildGrid, buildOrderContext, buildPosPresetConfig, buildResolvedConfig, calculatePercentage, canTransition, cheapestCompositeItem, cheapestCompositePrice, compositeItemCost, compositeItemUnavailable, compositeMakeable, compositeModifierMismatches, compositeReservationMismatches, compositeVariantInStock, conditionSummary, convertFixedFeeToLocalCurrency, createAmount, crossAxisRuleApplies, deriveDisplayState, deriveFamilyCode, deriveUnitId, displayRuleMatchesPair, divideAmount, evaluateCondition, evaluateConditionSet, extendPrice, extendPriceFor, formatCurrency, formatInUnit, formatMinorUnitsToString, formatQuantity, fromBase, fromMinorUnits, generateMongoID, getAvailableTransitions, getCashAmountDue, getCountriesByRegion, getCurrencyConfig, getCurrentISODate, getFinancialInvariantViolations, getGoodsPortion, getLineSubtotal, getMinorUnitMultiplier, getMinorUnits, getPaymentLegTotal, getPricingRegionFromCountry, getSettlementTotal, getTotalCollected, hasInCartFlag, hasSellableChoice, holdExpiresAt, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isAffirmCountry, isAffirmPricePlan, isChoiceAvailableAtOutlet, isConditionOperator, isFulfillmentState, isInCart, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, lineStockMoves, listCountries, listProvinces, mapToLegacyStatus, maxPrecisionFor, mergeFragment, modifiersSellable, multiplyAmount, normalizeAddress, normalizeCityKey, normalizeCountry, normalizeMongoIdString, normalizePostCode, normalizeProvince, occupancyIn, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, placeKey, planWindow, poolDemand, poolOf, poolShortfall, poolStockAt, postCodeMatchesProvince, presentAt, priceForTotal, provincesForPostCode, removeFragment, resolveFamily, resolveModifiersForProduct, resolveShipping, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, shopDayKey, shopDayRange, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, validateOrderStatuses, validateShippingZone, violatesFinancialInvariant, windowEndsAt, withinPresence };
1738
+ export { ADYEN_JOB_TITLE_ASSOCIATION_TYPES, ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES, ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES, ADYEN_ROLLOUT_COUNTRY_CODES, ADYEN_STORE_STATE_PROVINCE_COUNTRIES, ADYEN_TAX_NUMBER_FORMATS, ADYEN_TAX_NUMBER_MIN_LENGTH, AFFIRM_COUNTRY_CODES, AFFIRM_PRICE_PLANS, type AdyenBnplSettings, type AdyenBnplSkippedStore, type AdyenBnplUpdateResult, type AffirmPricePlan, type Amount, AttributeType, type AvailabilityInput, type AvailabilitySlot, type AvailableTransition, BNPL_METHOD_STATUS, BNPL_SKIP_REASON, type BnplMethodStatus, type BnplSkipReason, type BookingOccupancy, BookingRatePeriod, type BookingResourceInput, BookingResourceKind, BookingResourceStatus, BookingRulesError, type BookingRulesInput, BookingType, type BusyWindow, CONDITION_OPERATORS, COUNTRY_CURRENCIES, CURRENCY_CONFIG, type CartDiscountBucket, type CartFeeBucket, type CashDrawer, type CashRoundingTuple, type CategoryModifierRow, type CategoryRow, CompanyType, type CompositeAvailabilityRows, type CompositeMakeable, type CompositeMakeableRow, type CompositePriceItem, type CompositePricePart, type CompositeReservationOrder, type CompositeShelf, type CompositeStockPart, type Condition, type ConditionGroup, type ConditionOperator, type ConfigUpdatedPayload, type ConfigValidationError, type ConfigValidationResult, type ConfigValidationWarning, type CrossAxisRequires, type CrossAxisRule, type CrossAxisTrigger, CurrencyCode, type CurrencyConfig, type CurrencyRate, CustomTableAvailability, CustomerPlatform, DEFAULT_CONFIG, DEFAULT_CROSS_AXIS_RULES, DEFAULT_DISPLAY_STATE_MAP, DEFAULT_HOLD_MINUTES, DEFAULT_RESOLVED_CONFIG, DEFAULT_UNIT_ID, type DeleteStateConfigFragmentParams, type DeleteStateConfigFragmentResponse, type DiscountsBreakdown, type DiscountsTuple, type DisplayStateResult, type DisplayStateRule, DualWriteStrategy, EUFixedRates, EUROPE, EXPENSE_DEFAULT_CATEGORIES, EXPENSE_NAME_MAX_LENGTH, EXPENSE_PAYMENT_METHOD_PRESETS, type EndOfSessionReport, type ExpenseDefaultCategoryKey, ExtensionCategory, FINANCIAL_INVARIANTS, FULFILLMENT_STATES, type FailedCondition, type FeesBreakdown, FeesCustomBillingStatus, type FeesTuple, type FinancialInvariant, type FragmentParam, type FragmentValidationResult, type FulfillmentState, type FulfillmentStateDefinition, type FulfillmentTransitionPath, type GetAvailableTransitionsParams, type GetAvailableTransitionsResponse, type GetOrderDisplayStateParams, type GetOrderDisplayStateResponse, type GetOrderStateConfigParams, type GetOrderStateConfigResponse, type GetStateConfigFragmentParams, type GetStateConfigFragmentResponse, type GridSlot, HttpMethod, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, type ModifierChoiceRow, type ModifierRow, type ModifiersBreakdown, type ModifiersTuple, NAFixedRates, NORTH_AMERICA, NonRevenueItemType, ORDER_STATE_ACTIONS, ORDER_STATE_EVENTS, ORDER_STATE_TOPIC, type OrderContext, type OrderLikeForContext, type OrderLikeForInCart, type OrderLikeForLegacyInference, type OrderLineItem, type OrderMutationData, type OrderPaymentMethod, OrderPlatform, type OrderRefund, type OrderReservationForContext, type OrderStateEventPayload, type OrderStateWritable, type OrderStatusDefinition, type OrderStatusValidationError, type OrderWriteStrategy, OtherFixedRates, OwnerType, PATH_MODES, PAYMENT_STATES, POS_VALID_INITIAL_STATES, type PathMode, PaymentMethod, PaymentProcessor, type PaymentState, type PaymentStateDefinition, type PaymentTransitionPath, type PlanWindowInput, Platform, type PoolDrawing, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, type ProductDiscountBucket, type ProductFeeBucket, ProductSalesChartStep, ProductSalesReportCompare, ProductStatus, ProductType, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ReservationStatus, ResidualPaymentMethod, ResidualStatus, type ResolveInputs, type ResolveTemplateResult, type ResourceAvailability, ResourceAvailabilityState, type ResourceInWindow, type ResourcePresenceRow, STATE_SCHEMA, STRIPE_SUPPORTED_COUNTRIES, SYSTEM_FAMILIES, SYSTEM_FAMILY_IDS, SYSTEM_UNITS, SYSTEM_UNIT_IDS, SalesLineAction, SalesLineSourceArray, type SalesSummary, type SaveStateConfigFragmentParams, type SaveStateConfigFragmentResponse, type SettlementBreakdown, type SettlementBuckets, type SettlementCardSection, type SettlementCashSection, type SettlementCustomEntry, type SplitPayment, type SplitPaymentPayment, type StaffSales, type StaffSalesEntry, type StateConfig, type StateConfigFragment, type StateDefinition, type StatePair, type StateSchema, type StateTransitionBlockedPayload, type StateTransitionCompletedPayload, StationStatus, type StoredStateConfig, StripeCurrencyCode, StripeStatus, type TaxBreakdown, type TaxBreakdownRateEntry, type TaxBreakdownSection, type TaxBreakdownSubtotal, type TaxesTuple, TimePeriod, type TipEntry, type TipsBreakdown, type TipsTuple, TopMetericsSort, type TransitionBlockedBy, type TransitionConditionSet, type TransitionOrderStateParams, type TransitionOrderStateResponse, type TransitionPath, type TransitionRequest, type TransitionResult, UserTypes, type WeeklyHours, addAmounts, adyenLegalEntityRequiresStateOrProvince, adyenRequiresJobTitle, adyenStoreRequiresStateOrProvince, adyenSupportsTaxNumberAbsent, adyenTaxNumberFormat, amountToString, ancestorChain, assertUnitSane, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildAvailability, buildGrid, buildOrderContext, buildPosPresetConfig, buildResolvedConfig, calculatePercentage, canTransition, cheapestCompositeItem, cheapestCompositePrice, compositeItemCost, compositeItemUnavailable, compositeMakeable, compositeModifierMismatches, compositeReservationMismatches, compositeVariantInStock, conditionSummary, convertFixedFeeToLocalCurrency, createAmount, crossAxisRuleApplies, deriveDisplayState, deriveFamilyCode, deriveUnitId, displayRuleMatchesPair, divideAmount, evaluateCondition, evaluateConditionSet, extendPrice, extendPriceFor, formatCurrency, formatInUnit, formatMinorUnitsToString, formatQuantity, fromBase, fromMinorUnits, generateMongoID, getAvailableTransitions, getCashAmountDue, getCountriesByRegion, getCurrencyConfig, getCurrentISODate, getFinancialInvariantViolations, getGoodsPortion, getLineSubtotal, getMinorUnitMultiplier, getMinorUnits, getPaymentLegTotal, getPricingRegionFromCountry, getSettlementTotal, getTotalCollected, hasInCartFlag, hasSellableChoice, holdExpiresAt, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isAffirmCountry, isAffirmPricePlan, isChoiceAvailableAtOutlet, isConditionOperator, isFulfillmentState, isInCart, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, mapToLegacyStatus, maxPrecisionFor, mergeFragment, modifiersSellable, multiplyAmount, normalizeMongoIdString, occupancyIn, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, planWindow, poolDemand, poolOf, poolShortfall, poolStockAt, presentAt, removeFragment, resolveFamily, resolveModifiersForProduct, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, shopDayKey, shopDayRange, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, validateOrderStatuses, violatesFinancialInvariant, windowEndsAt, withinPresence };