@tallyui/pos 3.11.0 → 3.12.0
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.ts +87 -69
- package/dist/index.js +223 -63
- package/package.json +6 -6
- package/src/index.ts +1 -1
- package/src/order/order-builder.ts +8 -1
- package/src/order/order-drafts.ts +1 -0
- package/src/order/types.ts +4 -0
- package/src/pos-order/command.ts +6 -4
- package/src/pos-order/finalize.ts +4 -0
- package/src/pos-order/reopen.ts +1 -0
- package/src/pos-order/schema.ts +4 -2
- package/src/pos-order/types.ts +2 -0
- package/src/receipt/index.ts +1 -0
- package/src/receipt/reprint.ts +148 -0
- package/src/sale/cart.ts +15 -3
- package/src/sale/catalogue.ts +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { Money, TaxRounding, StoreSettings, TallyConnector, SyncContext, StoreSettingsChoice, StoreSettingsChoices, ProductTraits, woocommerceCoupons,
|
|
3
|
+
import { Money, TaxRounding, StoreSettings, TallyConnector, SyncContext, StoreSettingsChoice, StoreSettingsChoices, ProductTraits, woocommerceCoupons, OrderCreateLine, PaymentMethodKind, CommandServerRefs, CommandWarning, CommandError, StoreOrder, ProductCategory, TraitContext, ServerCapabilities, OrderCreateEnvelope, OrderRefundEnvelope, OrderRefundResult, RegisterCommandType, RegisterCommandResult, RegisterSessionTransitionPayload, VariantSummary, CommandResult, AnyCommandEnvelope, CommandEnvelope, OrderCreatePayload, RegisterCommandEnvelope } from '@tallyui/core';
|
|
4
4
|
export { getProductStock, withStockOverlay } from '@tallyui/core';
|
|
5
5
|
export { countFresh, readFresh, watchFresh } from '@tallyui/core/rxdb';
|
|
6
6
|
import * as rxdb from 'rxdb';
|
|
@@ -339,6 +339,8 @@ interface LineItem {
|
|
|
339
339
|
name: string;
|
|
340
340
|
/** The variant's chosen options, name to value (#495). */
|
|
341
341
|
attributes?: Record<string, string>;
|
|
342
|
+
/** The names in attributes the cashier picked for the variant's "Any" option groups (#495); absent when none. */
|
|
343
|
+
anyAttributes?: string[];
|
|
342
344
|
sku: string;
|
|
343
345
|
imageUrl?: string;
|
|
344
346
|
unitPriceMinor: number;
|
|
@@ -422,6 +424,8 @@ interface AddLineInput {
|
|
|
422
424
|
name: string;
|
|
423
425
|
/** The variant's chosen options, name to value (#495). */
|
|
424
426
|
attributes?: Record<string, string>;
|
|
427
|
+
/** The names in attributes the cashier picked for the variant's "Any" option groups (#495); absent when none. */
|
|
428
|
+
anyAttributes?: string[];
|
|
425
429
|
sku?: string;
|
|
426
430
|
imageUrl?: string;
|
|
427
431
|
unitPrice: Money & {
|
|
@@ -669,73 +673,6 @@ interface ReceiptConfig {
|
|
|
669
673
|
|
|
670
674
|
declare function buildReceiptData(order: SentOrder, config: ReceiptConfig): ReceiptData;
|
|
671
675
|
|
|
672
|
-
/**
|
|
673
|
-
* Filters product documents by a cashier's search term, through traits, so
|
|
674
|
-
* it works the same on every backend.
|
|
675
|
-
*
|
|
676
|
-
* Every word of the term must appear in the product name, SKU or barcode
|
|
677
|
-
* (case-insensitive, any order). A term that exactly equals a barcode or SKU
|
|
678
|
-
* returns just those products, so a scanner hit is never buried among name
|
|
679
|
-
* matches. An empty term returns the input unchanged.
|
|
680
|
-
*/
|
|
681
|
-
declare function searchProducts<Doc>(docs: Doc[], term: string, traits: ProductTraits<Doc>): Doc[];
|
|
682
|
-
|
|
683
|
-
/** The product's categories: `getCategories`, else `getCategoryNames` with each name as its id. */
|
|
684
|
-
declare function productCategories<Doc>(doc: Doc, traits: ProductTraits<Doc>): ProductCategory[];
|
|
685
|
-
/** Every category across `docs`, once per id (the first name seen wins), sorted by name (natural, case-insensitive), ties by id. */
|
|
686
|
-
declare function listCategories<Doc>(docs: readonly Doc[], traits: ProductTraits<Doc>): ProductCategory[];
|
|
687
|
-
/** Whether `doc` is in the category with this id. */
|
|
688
|
-
declare function inCategory<Doc>(doc: Doc, categoryId: string, traits: ProductTraits<Doc>): boolean;
|
|
689
|
-
|
|
690
|
-
/** A sort on one field: ascending or descending. */
|
|
691
|
-
interface ProductSort {
|
|
692
|
-
field: string;
|
|
693
|
-
dir: 'asc' | 'desc';
|
|
694
|
-
}
|
|
695
|
-
type ProductSortValue = string | number | undefined;
|
|
696
|
-
/** The fields productSortValue knows, in the default column order. */
|
|
697
|
-
declare const PRODUCT_SORT_FIELDS: readonly ["name", "sku", "barcode", "price", "stock", "category"];
|
|
698
|
-
declare function productSortValue<Doc>(doc: Doc, field: string, traits: ProductTraits<Doc>, context?: TraitContext): ProductSortValue;
|
|
699
|
-
declare function sortProducts<Doc>(docs: Doc[], sort: ProductSort | null | undefined, valueOf: (doc: Doc, field: string) => ProductSortValue): Doc[];
|
|
700
|
-
|
|
701
|
-
type CatalogueView = 'grid' | 'table';
|
|
702
|
-
type CatalogueGridColumns = 'auto' | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
703
|
-
interface CatalogueViewState {
|
|
704
|
-
view: CatalogueView;
|
|
705
|
-
gridColumns: CatalogueGridColumns;
|
|
706
|
-
sort: ProductSort | null;
|
|
707
|
-
categoryId: string | null;
|
|
708
|
-
}
|
|
709
|
-
declare const DEFAULT_CATALOGUE_VIEW_STATE: CatalogueViewState;
|
|
710
|
-
type CatalogueViewAction = {
|
|
711
|
-
type: 'setView';
|
|
712
|
-
view: CatalogueView;
|
|
713
|
-
} | {
|
|
714
|
-
type: 'setGridColumns';
|
|
715
|
-
gridColumns: CatalogueGridColumns;
|
|
716
|
-
} | {
|
|
717
|
-
type: 'setSort';
|
|
718
|
-
sort: ProductSort | null;
|
|
719
|
-
} | {
|
|
720
|
-
type: 'setCategory';
|
|
721
|
-
categoryId: string | null;
|
|
722
|
-
} | {
|
|
723
|
-
type: 'replace';
|
|
724
|
-
state: CatalogueViewState;
|
|
725
|
-
};
|
|
726
|
-
declare function catalogueViewReducer(state: CatalogueViewState, action: CatalogueViewAction): CatalogueViewState;
|
|
727
|
-
declare function normalizeCatalogueViewState(raw: unknown, defaults?: CatalogueViewState): CatalogueViewState;
|
|
728
|
-
declare function resolveGridColumns(gridColumns: CatalogueGridColumns, containerWidth: number): number;
|
|
729
|
-
|
|
730
|
-
/** The `stock_levels` collection as a live map of key to stock value. */
|
|
731
|
-
declare function stockOverlay$(collection: RxCollection): Observable<Map<string, unknown>>;
|
|
732
|
-
/**
|
|
733
|
-
* When the overlay was last confirmed by a successful pass (ISO 8601), or
|
|
734
|
-
* undefined before any pass. Read from the collection's local document, so a
|
|
735
|
-
* tab or screen that does not hold the runner can show it too.
|
|
736
|
-
*/
|
|
737
|
-
declare function stockOverlayAsOf$(collection: RxCollection): Observable<string | undefined>;
|
|
738
|
-
|
|
739
676
|
type PosOrderSyncStatus = 'pending' | 'applied' | 'rejected';
|
|
740
677
|
type PosOrderLocalWarning = {
|
|
741
678
|
code: 'customer_omitted';
|
|
@@ -772,6 +709,8 @@ interface PosOrderLine {
|
|
|
772
709
|
unitPriceMinor: number;
|
|
773
710
|
/** The chosen variation attributes, name to value (pos_orders v9, #495). */
|
|
774
711
|
attributes?: Record<string, string>;
|
|
712
|
+
/** The names in attributes the cashier picked for the variant's "Any" option groups (#495); absent when none. */
|
|
713
|
+
anyAttributes?: string[];
|
|
775
714
|
/** The catalogue's regular unit price, in the line's own tax mode like `unitPriceMinor` (pos_orders v9, ADR-077 d2). */
|
|
776
715
|
regularUnitPriceMinor?: number;
|
|
777
716
|
/** Line discounts plus the allocated order-discount share, in the line's own tax mode (ADR-062). */
|
|
@@ -868,6 +807,81 @@ interface PosOrder {
|
|
|
868
807
|
reopenedAt?: string;
|
|
869
808
|
}
|
|
870
809
|
|
|
810
|
+
/**
|
|
811
|
+
* Receipt data for reprinting the till's own stored order (ADR-081). A stored order keeps no discount labels: the order discount
|
|
812
|
+
* is one row, `Order discount`, in the display mode when lines were converted. Without `display`, a converted line's discount is in its own mode.
|
|
813
|
+
*/
|
|
814
|
+
declare function buildReceiptDataFromPosOrder(order: PosOrder, config: ReceiptConfig): ReceiptData;
|
|
815
|
+
/** Receipt data for reprinting an order read from the store with `getOrders`/`listOrders` (ADR-081). */
|
|
816
|
+
declare function buildReceiptDataFromStoreOrder(order: StoreOrder, config: ReceiptConfig): ReceiptData;
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* Filters product documents by a cashier's search term, through traits, so
|
|
820
|
+
* it works the same on every backend.
|
|
821
|
+
*
|
|
822
|
+
* Every word of the term must appear in the product name, SKU or barcode
|
|
823
|
+
* (case-insensitive, any order). A term that exactly equals a barcode or SKU
|
|
824
|
+
* returns just those products, so a scanner hit is never buried among name
|
|
825
|
+
* matches. An empty term returns the input unchanged.
|
|
826
|
+
*/
|
|
827
|
+
declare function searchProducts<Doc>(docs: Doc[], term: string, traits: ProductTraits<Doc>): Doc[];
|
|
828
|
+
|
|
829
|
+
/** The product's categories: `getCategories`, else `getCategoryNames` with each name as its id. */
|
|
830
|
+
declare function productCategories<Doc>(doc: Doc, traits: ProductTraits<Doc>): ProductCategory[];
|
|
831
|
+
/** Every category across `docs`, once per id (the first name seen wins), sorted by name (natural, case-insensitive), ties by id. */
|
|
832
|
+
declare function listCategories<Doc>(docs: readonly Doc[], traits: ProductTraits<Doc>): ProductCategory[];
|
|
833
|
+
/** Whether `doc` is in the category with this id. */
|
|
834
|
+
declare function inCategory<Doc>(doc: Doc, categoryId: string, traits: ProductTraits<Doc>): boolean;
|
|
835
|
+
|
|
836
|
+
/** A sort on one field: ascending or descending. */
|
|
837
|
+
interface ProductSort {
|
|
838
|
+
field: string;
|
|
839
|
+
dir: 'asc' | 'desc';
|
|
840
|
+
}
|
|
841
|
+
type ProductSortValue = string | number | undefined;
|
|
842
|
+
/** The fields productSortValue knows, in the default column order. */
|
|
843
|
+
declare const PRODUCT_SORT_FIELDS: readonly ["name", "sku", "barcode", "price", "stock", "category"];
|
|
844
|
+
declare function productSortValue<Doc>(doc: Doc, field: string, traits: ProductTraits<Doc>, context?: TraitContext): ProductSortValue;
|
|
845
|
+
declare function sortProducts<Doc>(docs: Doc[], sort: ProductSort | null | undefined, valueOf: (doc: Doc, field: string) => ProductSortValue): Doc[];
|
|
846
|
+
|
|
847
|
+
type CatalogueView = 'grid' | 'table';
|
|
848
|
+
type CatalogueGridColumns = 'auto' | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
849
|
+
interface CatalogueViewState {
|
|
850
|
+
view: CatalogueView;
|
|
851
|
+
gridColumns: CatalogueGridColumns;
|
|
852
|
+
sort: ProductSort | null;
|
|
853
|
+
categoryId: string | null;
|
|
854
|
+
}
|
|
855
|
+
declare const DEFAULT_CATALOGUE_VIEW_STATE: CatalogueViewState;
|
|
856
|
+
type CatalogueViewAction = {
|
|
857
|
+
type: 'setView';
|
|
858
|
+
view: CatalogueView;
|
|
859
|
+
} | {
|
|
860
|
+
type: 'setGridColumns';
|
|
861
|
+
gridColumns: CatalogueGridColumns;
|
|
862
|
+
} | {
|
|
863
|
+
type: 'setSort';
|
|
864
|
+
sort: ProductSort | null;
|
|
865
|
+
} | {
|
|
866
|
+
type: 'setCategory';
|
|
867
|
+
categoryId: string | null;
|
|
868
|
+
} | {
|
|
869
|
+
type: 'replace';
|
|
870
|
+
state: CatalogueViewState;
|
|
871
|
+
};
|
|
872
|
+
declare function catalogueViewReducer(state: CatalogueViewState, action: CatalogueViewAction): CatalogueViewState;
|
|
873
|
+
declare function normalizeCatalogueViewState(raw: unknown, defaults?: CatalogueViewState): CatalogueViewState;
|
|
874
|
+
declare function resolveGridColumns(gridColumns: CatalogueGridColumns, containerWidth: number): number;
|
|
875
|
+
|
|
876
|
+
/** The `stock_levels` collection as a live map of key to stock value. */
|
|
877
|
+
declare function stockOverlay$(collection: RxCollection): Observable<Map<string, unknown>>;
|
|
878
|
+
/**
|
|
879
|
+
* When the overlay was last confirmed by a successful pass (ISO 8601), or
|
|
880
|
+
* undefined before any pass. Read from the collection's local document, so a
|
|
881
|
+
* tab or screen that does not hold the runner can show it too.
|
|
882
|
+
*/
|
|
883
|
+
declare function stockOverlayAsOf$(collection: RxCollection): Observable<string | undefined>;
|
|
884
|
+
|
|
871
885
|
/** RFC 9562 UUIDv7: monotonic with no arguments; stateless with an explicit timestamp or random source. */
|
|
872
886
|
declare function uuidv7(now?: number, randomBytes?: (n: number) => Uint8Array): string;
|
|
873
887
|
|
|
@@ -901,6 +915,7 @@ declare class UnsupportedOrderVersionError extends Error {
|
|
|
901
915
|
* ADR-065's figures make version 3; otherwise a discounted order is version 2 (ADR-062), else version 1, byte-identical.
|
|
902
916
|
* A version-3 order goes as version 4 (#286) only when `maxVersion` is at least 4 and its `sentVersion` doesn't cap it.
|
|
903
917
|
* Coupon orders need version 6, carrying coupons, stored regular prices, line attributes and receipt coupons.
|
|
918
|
+
* Orders with Any picks (#495) need version 6 too, carrying a line's `anyAttributes`, and coupons only when they have some.
|
|
904
919
|
*/
|
|
905
920
|
declare function toOrderCreateEnvelope(order: PosOrder, deviceId: string, attempt?: number, options?: {
|
|
906
921
|
maxVersion?: number;
|
|
@@ -929,6 +944,7 @@ declare function toOrderCreateEnvelope(order: PosOrder, deviceId: string, attemp
|
|
|
929
944
|
* and `regularUnitPriceMinor` (ADR-077 d2), and `reopenedAt`: when a refused order was reopened as a parked sale (ADR-077 d4b), and lets `sentVersion` and `downgradedFrom` be 6 (order.create version 6, ADR-077 d4), and changes nothing else.
|
|
930
945
|
* `finalizeOrder` writes a line's `attributes`; the order.create envelope sends them only at version 6.
|
|
931
946
|
* Its migration is the identity. It is one-way like version 8.
|
|
947
|
+
* Version 10 adds a line's `anyAttributes` (#495 c/d) and changes nothing else. Its migration is the identity. It is one-way like version 9.
|
|
932
948
|
*/
|
|
933
949
|
declare const posOrderSchema: RxJsonSchema<PosOrder>;
|
|
934
950
|
/**
|
|
@@ -2145,6 +2161,8 @@ declare function abandonSession(input: SessionTarget): Promise<void>;
|
|
|
2145
2161
|
type CatalogueEntry<Doc> = {
|
|
2146
2162
|
product: Doc;
|
|
2147
2163
|
variant: VariantSummary;
|
|
2164
|
+
/** The cashier's value for each of the variant's local "Any" option groups, group name to value (#495). */
|
|
2165
|
+
picks?: Record<string, string>;
|
|
2148
2166
|
};
|
|
2149
2167
|
/** Variants in product/variant order, passing context through; without getVariants,
|
|
2150
2168
|
* simple products use their own traits and products with variants contribute no entries. */
|
|
@@ -2879,4 +2897,4 @@ declare function tenderVoidCollection(): {
|
|
|
2879
2897
|
readonly schema: RxJsonSchema<TenderVoid>;
|
|
2880
2898
|
};
|
|
2881
2899
|
|
|
2882
|
-
export { type Actor, type AddLineInput, type AppliedDiscount, type BackendNotFound, type BasketLine, COUPONS_UNSUPPORTED, CartError, type CashMovement, type CashMovementCollection, type CatalogueEntry, type CatalogueGridColumns, type CatalogueView, type CatalogueViewAction, type CatalogueViewState, type ChargeInput, type ChargeLine, type Closure, type ClosureCollection, type ClosureContext, type ClosureScope, type CommandTransport, type Correction, CurrencyProvider, type CurrencyProviderProps, type CustomerSummary, DEFAULT_CATALOGUE_VIEW_STATE, DISCOUNTS_UNSUPPORTED, type Discount, type DisplayLine, type DisplayTotals, type FeeLine, type FinalizeOptions, type HttpTransportOptions, type LedgerRow, type LineItem, type LineTaxLine, type LogEntry, type LogLevel, type LogSink, type Logger, MAX_TENDER_MINOR, MICROS_PER_MINOR, type Movement$1 as Movement, type MovementType, type Order, type OrderBuilder, type OrderBuilderOptions, OrderContentMismatchError, type OrderCoupon, type OrderCouponContext, type OrderManager, type OrderManagerOptions, type OrderOutbox, type OrderOutboxOptions, type OrderRefundOutcome, type OrderTaxTotals, type OrderTransportContext, type OutboxState, PRODUCT_SORT_FIELDS, type ParkedOrderSummary, type Payment, type PaymentMethod, type PaymentTransport, type PlanLeg, type PosOrder, type PosOrderCoupon, type PosOrderLine, type PosOrderLocalWarning, PosOrderOpenClosedError, type PosOrderPayment, type PosOrderServerFailures, type PosOrderSyncStatus, type PosRefund, type PosRefundCollection, type PosRefundStatus, type ProductSort, type ProductSortValue, RECEIPT_SCHEMA_VERSION, REGISTER_SESSION_MIGRATION_CLOSE_WAIT_MS, REOPENABLE_CODES, type RateTaxLine, type ReceiptConfig, type ReceiptData, type ReceiptFiscal, type ReceiptLineItem, type ReceiptRegister, type ReceiptSoftware, type RecordedFigures, RefundAnswerPendingError, RegisterApprovalRequiredError, type RegisterBucket, RegisterCloseIncompleteError, type RegisterCommand, type RegisterCommandCollection, type RegisterCounters, type RegisterDocument, type RegisterFact, type RegisterHost, RegisterIdInvalidError, RegisterMovementAmountError, RegisterMovementReasonError, RegisterMovementStrandedError, RegisterNeedsUpgradeError, type RegisterOutbox, type RegisterOutboxOptions, type RegisterSession, RegisterSessionAlreadyOpenError, RegisterSessionClosedError, type RegisterSessionCollection, RegisterSessionConflictError, RegisterSessionOpenClosedError, RegisterSessionRequiredError, type RegisterStore, RegisterTakeOverError, RegisterTenderInProgressError, type ReopenRefusal, ReopenRefusedOrderError, type Repository, type ResolveStoreSettingsOptions, SALE_SAVING, type SaleDiscountCodes, type SaleDiscountState, type SaleStage, type SentOrder, type ShippingLine, type SplitTab, type StoreSettingsResolution, type StoreSettingsState, TAX_ROUNDING_MIXED_NOTE, type TaxContext, type TaxLineInput, TaxProvider, type TaxProviderProps, type TaxRateMap, type TenderAction, type TenderKey, type TenderLineId, type TenderPlan, type TenderState, type TenderView, type TenderVoid, type TransportOutcome, UnsupportedOrderVersionError, type UseOrderOutboxOptions, type UseOrderOutboxResult, type UseRegisterOutboxOptions, type UseRegisterOutboxResult, type UseRegisterSessionOptions, abandonSession, activePlan, addEntryToCart, addPosOrderCollection, addRegisterSessionCollection, adoptRegisterResults, advancePerpetual, allocateOrderDiscount, appliedMinor, backToSelling, bindRegister, buildClosureDocument, buildReceiptData, buildXReportDocument, callbackSink, cashMovementSchema, catalogueEntries, catalogueViewReducer, changeMinor, clampClosureScope, closeNeedsApproval, closeSession, closureCommand, closureSchema, computeOrderTax, consoleSink, countVariance, createBackendNotFound, createHttpCommandTransport, createLogger, createOrderBuilder, createOrderManager, createOrderOutbox, createRegisterOutbox, createRepository, denominationTotal, denominations, deriveExpected, deriveSettled, ensureRegister, evenSplitShareMinor, exportCsv, finalizeOrder, findEntryByCode, formatClosureDate, getBoundRegisterId, getDeviceId, inCategory, initTenderState, initialTenderState, isKnownSessionStatus, isReopened, isRequeueable, isServerDecimal, labelKeys, listCategories, minorToDecimal, mintClosureNumber, mintUuid, movementCommand, movementFieldError, needsAttention, nextSaleCounter, normalizeAmount, normalizeCatalogueViewState, observeRegister$, openSession, openSessionSelector, orderDraftSchema, outboxLogger, overThreshold, parkedOrderSummaries$, parseMinor, planLegs, posOrderCollection, posOrderSchema, posOrdersLogger, posRefundCollection, posRefundSchema, productCategories, productSortValue, quickTenderedAmounts, ratePpmFromPercent, readBoundRegister, readRegister, reconcileRegisterCommands, recordMovement, recordRegisterFact, registerCommandCollection, registerCommandSchema, registerCommandsLogger, registerFactsLogger, registerSessionCollection, registerSessionSchema, registerSessionsLogger, reopenRefusedOrder, replacedOrderIds, requireOpenSession, resolveGridColumns, resolveStoreSettings, restoreOrderDraft, roundMicrosToMinor, saleLogger, sameSale, searchProducts, selectClosureRows, sendOrderRefund, sessionOpenCommand, sessionTransitionCommand, sortProducts, stampSession, startCounting, stockOverlay$, stockOverlayAsOf$, submitOrderRefund, takeOverSession, taxFiguresForBasket, taxLinesByRate, taxLogger, taxMicros, taxProviderProps, tenderReducer, tenderVoidCollection, tenderVoidSchema, toOrderCreateEnvelope, unbindRegister, useCurrencyCode, useCurrencyFormatter, useOrderOutbox, useParkedSales, useRegisterOutbox, useRegisterSession, useSale, useStoreSettings, useTax, uuidv7, validAmount, varianceText, variantPriceLabel, voidMovement, withPricingContext, index as woocommerceDiscountCodes, writeClosure, writeOrderDraft };
|
|
2900
|
+
export { type Actor, type AddLineInput, type AppliedDiscount, type BackendNotFound, type BasketLine, COUPONS_UNSUPPORTED, CartError, type CashMovement, type CashMovementCollection, type CatalogueEntry, type CatalogueGridColumns, type CatalogueView, type CatalogueViewAction, type CatalogueViewState, type ChargeInput, type ChargeLine, type Closure, type ClosureCollection, type ClosureContext, type ClosureScope, type CommandTransport, type Correction, CurrencyProvider, type CurrencyProviderProps, type CustomerSummary, DEFAULT_CATALOGUE_VIEW_STATE, DISCOUNTS_UNSUPPORTED, type Discount, type DisplayLine, type DisplayTotals, type FeeLine, type FinalizeOptions, type HttpTransportOptions, type LedgerRow, type LineItem, type LineTaxLine, type LogEntry, type LogLevel, type LogSink, type Logger, MAX_TENDER_MINOR, MICROS_PER_MINOR, type Movement$1 as Movement, type MovementType, type Order, type OrderBuilder, type OrderBuilderOptions, OrderContentMismatchError, type OrderCoupon, type OrderCouponContext, type OrderManager, type OrderManagerOptions, type OrderOutbox, type OrderOutboxOptions, type OrderRefundOutcome, type OrderTaxTotals, type OrderTransportContext, type OutboxState, PRODUCT_SORT_FIELDS, type ParkedOrderSummary, type Payment, type PaymentMethod, type PaymentTransport, type PlanLeg, type PosOrder, type PosOrderCoupon, type PosOrderLine, type PosOrderLocalWarning, PosOrderOpenClosedError, type PosOrderPayment, type PosOrderServerFailures, type PosOrderSyncStatus, type PosRefund, type PosRefundCollection, type PosRefundStatus, type ProductSort, type ProductSortValue, RECEIPT_SCHEMA_VERSION, REGISTER_SESSION_MIGRATION_CLOSE_WAIT_MS, REOPENABLE_CODES, type RateTaxLine, type ReceiptConfig, type ReceiptData, type ReceiptFiscal, type ReceiptLineItem, type ReceiptRegister, type ReceiptSoftware, type RecordedFigures, RefundAnswerPendingError, RegisterApprovalRequiredError, type RegisterBucket, RegisterCloseIncompleteError, type RegisterCommand, type RegisterCommandCollection, type RegisterCounters, type RegisterDocument, type RegisterFact, type RegisterHost, RegisterIdInvalidError, RegisterMovementAmountError, RegisterMovementReasonError, RegisterMovementStrandedError, RegisterNeedsUpgradeError, type RegisterOutbox, type RegisterOutboxOptions, type RegisterSession, RegisterSessionAlreadyOpenError, RegisterSessionClosedError, type RegisterSessionCollection, RegisterSessionConflictError, RegisterSessionOpenClosedError, RegisterSessionRequiredError, type RegisterStore, RegisterTakeOverError, RegisterTenderInProgressError, type ReopenRefusal, ReopenRefusedOrderError, type Repository, type ResolveStoreSettingsOptions, SALE_SAVING, type SaleDiscountCodes, type SaleDiscountState, type SaleStage, type SentOrder, type ShippingLine, type SplitTab, type StoreSettingsResolution, type StoreSettingsState, TAX_ROUNDING_MIXED_NOTE, type TaxContext, type TaxLineInput, TaxProvider, type TaxProviderProps, type TaxRateMap, type TenderAction, type TenderKey, type TenderLineId, type TenderPlan, type TenderState, type TenderView, type TenderVoid, type TransportOutcome, UnsupportedOrderVersionError, type UseOrderOutboxOptions, type UseOrderOutboxResult, type UseRegisterOutboxOptions, type UseRegisterOutboxResult, type UseRegisterSessionOptions, abandonSession, activePlan, addEntryToCart, addPosOrderCollection, addRegisterSessionCollection, adoptRegisterResults, advancePerpetual, allocateOrderDiscount, appliedMinor, backToSelling, bindRegister, buildClosureDocument, buildReceiptData, buildReceiptDataFromPosOrder, buildReceiptDataFromStoreOrder, buildXReportDocument, callbackSink, cashMovementSchema, catalogueEntries, catalogueViewReducer, changeMinor, clampClosureScope, closeNeedsApproval, closeSession, closureCommand, closureSchema, computeOrderTax, consoleSink, countVariance, createBackendNotFound, createHttpCommandTransport, createLogger, createOrderBuilder, createOrderManager, createOrderOutbox, createRegisterOutbox, createRepository, denominationTotal, denominations, deriveExpected, deriveSettled, ensureRegister, evenSplitShareMinor, exportCsv, finalizeOrder, findEntryByCode, formatClosureDate, getBoundRegisterId, getDeviceId, inCategory, initTenderState, initialTenderState, isKnownSessionStatus, isReopened, isRequeueable, isServerDecimal, labelKeys, listCategories, minorToDecimal, mintClosureNumber, mintUuid, movementCommand, movementFieldError, needsAttention, nextSaleCounter, normalizeAmount, normalizeCatalogueViewState, observeRegister$, openSession, openSessionSelector, orderDraftSchema, outboxLogger, overThreshold, parkedOrderSummaries$, parseMinor, planLegs, posOrderCollection, posOrderSchema, posOrdersLogger, posRefundCollection, posRefundSchema, productCategories, productSortValue, quickTenderedAmounts, ratePpmFromPercent, readBoundRegister, readRegister, reconcileRegisterCommands, recordMovement, recordRegisterFact, registerCommandCollection, registerCommandSchema, registerCommandsLogger, registerFactsLogger, registerSessionCollection, registerSessionSchema, registerSessionsLogger, reopenRefusedOrder, replacedOrderIds, requireOpenSession, resolveGridColumns, resolveStoreSettings, restoreOrderDraft, roundMicrosToMinor, saleLogger, sameSale, searchProducts, selectClosureRows, sendOrderRefund, sessionOpenCommand, sessionTransitionCommand, sortProducts, stampSession, startCounting, stockOverlay$, stockOverlayAsOf$, submitOrderRefund, takeOverSession, taxFiguresForBasket, taxLinesByRate, taxLogger, taxMicros, taxProviderProps, tenderReducer, tenderVoidCollection, tenderVoidSchema, toOrderCreateEnvelope, unbindRegister, useCurrencyCode, useCurrencyFormatter, useOrderOutbox, useParkedSales, useRegisterOutbox, useRegisterSession, useSale, useStoreSettings, useTax, uuidv7, validAmount, varianceText, variantPriceLabel, voidMovement, withPricingContext, index as woocommerceDiscountCodes, writeClosure, writeOrderDraft };
|