@tallyui/pos 3.10.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 +95 -70
- package/dist/index.js +228 -62
- package/package.json +6 -6
- package/src/index.ts +2 -2
- package/src/order/order-builder.ts +9 -1
- package/src/order/order-drafts.ts +2 -0
- package/src/order/types.ts +8 -0
- package/src/pos-order/command.ts +6 -4
- package/src/pos-order/finalize.ts +5 -0
- package/src/pos-order/reopen.ts +2 -0
- package/src/pos-order/schema.ts +6 -3
- package/src/pos-order/types.ts +2 -0
- package/src/receipt/build-receipt-data.ts +1 -0
- package/src/receipt/index.ts +1 -0
- package/src/receipt/reprint.ts +148 -0
- package/src/receipt/types.ts +2 -0
- package/src/sale/cart.ts +15 -2
- package/src/sale/catalogue.ts +5 -1
- package/src/tax/index.ts +1 -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';
|
|
@@ -337,6 +337,10 @@ interface LineItem {
|
|
|
337
337
|
productId: string;
|
|
338
338
|
variantId?: string;
|
|
339
339
|
name: string;
|
|
340
|
+
/** The variant's chosen options, name to value (#495). */
|
|
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[];
|
|
340
344
|
sku: string;
|
|
341
345
|
imageUrl?: string;
|
|
342
346
|
unitPriceMinor: number;
|
|
@@ -418,6 +422,10 @@ interface AddLineInput {
|
|
|
418
422
|
taxStatus?: 'taxable' | 'none';
|
|
419
423
|
variantId?: string;
|
|
420
424
|
name: string;
|
|
425
|
+
/** The variant's chosen options, name to value (#495). */
|
|
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[];
|
|
421
429
|
sku?: string;
|
|
422
430
|
imageUrl?: string;
|
|
423
431
|
unitPrice: Money & {
|
|
@@ -585,6 +593,8 @@ interface ReceiptFiscal {
|
|
|
585
593
|
}
|
|
586
594
|
interface ReceiptLineItem {
|
|
587
595
|
name: string;
|
|
596
|
+
/** The variant's chosen options, name to value (#495); absent when none. */
|
|
597
|
+
attributes?: Record<string, string>;
|
|
588
598
|
sku: string;
|
|
589
599
|
quantity: number;
|
|
590
600
|
unitPriceMinor: number;
|
|
@@ -663,73 +673,6 @@ interface ReceiptConfig {
|
|
|
663
673
|
|
|
664
674
|
declare function buildReceiptData(order: SentOrder, config: ReceiptConfig): ReceiptData;
|
|
665
675
|
|
|
666
|
-
/**
|
|
667
|
-
* Filters product documents by a cashier's search term, through traits, so
|
|
668
|
-
* it works the same on every backend.
|
|
669
|
-
*
|
|
670
|
-
* Every word of the term must appear in the product name, SKU or barcode
|
|
671
|
-
* (case-insensitive, any order). A term that exactly equals a barcode or SKU
|
|
672
|
-
* returns just those products, so a scanner hit is never buried among name
|
|
673
|
-
* matches. An empty term returns the input unchanged.
|
|
674
|
-
*/
|
|
675
|
-
declare function searchProducts<Doc>(docs: Doc[], term: string, traits: ProductTraits<Doc>): Doc[];
|
|
676
|
-
|
|
677
|
-
/** The product's categories: `getCategories`, else `getCategoryNames` with each name as its id. */
|
|
678
|
-
declare function productCategories<Doc>(doc: Doc, traits: ProductTraits<Doc>): ProductCategory[];
|
|
679
|
-
/** Every category across `docs`, once per id (the first name seen wins), sorted by name (natural, case-insensitive), ties by id. */
|
|
680
|
-
declare function listCategories<Doc>(docs: readonly Doc[], traits: ProductTraits<Doc>): ProductCategory[];
|
|
681
|
-
/** Whether `doc` is in the category with this id. */
|
|
682
|
-
declare function inCategory<Doc>(doc: Doc, categoryId: string, traits: ProductTraits<Doc>): boolean;
|
|
683
|
-
|
|
684
|
-
/** A sort on one field: ascending or descending. */
|
|
685
|
-
interface ProductSort {
|
|
686
|
-
field: string;
|
|
687
|
-
dir: 'asc' | 'desc';
|
|
688
|
-
}
|
|
689
|
-
type ProductSortValue = string | number | undefined;
|
|
690
|
-
/** The fields productSortValue knows, in the default column order. */
|
|
691
|
-
declare const PRODUCT_SORT_FIELDS: readonly ["name", "sku", "barcode", "price", "stock", "category"];
|
|
692
|
-
declare function productSortValue<Doc>(doc: Doc, field: string, traits: ProductTraits<Doc>, context?: TraitContext): ProductSortValue;
|
|
693
|
-
declare function sortProducts<Doc>(docs: Doc[], sort: ProductSort | null | undefined, valueOf: (doc: Doc, field: string) => ProductSortValue): Doc[];
|
|
694
|
-
|
|
695
|
-
type CatalogueView = 'grid' | 'table';
|
|
696
|
-
type CatalogueGridColumns = 'auto' | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
697
|
-
interface CatalogueViewState {
|
|
698
|
-
view: CatalogueView;
|
|
699
|
-
gridColumns: CatalogueGridColumns;
|
|
700
|
-
sort: ProductSort | null;
|
|
701
|
-
categoryId: string | null;
|
|
702
|
-
}
|
|
703
|
-
declare const DEFAULT_CATALOGUE_VIEW_STATE: CatalogueViewState;
|
|
704
|
-
type CatalogueViewAction = {
|
|
705
|
-
type: 'setView';
|
|
706
|
-
view: CatalogueView;
|
|
707
|
-
} | {
|
|
708
|
-
type: 'setGridColumns';
|
|
709
|
-
gridColumns: CatalogueGridColumns;
|
|
710
|
-
} | {
|
|
711
|
-
type: 'setSort';
|
|
712
|
-
sort: ProductSort | null;
|
|
713
|
-
} | {
|
|
714
|
-
type: 'setCategory';
|
|
715
|
-
categoryId: string | null;
|
|
716
|
-
} | {
|
|
717
|
-
type: 'replace';
|
|
718
|
-
state: CatalogueViewState;
|
|
719
|
-
};
|
|
720
|
-
declare function catalogueViewReducer(state: CatalogueViewState, action: CatalogueViewAction): CatalogueViewState;
|
|
721
|
-
declare function normalizeCatalogueViewState(raw: unknown, defaults?: CatalogueViewState): CatalogueViewState;
|
|
722
|
-
declare function resolveGridColumns(gridColumns: CatalogueGridColumns, containerWidth: number): number;
|
|
723
|
-
|
|
724
|
-
/** The `stock_levels` collection as a live map of key to stock value. */
|
|
725
|
-
declare function stockOverlay$(collection: RxCollection): Observable<Map<string, unknown>>;
|
|
726
|
-
/**
|
|
727
|
-
* When the overlay was last confirmed by a successful pass (ISO 8601), or
|
|
728
|
-
* undefined before any pass. Read from the collection's local document, so a
|
|
729
|
-
* tab or screen that does not hold the runner can show it too.
|
|
730
|
-
*/
|
|
731
|
-
declare function stockOverlayAsOf$(collection: RxCollection): Observable<string | undefined>;
|
|
732
|
-
|
|
733
676
|
type PosOrderSyncStatus = 'pending' | 'applied' | 'rejected';
|
|
734
677
|
type PosOrderLocalWarning = {
|
|
735
678
|
code: 'customer_omitted';
|
|
@@ -766,6 +709,8 @@ interface PosOrderLine {
|
|
|
766
709
|
unitPriceMinor: number;
|
|
767
710
|
/** The chosen variation attributes, name to value (pos_orders v9, #495). */
|
|
768
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[];
|
|
769
714
|
/** The catalogue's regular unit price, in the line's own tax mode like `unitPriceMinor` (pos_orders v9, ADR-077 d2). */
|
|
770
715
|
regularUnitPriceMinor?: number;
|
|
771
716
|
/** Line discounts plus the allocated order-discount share, in the line's own tax mode (ADR-062). */
|
|
@@ -862,6 +807,81 @@ interface PosOrder {
|
|
|
862
807
|
reopenedAt?: string;
|
|
863
808
|
}
|
|
864
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
|
+
|
|
865
885
|
/** RFC 9562 UUIDv7: monotonic with no arguments; stateless with an explicit timestamp or random source. */
|
|
866
886
|
declare function uuidv7(now?: number, randomBytes?: (n: number) => Uint8Array): string;
|
|
867
887
|
|
|
@@ -895,6 +915,7 @@ declare class UnsupportedOrderVersionError extends Error {
|
|
|
895
915
|
* ADR-065's figures make version 3; otherwise a discounted order is version 2 (ADR-062), else version 1, byte-identical.
|
|
896
916
|
* A version-3 order goes as version 4 (#286) only when `maxVersion` is at least 4 and its `sentVersion` doesn't cap it.
|
|
897
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.
|
|
898
919
|
*/
|
|
899
920
|
declare function toOrderCreateEnvelope(order: PosOrder, deviceId: string, attempt?: number, options?: {
|
|
900
921
|
maxVersion?: number;
|
|
@@ -920,8 +941,10 @@ declare function toOrderCreateEnvelope(order: PosOrder, deviceId: string, attemp
|
|
|
920
941
|
* It also stores the WooCommerce 6dp net (`netMicros`) under the woocommerce rounding (ADR-076 amendment).
|
|
921
942
|
* Its migration is the identity. It is one-way like version 7.
|
|
922
943
|
* Version 9 adds the order's `coupons` and the receipt's `display.coupons` (ADR-077 d2), and a line's `attributes` (#495)
|
|
923
|
-
* 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.
|
|
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.
|
|
945
|
+
* `finalizeOrder` writes a line's `attributes`; the order.create envelope sends them only at version 6.
|
|
924
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.
|
|
925
948
|
*/
|
|
926
949
|
declare const posOrderSchema: RxJsonSchema<PosOrder>;
|
|
927
950
|
/**
|
|
@@ -2138,6 +2161,8 @@ declare function abandonSession(input: SessionTarget): Promise<void>;
|
|
|
2138
2161
|
type CatalogueEntry<Doc> = {
|
|
2139
2162
|
product: Doc;
|
|
2140
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>;
|
|
2141
2166
|
};
|
|
2142
2167
|
/** Variants in product/variant order, passing context through; without getVariants,
|
|
2143
2168
|
* simple products use their own traits and products with variants contribute no entries. */
|
|
@@ -2872,4 +2897,4 @@ declare function tenderVoidCollection(): {
|
|
|
2872
2897
|
readonly schema: RxJsonSchema<TenderVoid>;
|
|
2873
2898
|
};
|
|
2874
2899
|
|
|
2875
|
-
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 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 };
|