@tallyui/core 3.5.1 → 3.5.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.
|
@@ -51,6 +51,11 @@ type CommandWarning = {
|
|
|
51
51
|
*/
|
|
52
52
|
bridgeMinor?: number;
|
|
53
53
|
} | {
|
|
54
|
+
/**
|
|
55
|
+
* One per variant this sale took below zero stock. `quantity` is the units of this sale that
|
|
56
|
+
* stock did not cover (medusapos plugin 0.2.0 and later); older servers sent the variant's
|
|
57
|
+
* whole shortfall under the same field.
|
|
58
|
+
*/
|
|
54
59
|
code: 'insufficient_stock';
|
|
55
60
|
variantId: string;
|
|
56
61
|
quantity: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RxReplicationPullStreamItem, RxReplicationWriteToMasterRow, RxJsonSchema } from 'rxdb';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { C as CommandWarning } from './commands-
|
|
4
|
-
export { A as AnyCommandEnvelope, B as BatchTooLargeBody, a as COMMANDS_PATH, b as CommandBatchRequest, c as CommandBatchResponse, d as CommandEnvelope, e as CommandError, f as CommandResult, g as CommandServerRefs, h as CommandStatus, i as CommandType, M as MAX_COMMANDS_PER_BATCH, O as OrderCreateDisplay, j as OrderCreateEnvelope, k as OrderCreateLine, l as OrderCreatePayload, m as OrderCreatePayment, n as OrderCreateTaxRate, P as PROTOCOL_HEADER, o as PROTOCOL_VERSION, p as PaymentMethodKind, R as RegisterClosureSubmitPayload, q as RegisterCommandEnvelope, r as RegisterCommandResult, s as RegisterCommandType, t as RegisterMovementRecordPayload, u as RegisterMovementVoidPayload, v as RegisterSessionOpenPayload, w as RegisterSessionTransitionPayload, x as isCommandBatchResponse } from './commands-
|
|
3
|
+
import { C as CommandWarning } from './commands-CKuZYaV7.js';
|
|
4
|
+
export { A as AnyCommandEnvelope, B as BatchTooLargeBody, a as COMMANDS_PATH, b as CommandBatchRequest, c as CommandBatchResponse, d as CommandEnvelope, e as CommandError, f as CommandResult, g as CommandServerRefs, h as CommandStatus, i as CommandType, M as MAX_COMMANDS_PER_BATCH, O as OrderCreateDisplay, j as OrderCreateEnvelope, k as OrderCreateLine, l as OrderCreatePayload, m as OrderCreatePayment, n as OrderCreateTaxRate, P as PROTOCOL_HEADER, o as PROTOCOL_VERSION, p as PaymentMethodKind, R as RegisterClosureSubmitPayload, q as RegisterCommandEnvelope, r as RegisterCommandResult, s as RegisterCommandType, t as RegisterMovementRecordPayload, u as RegisterMovementVoidPayload, v as RegisterSessionOpenPayload, w as RegisterSessionTransitionPayload, x as isCommandBatchResponse } from './commands-CKuZYaV7.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as CommandError, l as OrderCreatePayload, d as CommandEnvelope, q as RegisterCommandEnvelope, A as AnyCommandEnvelope, f as CommandResult, B as BatchTooLargeBody, c as CommandBatchResponse, C as CommandWarning, r as RegisterCommandResult } from '../commands-
|
|
2
|
-
export { M as MAX_COMMANDS_PER_BATCH, O as OrderCreateDisplay, n as OrderCreateTaxRate } from '../commands-
|
|
1
|
+
import { e as CommandError, l as OrderCreatePayload, d as CommandEnvelope, q as RegisterCommandEnvelope, A as AnyCommandEnvelope, f as CommandResult, B as BatchTooLargeBody, c as CommandBatchResponse, C as CommandWarning, r as RegisterCommandResult } from '../commands-CKuZYaV7.js';
|
|
2
|
+
export { M as MAX_COMMANDS_PER_BATCH, O as OrderCreateDisplay, n as OrderCreateTaxRate } from '../commands-CKuZYaV7.js';
|
|
3
3
|
|
|
4
4
|
/** ISO 4217 minor-unit exponent as resolved by Intl (which rejects malformed codes); depends on the runtime's ICU data. */
|
|
5
5
|
declare function currencyDecimals(currency: string): number;
|
package/package.json
CHANGED
package/src/types/commands.ts
CHANGED
|
@@ -52,7 +52,14 @@ export type CommandWarning =
|
|
|
52
52
|
*/
|
|
53
53
|
bridgeMinor?: number;
|
|
54
54
|
}
|
|
55
|
-
| {
|
|
55
|
+
| {
|
|
56
|
+
/**
|
|
57
|
+
* One per variant this sale took below zero stock. `quantity` is the units of this sale that
|
|
58
|
+
* stock did not cover (medusapos plugin 0.2.0 and later); older servers sent the variant's
|
|
59
|
+
* whole shortfall under the same field.
|
|
60
|
+
*/
|
|
61
|
+
code: 'insufficient_stock'; variantId: string; quantity: number;
|
|
62
|
+
}
|
|
56
63
|
| {
|
|
57
64
|
/**
|
|
58
65
|
* One warning per tax rate whose tax differs by more than the server's rounding tolerance
|