@tallyui/core 5.2.0 → 5.3.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 CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IceServer, D as DisplayAdvertisement, O as OrderFilterField, L as ListOrdersQuery, V as VariantSummary, C as CommandWarning, P as ProductTraits, S as StockReconcileAdapter, a as StockLevel, R as ReplicationAdapter, b as SyncContext, T as TallyConnector, c as TraitContext, d as CustomerTraits, M as MoneyFormat, e as Money, f as CalculateTaxesInput, g as CalculateTaxesResult, W as WooTaxRate, h as ItemizedTax, i as ResolvedTaxLocation, j as TAX_BASED_ON_META_KEY, k as TaxAddress, l as TaxBasedOn, m as TaxLocationOrder, n as normalizeTaxBasedOn, o as orderTaxLocation } from './refund-share-DVf_0clD.js';
2
- export { A as AnyCommandEnvelope, p as ApproverCredentials, q as AuthField, B as BatchTooLargeBody, r as CASHIER_PERMISSIONS, s as COMMANDS_PATH, t as CaptureMode, u as CaptureModeEntry, v as Cashier, w as CashierPermission, x as CatalogueReconcileAdapter, y as CatalogueReconcileEntry, z as ClosureReads, E as CollectionSync, F as CommandBatchRequest, G as CommandBatchResponse, H as CommandEnvelope, J as CommandError, K as CommandResult, N as CommandResultError, Q as CommandServerRefs, U as CommandStatus, X as CommandType, Y as ConnectivityState, Z as ConnectorAuth, _ as ConnectorSchemas, $ as ConnectorTraits, a0 as Correction, a1 as Customer, a2 as CustomerAddress, a3 as CustomerInput, a4 as CustomerPage, a5 as CustomerPatch, a6 as CustomerServiceError, a7 as CustomerTaxId, a8 as DISPLAY_PAIR_CAPABILITY, a9 as DisplayRecord, aa as DisplaySignalling, ab as DisplaySignallingContext, ac as DisplaySignallingError, ad as DisplaySignallingErrorCode, ae as EarlierRefund, af as FailureClass, ag as FingerprintReconcileAdapter, ah as IdReconcileAdapter, ai as ListRefundsQuery, aj as MAX_COMMANDS_PER_BATCH, ak as NEEDS_ADMIN_MESSAGE_MAX, al as ORDER_LINE_SKU_MAX, am as ORDER_META_KEY_MAX, an as ORDER_META_MAX, ao as ORDER_NOTE_MAX, ap as ORDER_TAX_IDS_MAX, aq as ORDER_TAX_ID_TYPE_MAX, ar as ORDER_TAX_ID_VALUE_MAX, as as OrderAddress, at as OrderCreateCoupon, au as OrderCreateCouponInvalidData, av as OrderCreateCouponLine, aw as OrderCreateDisplay, ax as OrderCreateEnvelope, ay as OrderCreateLine, az as OrderCreateMeta, aA as OrderCreatePayload, aB as OrderCreatePayment, aC as OrderCreateTaxId, aD as OrderCreateTaxRate, aE as OrderCreateTotalMismatchData, aF as OrderRefundAmountMismatchData, aG as OrderRefundEnvelope, aH as OrderRefundLine, aI as OrderRefundNoOpenSessionData, aJ as OrderRefundOrderStateData, aK as OrderRefundPayload, aL as OrderRefundQuantityExceedsData, aM as OrderRefundRejectionCode, aN as OrderRefundResult, aO as OrderReopenEnvelope, aP as OrderReopenOrderStateData, aQ as OrderReopenPayload, aR as OrderReopenPaymentInMotionData, aS as OrderReopenRejectionCode, aT as OrderReopenResult, aU as OrderUpdateEnvelope, aV as OrderUpdateFee, aW as OrderUpdateLine, aX as OrderUpdatePayload, aY as OrderUpdatePayment, aZ as OrderUpdateRejectionCode, a_ as OrderUpdateReopenRequiredData, a$ as OrderUpdateShipping, b0 as PROTOCOL_HEADER, b1 as PROTOCOL_VERSION, b2 as PaymentHardware, b3 as PaymentKind, b4 as PaymentMethodDescriptor, b5 as PaymentMethodKind, b6 as PaymentOfflineMode, b7 as PaymentRounding, b8 as PaymentTipsMode, b9 as PaymentTransport, ba as PendingPairing, bb as PricedRefund, bc as PricedRefundLine, bd as ProductCategory, be as ProductPrice, bf as ProductTerm, bg as ReceiptTemplate, bh as ReceiptTemplateKind, bi as RefundableLine, bj as RefundableOrderLine, bk as RefusedOrderSettlement, bl as RegisterApprovalInvalidData, bm as RegisterApprovalRequiredData, bn as RegisterClosureSubmitPayload, bo as RegisterCommandEnvelope, bp as RegisterCommandResult, bq as RegisterCommandType, br as RegisterInfo, bs as RegisterMovementRecordPayload, bt as RegisterMovementVoidPayload, bu as RegisterSessionAlreadyOpenData, bv as RegisterSessionOpenPayload, bw as RegisterSessionSupersededData, bx as RegisterSessionTransitionPayload, by as RemoteIdEntry, bz as ResolvedPrice, bA as RoundingMode, bB as ServerCapabilities, bC as SettleCancelRequest, bD as SettleOutcome, bE as SettlePayRequest, bF as SettlePayResult, bG as SettlePayment, bH as SettleReverseLeg, bI as SettleReverseRequest, bJ as SettleReverseResult, bK as SignInResult, bL as SignalMessage, bM as StockStatus, bN as StoreClosure, bO as StoreOrder, bP as StoreOrderCharge, bQ as StoreOrderLine, bR as StoreOrderPage, bS as StoreOrderPayment, bT as StoreOrderRefund, bU as StoreOrderRefundLine, bV as StoreRefund, bW as StoreRefundOrphan, bX as StoreRefundPage, bY as StoreSettings, bZ as StoreSettingsChoice, b_ as StoreTaxClass, b$ as StoreTaxRate, c0 as StoreTaxRateLocation, c1 as TaxRounding, c2 as TillDevice, c3 as UpdateRequired, c4 as VariantOptionGroup, c5 as cashierPermissions, c6 as classifyFailure, c7 as currencySymbol, c8 as customerTraits, c9 as defaultPaymentMethods, ca as deriveSessionFigures, cb as deriveVariance, cc as formatMoney, cd as isCashierPermission, ce as isCommandBatchResponse, cf as legMethodId, cg as minorToMajor, ch as minorUnitDigits, ci as moneyFromDecimalString, cj as moneyFromMajor, ck as moneyToMajor, cl as neutralFailureClass, cm as noResponse, cn as normalizeMoneyText, co as parseCommandResult, cp as parseInfoCapabilities, cq as parseLineTax, cr as parseTaxRounding, cs as paymentMethodOf, ct as priceRefund, cu as ratePpmFromPercent, cv as refundableLines, cw as resolveCapabilities, cx as resolvePrice, cy as resolvePriceRange, cz as roundRatio, cA as wireMethodOf } from './refund-share-DVf_0clD.js';
1
+ import { I as IceServer, D as DisplayAdvertisement, O as OrderFilterField, L as ListOrdersQuery, V as VariantSummary, C as CommandWarning, P as ProductTraits, S as StockReconcileAdapter, a as StockLevel, R as ReplicationAdapter, b as SyncContext, T as TallyConnector, c as TraitContext, d as CustomerTraits, M as MoneyFormat, e as Money, f as CalculateTaxesInput, g as CalculateTaxesResult, W as WooTaxRate, h as ItemizedTax, i as ResolvedTaxLocation, j as TAX_BASED_ON_META_KEY, k as TaxAddress, l as TaxBasedOn, m as TaxLocationOrder, n as normalizeTaxBasedOn, o as orderTaxLocation } from './refund-share-BnDEtU7J.js';
2
+ export { A as AnyCommandEnvelope, p as ApproverCredentials, q as AuthField, B as BatchTooLargeBody, r as CASHIER_PERMISSIONS, s as COMMANDS_PATH, t as CaptureMode, u as CaptureModeEntry, v as Cashier, w as CashierPermission, x as CatalogueReconcileAdapter, y as CatalogueReconcileEntry, z as ClosureReads, E as CollectionSync, F as CommandBatchRequest, G as CommandBatchResponse, H as CommandEnvelope, J as CommandError, K as CommandResult, N as CommandResultError, Q as CommandServerRefs, U as CommandStatus, X as CommandType, Y as ConnectivityState, Z as ConnectorAuth, _ as ConnectorSchemas, $ as ConnectorTraits, a0 as Correction, a1 as Customer, a2 as CustomerAddress, a3 as CustomerInput, a4 as CustomerPage, a5 as CustomerPatch, a6 as CustomerServiceError, a7 as CustomerTaxId, a8 as DISPLAY_PAIR_CAPABILITY, a9 as DisplayRecord, aa as DisplaySignalling, ab as DisplaySignallingContext, ac as DisplaySignallingError, ad as DisplaySignallingErrorCode, ae as EarlierRefund, af as FailureClass, ag as FingerprintReconcileAdapter, ah as IdReconcileAdapter, ai as ListRefundsQuery, aj as MAX_COMMANDS_PER_BATCH, ak as NEEDS_ADMIN_MESSAGE_MAX, al as ORDER_LINE_SKU_MAX, am as ORDER_META_KEY_MAX, an as ORDER_META_MAX, ao as ORDER_NOTE_MAX, ap as ORDER_TAX_IDS_MAX, aq as ORDER_TAX_ID_TYPE_MAX, ar as ORDER_TAX_ID_VALUE_MAX, as as OrderAddress, at as OrderCreateCoupon, au as OrderCreateCouponInvalidData, av as OrderCreateCouponLine, aw as OrderCreateDisplay, ax as OrderCreateEnvelope, ay as OrderCreateLine, az as OrderCreateMeta, aA as OrderCreatePayload, aB as OrderCreatePayment, aC as OrderCreateTaxId, aD as OrderCreateTaxRate, aE as OrderCreateTotalMismatchData, aF as OrderRefundAmountMismatchData, aG as OrderRefundEnvelope, aH as OrderRefundLine, aI as OrderRefundNoOpenSessionData, aJ as OrderRefundOrderStateData, aK as OrderRefundPayload, aL as OrderRefundQuantityExceedsData, aM as OrderRefundRejectionCode, aN as OrderRefundResult, aO as OrderReopenEnvelope, aP as OrderReopenOrderStateData, aQ as OrderReopenPayload, aR as OrderReopenPaymentInMotionData, aS as OrderReopenRejectionCode, aT as OrderReopenResult, aU as OrderUpdateEnvelope, aV as OrderUpdateFee, aW as OrderUpdateLine, aX as OrderUpdatePayload, aY as OrderUpdatePayment, aZ as OrderUpdateRejectionCode, a_ as OrderUpdateReopenRequiredData, a$ as OrderUpdateShipping, b0 as PROTOCOL_HEADER, b1 as PROTOCOL_VERSION, b2 as PaymentHardware, b3 as PaymentKind, b4 as PaymentMethodDescriptor, b5 as PaymentMethodKind, b6 as PaymentOfflineMode, b7 as PaymentRounding, b8 as PaymentTipsMode, b9 as PaymentTransport, ba as PendingPairing, bb as PricedRefund, bc as PricedRefundLine, bd as ProductCategory, be as ProductPrice, bf as ProductTerm, bg as ReceiptTemplate, bh as ReceiptTemplateKind, bi as RefundableLine, bj as RefundableOrderLine, bk as RefusedOrderSettlement, bl as RegisterApprovalInvalidData, bm as RegisterApprovalRequiredData, bn as RegisterClosureSubmitPayload, bo as RegisterCommandEnvelope, bp as RegisterCommandResult, bq as RegisterCommandType, br as RegisterInfo, bs as RegisterMovementRecordPayload, bt as RegisterMovementVoidPayload, bu as RegisterSessionAlreadyOpenData, bv as RegisterSessionOpenPayload, bw as RegisterSessionSupersededData, bx as RegisterSessionTransitionPayload, by as RemoteIdEntry, bz as ResolvedPrice, bA as RoundingMode, bB as ServerCapabilities, bC as SettleCancelRequest, bD as SettleOutcome, bE as SettlePayRequest, bF as SettlePayResult, bG as SettlePayment, bH as SettleReverseLeg, bI as SettleReverseRequest, bJ as SettleReverseResult, bK as SignInResult, bL as SignalMessage, bM as StockStatus, bN as StoreClosure, bO as StoreOrder, bP as StoreOrderCharge, bQ as StoreOrderLine, bR as StoreOrderPage, bS as StoreOrderPayment, bT as StoreOrderRefund, bU as StoreOrderRefundLine, bV as StoreRefund, bW as StoreRefundOrphan, bX as StoreRefundPage, bY as StoreSettings, bZ as StoreSettingsChoice, b_ as StoreTaxClass, b$ as StoreTaxRate, c0 as StoreTaxRateLocation, c1 as TaxRounding, c2 as TillDevice, c3 as UpdateRequired, c4 as VariantOptionGroup, c5 as cashierPermissions, c6 as classifyFailure, c7 as currencySymbol, c8 as customerTraits, c9 as defaultPaymentMethods, ca as deriveSessionFigures, cb as deriveVariance, cc as formatMoney, cd as isCashierPermission, ce as isCommandBatchResponse, cf as legMethodId, cg as minorToMajor, ch as minorUnitDigits, ci as moneyFromDecimalString, cj as moneyFromMajor, ck as moneyToMajor, cl as neutralFailureClass, cm as noResponse, cn as normalizeMoneyText, co as parseCommandResult, cp as parseInfoCapabilities, cq as parseLineTax, cr as parseTaxRounding, cs as paymentMethodOf, ct as priceRefund, cu as ratePpmFromPercent, cv as refundableLines, cw as resolveCapabilities, cx as resolvePrice, cy as resolvePriceRange, cz as roundRatio, cA as wireMethodOf } from './refund-share-BnDEtU7J.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ReactNode } from 'react';
5
5
  import 'rxdb';
@@ -2324,6 +2324,8 @@ interface RefusedOrderSettlement {
2324
2324
  interface TallyConnector {
2325
2325
  /** True when the store's live order-line totals shrink as units are returned while `quantity` stays the sold quantity (Medusa). The refund form then refuses a partial refund of a line without `soldTotalMinor`/`soldTaxMinor`. Absent: line totals are as sold. */
2326
2326
  lineTotalsShrinkOnReturn?: boolean;
2327
+ /** True when the store turns each discounted order line into its own taxed row and rounds each taxed row once (Vendure, ADR-048). The till's rounding tolerance then also counts the order's discounted lines. Absent: discounts are not separate taxed rows. */
2328
+ discountsAreTaxedRows?: boolean;
2327
2329
  /** Unique identifier for this connector */
2328
2330
  id: string;
2329
2331
  /** Human-readable name */
@@ -1,5 +1,5 @@
1
- import { J as CommandError, aA as OrderCreatePayload, H as CommandEnvelope, bo as RegisterCommandEnvelope, A as AnyCommandEnvelope, K as CommandResult, B as BatchTooLargeBody, G as CommandBatchResponse, C as CommandWarning, bp as RegisterCommandResult, aM as OrderRefundRejectionCode, aS as OrderReopenRejectionCode, aZ as OrderUpdateRejectionCode, aa as DisplaySignalling, b as SyncContext, ab as DisplaySignallingContext } from '../refund-share-DVf_0clD.js';
2
- export { N as CommandResultError, ae as EarlierRefund, aj as MAX_COMMANDS_PER_BATCH, ak as NEEDS_ADMIN_MESSAGE_MAX, ao as ORDER_NOTE_MAX, aw as OrderCreateDisplay, aD as OrderCreateTaxRate, bb as PricedRefund, bc as PricedRefundLine, bi as RefundableLine, bj as RefundableOrderLine, bA as RoundingMode, cB as currencyDecimals, ca as deriveSessionFigures, cb as deriveVariance, cC as majorToMinor, cg as minorToMajor, ch as minorUnitDigits, co as parseCommandResult, ct as priceRefund, cu as ratePpmFromPercent, cv as refundableLines, cz as roundRatio } from '../refund-share-DVf_0clD.js';
1
+ import { J as CommandError, aA as OrderCreatePayload, H as CommandEnvelope, bo as RegisterCommandEnvelope, A as AnyCommandEnvelope, K as CommandResult, B as BatchTooLargeBody, G as CommandBatchResponse, C as CommandWarning, bp as RegisterCommandResult, aM as OrderRefundRejectionCode, aS as OrderReopenRejectionCode, aZ as OrderUpdateRejectionCode, aa as DisplaySignalling, b as SyncContext, ab as DisplaySignallingContext } from '../refund-share-BnDEtU7J.js';
2
+ export { N as CommandResultError, ae as EarlierRefund, aj as MAX_COMMANDS_PER_BATCH, ak as NEEDS_ADMIN_MESSAGE_MAX, ao as ORDER_NOTE_MAX, aw as OrderCreateDisplay, aD as OrderCreateTaxRate, bb as PricedRefund, bc as PricedRefundLine, bi as RefundableLine, bj as RefundableOrderLine, bA as RoundingMode, cB as currencyDecimals, ca as deriveSessionFigures, cb as deriveVariance, cC as majorToMinor, cg as minorToMajor, ch as minorUnitDigits, co as parseCommandResult, ct as priceRefund, cu as ratePpmFromPercent, cv as refundableLines, cz as roundRatio } from '../refund-share-BnDEtU7J.js';
3
3
  import 'rxdb';
4
4
  import 'rxjs';
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tallyui/core",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "type": "module",
5
5
  "description": "Core interfaces, traits, and context providers for Tally UI",
6
6
  "main": "./dist/index.js",
@@ -356,6 +356,8 @@ export interface RefusedOrderSettlement {
356
356
  export interface TallyConnector {
357
357
  /** True when the store's live order-line totals shrink as units are returned while `quantity` stays the sold quantity (Medusa). The refund form then refuses a partial refund of a line without `soldTotalMinor`/`soldTaxMinor`. Absent: line totals are as sold. */
358
358
  lineTotalsShrinkOnReturn?: boolean;
359
+ /** True when the store turns each discounted order line into its own taxed row and rounds each taxed row once (Vendure, ADR-048). The till's rounding tolerance then also counts the order's discounted lines. Absent: discounts are not separate taxed rows. */
360
+ discountsAreTaxedRows?: boolean;
359
361
  /** Unique identifier for this connector */
360
362
  id: string;
361
363
  /** Human-readable name */