@booki-aui/core 0.3.3 → 0.4.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.
Files changed (118) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/activity.js +6 -2
  3. package/dist/aging.js +6 -2
  4. package/dist/approval.js +6 -2
  5. package/dist/attachments.js +6 -2
  6. package/dist/audit.js +6 -2
  7. package/dist/{chunk-U2M6WCUI.js → chunk-2DAEO7ZI.js} +2 -2
  8. package/dist/{chunk-62QTK3RO.js → chunk-2JWD25RD.js} +3 -3
  9. package/dist/chunk-54VPA5IO.js +15 -0
  10. package/dist/chunk-54VPA5IO.js.map +1 -0
  11. package/dist/{chunk-5YV57WVB.js → chunk-5LFO4F23.js} +2 -2
  12. package/dist/{chunk-BIFYH2Y6.js → chunk-5XMQENFN.js} +2 -2
  13. package/dist/{chunk-6SFOABFT.js → chunk-65YBZVDN.js} +2 -2
  14. package/dist/chunk-6QCJ2ZBB.js +55 -0
  15. package/dist/chunk-6QCJ2ZBB.js.map +1 -0
  16. package/dist/{chunk-CBOKL727.js → chunk-DONOCNQS.js} +4 -4
  17. package/dist/chunk-DONOCNQS.js.map +1 -0
  18. package/dist/chunk-EIM3HADW.js +31 -0
  19. package/dist/chunk-EIM3HADW.js.map +1 -0
  20. package/dist/{chunk-OKVUS75Z.js → chunk-F2DHORUA.js} +62 -25
  21. package/dist/chunk-F2DHORUA.js.map +1 -0
  22. package/dist/chunk-GCSGHKXS.js +20 -0
  23. package/dist/chunk-GCSGHKXS.js.map +1 -0
  24. package/dist/{chunk-XDAXPC27.js → chunk-I7QGX3UY.js} +2 -2
  25. package/dist/{chunk-VCBYT2E7.js → chunk-IRG7U7OI.js} +2 -2
  26. package/dist/{chunk-HCMLRRN4.js → chunk-J6PB5LMQ.js} +3 -3
  27. package/dist/{chunk-ZVBXNHFR.js → chunk-K3LOJGUG.js} +4 -4
  28. package/dist/{chunk-V5DTXL3H.js → chunk-MA536GKU.js} +2 -2
  29. package/dist/{chunk-D7CU3G3K.js → chunk-MVRBXSBJ.js} +2 -2
  30. package/dist/{chunk-KDCB6RKO.js → chunk-NP2S3BCP.js} +3 -3
  31. package/dist/{chunk-BUMQBGO3.js → chunk-NZ3APVAI.js} +43 -24
  32. package/dist/chunk-NZ3APVAI.js.map +1 -0
  33. package/dist/{chunk-MN3MBEQ7.js → chunk-OCOEKN4O.js} +2 -2
  34. package/dist/{chunk-KAFDCP6S.js → chunk-PRRF4UV4.js} +2 -2
  35. package/dist/{chunk-6IVK3UQA.js → chunk-T4T3U4OS.js} +2 -2
  36. package/dist/{chunk-B45JAHB5.js → chunk-TA5KB4W4.js} +3 -3
  37. package/dist/{chunk-SRVXIZKH.js → chunk-TVYI5YJI.js} +3 -3
  38. package/dist/{chunk-VOA56E4X.js → chunk-U6CQNW5O.js} +2 -2
  39. package/dist/{chunk-EOY5C5DL.js → chunk-V2FS3TLG.js} +2 -2
  40. package/dist/{chunk-KMXOHG6A.js → chunk-VCGG3SFN.js} +2 -2
  41. package/dist/{chunk-4FRT7XRX.js → chunk-VLV6CMVP.js} +2 -2
  42. package/dist/{chunk-MEZZFV6D.js → chunk-W72GPG4R.js} +12 -3
  43. package/dist/chunk-W72GPG4R.js.map +1 -0
  44. package/dist/{chunk-TTD6VZNY.js → chunk-YJY536ZO.js} +2 -2
  45. package/dist/{chunk-XKUL5BDJ.js → chunk-YMNDDLSY.js} +2 -2
  46. package/dist/{chunk-EGUAYFGH.js → chunk-YVF4UCRM.js} +25 -44
  47. package/dist/chunk-YVF4UCRM.js.map +1 -0
  48. package/dist/{chunk-JMOLS4U5.js → chunk-YZ3UV5S3.js} +2 -2
  49. package/dist/{chunk-KXYJZ6HG.js → chunk-ZACNAMJC.js} +2 -2
  50. package/dist/client-request.js +6 -2
  51. package/dist/close.js +6 -2
  52. package/dist/document-signoff.d.ts +1 -1
  53. package/dist/document-signoff.js +6 -2
  54. package/dist/expense.js +6 -2
  55. package/dist/findings.js +6 -2
  56. package/dist/fixed-assets.js +7 -3
  57. package/dist/funnel.js +6 -2
  58. package/dist/fx.js +7 -3
  59. package/dist/index.d.ts +1 -1
  60. package/dist/index.js +57 -53
  61. package/dist/invoice.js +6 -2
  62. package/dist/ledger.js +7 -3
  63. package/dist/locale/index.js +3 -2
  64. package/dist/messages.d.ts +2 -2
  65. package/dist/messages.js +6 -2
  66. package/dist/money.d.ts +3 -2
  67. package/dist/money.js +3 -2
  68. package/dist/msg-DvA8vxX9.d.ts +694 -0
  69. package/dist/msg-amount.d.ts +22 -0
  70. package/dist/msg-amount.js +14 -0
  71. package/dist/msg-amount.js.map +1 -0
  72. package/dist/msg.d.ts +1 -679
  73. package/dist/msg.js +8 -3
  74. package/dist/payment-batch.js +6 -2
  75. package/dist/period-lock.js +7 -3
  76. package/dist/period.js +6 -2
  77. package/dist/permissions.js +6 -2
  78. package/dist/pipeline.js +6 -2
  79. package/dist/reconciliation.js +6 -2
  80. package/dist/recurring.js +6 -2
  81. package/dist/server.d.ts +1 -1
  82. package/dist/server.js +20 -16
  83. package/dist/server.js.map +1 -1
  84. package/dist/supplier-invoice.js +6 -2
  85. package/dist/table.js +6 -2
  86. package/dist/vat-return.js +7 -3
  87. package/dist/voucher.js +10 -6
  88. package/package.json +6 -2
  89. package/dist/chunk-BUMQBGO3.js.map +0 -1
  90. package/dist/chunk-CBOKL727.js.map +0 -1
  91. package/dist/chunk-EGUAYFGH.js.map +0 -1
  92. package/dist/chunk-MEZZFV6D.js.map +0 -1
  93. package/dist/chunk-OKVUS75Z.js.map +0 -1
  94. /package/dist/{chunk-U2M6WCUI.js.map → chunk-2DAEO7ZI.js.map} +0 -0
  95. /package/dist/{chunk-62QTK3RO.js.map → chunk-2JWD25RD.js.map} +0 -0
  96. /package/dist/{chunk-5YV57WVB.js.map → chunk-5LFO4F23.js.map} +0 -0
  97. /package/dist/{chunk-BIFYH2Y6.js.map → chunk-5XMQENFN.js.map} +0 -0
  98. /package/dist/{chunk-6SFOABFT.js.map → chunk-65YBZVDN.js.map} +0 -0
  99. /package/dist/{chunk-XDAXPC27.js.map → chunk-I7QGX3UY.js.map} +0 -0
  100. /package/dist/{chunk-VCBYT2E7.js.map → chunk-IRG7U7OI.js.map} +0 -0
  101. /package/dist/{chunk-HCMLRRN4.js.map → chunk-J6PB5LMQ.js.map} +0 -0
  102. /package/dist/{chunk-ZVBXNHFR.js.map → chunk-K3LOJGUG.js.map} +0 -0
  103. /package/dist/{chunk-V5DTXL3H.js.map → chunk-MA536GKU.js.map} +0 -0
  104. /package/dist/{chunk-D7CU3G3K.js.map → chunk-MVRBXSBJ.js.map} +0 -0
  105. /package/dist/{chunk-KDCB6RKO.js.map → chunk-NP2S3BCP.js.map} +0 -0
  106. /package/dist/{chunk-MN3MBEQ7.js.map → chunk-OCOEKN4O.js.map} +0 -0
  107. /package/dist/{chunk-KAFDCP6S.js.map → chunk-PRRF4UV4.js.map} +0 -0
  108. /package/dist/{chunk-6IVK3UQA.js.map → chunk-T4T3U4OS.js.map} +0 -0
  109. /package/dist/{chunk-B45JAHB5.js.map → chunk-TA5KB4W4.js.map} +0 -0
  110. /package/dist/{chunk-SRVXIZKH.js.map → chunk-TVYI5YJI.js.map} +0 -0
  111. /package/dist/{chunk-VOA56E4X.js.map → chunk-U6CQNW5O.js.map} +0 -0
  112. /package/dist/{chunk-EOY5C5DL.js.map → chunk-V2FS3TLG.js.map} +0 -0
  113. /package/dist/{chunk-KMXOHG6A.js.map → chunk-VCGG3SFN.js.map} +0 -0
  114. /package/dist/{chunk-4FRT7XRX.js.map → chunk-VLV6CMVP.js.map} +0 -0
  115. /package/dist/{chunk-TTD6VZNY.js.map → chunk-YJY536ZO.js.map} +0 -0
  116. /package/dist/{chunk-XKUL5BDJ.js.map → chunk-YMNDDLSY.js.map} +0 -0
  117. /package/dist/{chunk-JMOLS4U5.js.map → chunk-YZ3UV5S3.js.map} +0 -0
  118. /package/dist/{chunk-KXYJZ6HG.js.map → chunk-ZACNAMJC.js.map} +0 -0
package/dist/msg.d.ts CHANGED
@@ -1,679 +1 @@
1
- /**
2
- * The English sentence for every code. Core renders these with `msg`.
3
- * Generated from the catalogue; edit the text here and its Norwegian twin
4
- * in messages-nb.ts together.
5
- */
6
- declare const EN: {
7
- readonly "word.none": "none";
8
- readonly "word.draft": "draft";
9
- readonly "word.finalized": "finalized";
10
- readonly "word.paid": "paid";
11
- readonly "word.void": "void";
12
- readonly "word.new": "new";
13
- readonly "word.coded": "coded";
14
- readonly "word.approved": "approved";
15
- readonly "word.rejected": "rejected";
16
- readonly "word.posted": "posted";
17
- readonly "word.submitted": "submitted";
18
- readonly "word.ready": "ready";
19
- readonly "word.done": "done";
20
- readonly "word.signed": "signed";
21
- readonly "word.skipped": "skipped";
22
- readonly "word.released": "released";
23
- readonly "word.pending": "pending";
24
- readonly "word.escalated": "escalated";
25
- readonly "word.confirmed": "confirmed";
26
- readonly "word.withdrawn": "withdrawn";
27
- readonly "word.accepted": "accepted";
28
- readonly "word.answered": "answered";
29
- readonly "word.sent": "sent";
30
- readonly "word.open": "open";
31
- readonly "word.won": "won";
32
- readonly "word.lost": "lost";
33
- readonly "word.soft-closed": "soft-closed";
34
- readonly "word.hard-closed": "hard-closed";
35
- readonly "word.suggested": "suggested";
36
- readonly "word.receivable": "receivable";
37
- readonly "word.payable": "payable";
38
- readonly "word.expense": "expense";
39
- readonly "word.mileage": "mileage";
40
- readonly "word.per-diem": "per-diem";
41
- readonly "period.posting-date-format": "A posting date is YYYY-MM-DD, got {value}.";
42
- readonly "period.not-a-code": "\"{code}\" is not a period code. Use 2025, 2025-03 or 2025-T2.";
43
- readonly "period.hard-closed": "Period {code} is closed. Nothing can be posted on {date}; post the correction in an open period.";
44
- readonly "period.soft-closed": "Period {code} is closed for ordinary posting. Posting on {date} needs someone allowed to adjust a closed period.";
45
- readonly "period.not-a-status": "\"{status}\" is not a period status. Use open, soft-closed or hard-closed.";
46
- readonly "period.hard-closed-reopen": "Period {code} is hard-closed and cannot be reopened.";
47
- readonly "batch.no-payments": "The batch has no payments.";
48
- readonly "batch.value-date-format": "The value date must be YYYY-MM-DD, got \"{value}\".";
49
- readonly "batch.no-debit-account": "The batch has no account to pay from.";
50
- readonly "batch.duplicate-id": "Payment id \"{id}\" appears twice.";
51
- readonly "batch.amount-format": "Payment \"{id}\": the amount is a whole number of minor units above zero, got {value}.";
52
- readonly "batch.no-creditor-account": "Payment \"{id}\" has no account to pay to.";
53
- readonly "batch.duplicate-payments": "Payments {idsAndList} look like the same payment: same account, amount and reference. Remove one or give them different references.";
54
- readonly "batch.released": "Batch \"{id}\" is released and cannot be changed.";
55
- readonly "batch.already-released": "Batch \"{id}\" is already released.";
56
- readonly "batch.approver-required": "An approval needs the id of the person approving.";
57
- readonly "batch.preparer-cannot-approve": "\"{who}\" prepared this batch and cannot approve it. Someone else must.";
58
- readonly "batch.not-approvable": "The batch cannot be approved yet: {issues}";
59
- readonly "batch.already-approved-by": "\"{who}\" has already approved this batch. It needs a different person.";
60
- readonly "batch.not-releasable": "The batch cannot be released: {issues}";
61
- readonly "batch.required-approvals": "requiredApprovals is a whole number of at least 1, not {value}.";
62
- readonly "batch.approvals-missing": "The batch has {current} of {required} approvals{stale}.";
63
- readonly "batch.approvals-stale": " ({count} earlier approval(s) no longer count because the batch changed)";
64
- readonly "voucher.amount-format": "{field} must be a non-negative integer in minor units (e.g. 12500 = 125.00), got {value}";
65
- readonly "voucher.account-required": "Voucher line account must be a non-empty account number, got {value}";
66
- readonly "voucher.debit-and-credit": "A voucher line takes a debit or a credit, not both (account {account}: debitMinor {debit}, creditMinor {credit}). Split it into two lines.";
67
- readonly "voucher.account-needed": "A line needs an account: addLine(\"7140\") or addLine({ account: \"7140\", debitMinor: 250000 }). Accounts: {sample}{more}.";
68
- readonly "voucher.unknown-account": "Account {account} is not in the chart of accounts. Valid accounts include: {sample}.";
69
- readonly "voucher.unknown-account-more": "Account {account} is not in the chart of accounts. Valid accounts include: {sample}, … ({count} accounts).";
70
- readonly "voucher.unknown-vat-code": "No VAT code {code}. Valid codes: {codes}.";
71
- readonly "voucher.vat-code-not-allowed": "Account {account} cannot be posted with VAT code {code}. It allows: {codes}.";
72
- readonly "voucher.unknown-department": "No department {code}. Valid departments include: {sample}.";
73
- readonly "voucher.unknown-project": "No project {code}. Valid projects include: {sample}.";
74
- readonly "voucher.unknown-dimension-kind": "No {kind} {code}. Valid {kind}s include: {sample}.";
75
- readonly "voucher.unknown-dimension": "No dimension {key}. Dimensions: {keys}.";
76
- readonly "voucher.unknown-dimension-value": "No {name} {code}. Valid values include: {sample}.";
77
- readonly "voucher.vat-twice": "Line {id} on {account} has VAT code {code} ({percent} %), so its amount includes VAT and the VAT is posted for it. The separate line on {vatAccount} counts the VAT twice. Enter {account} with the amount including VAT and remove the {vatAccount} line, or remove the VAT code from line {id}.";
78
- readonly "voucher.no-amount": "The voucher has no amount: every line is zero.";
79
- readonly "voucher.no-lines": "The voucher has no lines.";
80
- readonly "voucher.out-of-balance": "Out of balance by {difference} minor units (debit minus credit).";
81
- readonly "voucher.line-issue": "Line {id}: {message}";
82
- readonly "voucher.line-needs-department": "Line {id} (account {account}) needs a department.";
83
- readonly "voucher.line-needs-project": "Line {id} (account {account}) needs a project.";
84
- readonly "voucher.line-needs-dimension": "Line {id} (account {account}) needs a {name}.";
85
- readonly "voucher.line-vat-code": "Line {id} (account {account}) has VAT code {code}; it allows {codes}.";
86
- readonly "voucher.not-postable": "Voucher is not postable. {issues}";
87
- readonly "voucher.unbalanced": "Voucher out of balance by {difference} minor units";
88
- readonly "voucher.sales-amount-format": "amountMinor must be a non-negative integer, got {value}";
89
- readonly "word.bank-line": "bank line";
90
- readonly "word.open-post": "open post";
91
- readonly "reconciliation.only-a-person-decides": "Match {id}: only a person approves or rejects a match, so \"{status}\" is refused. Leave the status out, or use suggestMatch: the match becomes a suggestion and the person decides.";
92
- readonly "reconciliation.decided-stays": "Match {id} is {status} by a person and stays as it is. Give it back unchanged; to undo it, a person rejects or reopens it.";
93
- readonly "reconciliation.set-matches-shape": "setMatches takes an array of matches, each with bankLineIds and postIds. For one match, use suggestMatch([\"bankLineId\"], [\"openPostId\"]).";
94
- readonly "reconciliation.ids-required": "A match needs at least one {what} id, got {value}";
95
- readonly "reconciliation.id-twice": "A {what} id appears twice in {ids}";
96
- readonly "reconciliation.no-bank-line": "No bank line \"{id}\". Unmatched bank lines: {sample}.";
97
- readonly "reconciliation.bank-line-taken": "Bank line \"{id}\" is already in a match. Reject or withdraw that match first.";
98
- readonly "reconciliation.no-open-post": "No open post \"{id}\". Unmatched open posts: {sample}.";
99
- readonly "reconciliation.open-post-taken": "Open post \"{id}\" is already in a match. Reject or withdraw that match first.";
100
- readonly "reconciliation.sides-differ": "The two sides differ by {difference} minor units (bank {bank}, ledger {ledger}). A match must sum to the same amount.";
101
- readonly "reconciliation.not-reconciled": "Not reconciled: {unmatched} bank line(s) unmatched, {suggested} waiting for approval, {outstanding} minor units outstanding.";
102
- readonly "approval.chain-empty": "An approval chain needs at least one level.";
103
- readonly "approval.level-twice": "Approval level id \"{id}\" appears twice.";
104
- readonly "approval.level-no-approvers": "Approval level \"{id}\" has no approvers.";
105
- readonly "approval.amount-format": "An approval amount is a whole, non-negative number of minor units, got {value}.";
106
- readonly "approval.already-decided": "Request \"{id}\" is already {status}. Nothing is waiting for a decision.";
107
- readonly "approval.decider-required": "A decision needs the id of the person deciding.";
108
- readonly "approval.requester-cannot-decide": "\"{who}\" asked for this approval and cannot decide it. Someone else must.";
109
- readonly "approval.nobody-escalate-or-change": "nobody; escalate or change the chain";
110
- readonly "approval.nobody-escalate": "nobody; escalate";
111
- readonly "approval.not-an-approver": "\"{who}\" is not an approver at level \"{level}\". Who may decide now: {mayDecide}.";
112
- readonly "approval.over-limit": "The limit for \"{id}\" is {limit} minor units and the amount is {amount}. Who may decide now: {mayDecide}.";
113
- readonly "approval.approved-earlier-level": "\"{who}\" already approved an earlier level. Each level needs a different person.";
114
- readonly "approval.no-escalation": "Level \"{level}\" has nobody to escalate to.";
115
- readonly "approval.already-escalated": "Level \"{level}\" is already escalated to \"{to}\".";
116
- readonly "approval.rejected": "Request \"{id}\" was rejected.";
117
- readonly "approval.waiting": "Request \"{id}\" waits at level \"{level}\". Who may decide: {mayDecide}.";
118
- readonly "close.no-task": "No close task \"{id}\". Tasks: {tasks}.";
119
- readonly "close.task-twice": "Close task id \"{id}\" appears twice.";
120
- readonly "close.missing-dependency": "Close task \"{id}\" depends on \"{dep}\", which does not exist.";
121
- readonly "close.loop": "Close tasks depend on each other in a loop: {path}.";
122
- readonly "close.already-finished": "Close task \"{id}\" is already {status}.";
123
- readonly "close.waits-for": "Close task \"{id}\" waits for: {blockers}.";
124
- readonly "voucher.extras-not-object": "The fifth addLine argument is an object like {\"vatCode\":\"…\",\"department\":\"…\",\"project\":\"…\"}; got {got}.";
125
- readonly "voucher.lines-not-list": "setLines takes a list of voucher lines; got {got}.";
126
- readonly "voucher.line-no-id": "Voucher line {index} needs a string id.";
127
- readonly "voucher.line-twice": "Voucher line id \"{id}\" appears twice.";
128
- readonly "reconciliation.match-decided": "Match \"{id}\" is already {status}.";
129
- readonly "reconciliation.match-not-suggested": "Match \"{id}\" is {status}. Only a suggestion can be withdrawn.";
130
- readonly "agent.not-text": "{action} takes text, like \"12345678903\"; got {got}.";
131
- readonly "agent.needs-person": "Needs a person: \"{confirm}\". Ask them to do it themselves.";
132
- readonly "agent-token.secret-short": "An agent token secret is at least 32 characters.";
133
- readonly "agent-token.ttl": "ttlSeconds is a whole number from 1 to 86400, not {value}.";
134
- readonly "agent-token.grant": "An agent token needs agentId and onBehalfOf.";
135
- readonly "agent.person-only": "This is a person's decision and an agent may not make it, whatever the app allows: {confirm}.";
136
- readonly "attestation.person-only": "Setting an attestation to \"{status}\" is a person's decision: a person approves, rejects or escalates it with the buttons.";
137
- readonly "close.no-actor": "Say who did it: the person is empty.";
138
- readonly "close.not-done": "Close task \"{id}\" is not done yet, so it cannot be signed off.";
139
- readonly "close.already-signed": "Close task \"{id}\" is already signed off by \"{by}\".";
140
- readonly "close.doer-cannot-sign": "\"{by}\" did close task \"{id}\" and cannot also sign it off. A second person must.";
141
- readonly "close.reopen-blocked": "Close task \"{id}\" cannot be reopened while these build on it: {dependents}. Reopen them first.";
142
- readonly "close.not-ready": "Not ready to close: {open} task(s) open, {awaiting} waiting for sign-off.";
143
- readonly "close.not-ready-with-ready": "Not ready to close: {open} task(s) open, {awaiting} waiting for sign-off. Can be done now: {ready}.";
144
- readonly "invoice.line-missing": "Line {id} needs {fields}. A line takes: description, quantity (2.5) or quantityMilli (2500), unitPriceMinor (98000 is 980,00), taxRate (25 is 25 %) or taxRateBp (2500), taxCategory (S, Z, E, AE, K), discountPercent or discountBp.";
145
- readonly "invoice.line-shape": "Line {id}: give the line as one object, for example with description \"Kursdag\", quantity 2.5, unitPriceMinor 98000 and taxRate 25. A line takes: description, quantity (2.5) or quantityMilli (2500), unitPriceMinor (98000 is 980,00), taxRate (25 is 25 %) or taxRateBp (2500), taxCategory (S, Z, E, AE, K), discountPercent or discountBp.";
146
- readonly "invoice.line-unknown-field": "Line {id}: no field \"{field}\". A line takes: description, quantity (2.5) or quantityMilli (2500), unitPriceMinor (98000 is 980,00), taxRate (25 is 25 %) or taxRateBp (2500), taxCategory (S, Z, E, AE, K), discountPercent or discountBp.";
147
- readonly "invoice.line-not-a-number": "Line {id}: {field} must be a number, got {value}. A line takes: description, quantity (2.5) or quantityMilli (2500), unitPriceMinor (98000 is 980,00), taxRate (25 is 25 %) or taxRateBp (2500), taxCategory (S, Z, E, AE, K), discountPercent or discountBp.";
148
- readonly "invoice.what.quantity": "quantity (in thousandths)";
149
- readonly "invoice.what.unit-price": "unit price (minor units)";
150
- readonly "invoice.what.discount": "discount (basis points)";
151
- readonly "invoice.what.tax-rate": "tax rate (basis points)";
152
- readonly "invoice.line-whole": "Line \"{id}\": {what} is a whole number of at least {min}, got {value}.";
153
- readonly "invoice.discount-too-high": "Line \"{id}\": a discount cannot be more than 10000 basis points (100%).";
154
- readonly "invoice.unknown-tax-category": "Line \"{id}\": \"{category}\" is not a tax category. Use one of {categories}.";
155
- readonly "invoice.category-no-tax": "Line \"{id}\": tax category {category} carries no tax, so the rate must be 0.";
156
- readonly "invoice.standard-needs-rate": "Line \"{id}\": category S needs a rate above 0. Use Z for zero rated.";
157
- readonly "invoice.locked": "Invoice {number} is {status} and cannot be edited. Correct it with a credit note.";
158
- readonly "invoice.credit-note-locked": "Credit note {number} is {status} and cannot be edited. Correct it with a credit note.";
159
- readonly "invoice.no-lines": "The invoice has no lines.";
160
- readonly "invoice.customer-vat-number": "Reverse charge (AE) and intra-community (K) lines need the customer's VAT number.";
161
- readonly "invoice.credit-note-needs-original": "A credit note must say which invoice it corrects.";
162
- readonly "invoice.credit-note-original-missing": "The credit note points at invoice \"{id}\", which was not found.";
163
- readonly "invoice.original-not-creditable": "Invoice \"{id}\" is {status}; only a finalized or paid invoice can be credited.";
164
- readonly "invoice.credit-too-large": "The credit note is {gross} minor units, but only {open} is left to credit on invoice {number}.";
165
- readonly "invoice.only-credit-note-points": "Only a credit note can point at another invoice.";
166
- readonly "invoice.not-ready": "Not ready to finalize: {issues}";
167
- readonly "invoice.number-required": "A finalized invoice needs a number.";
168
- readonly "invoice.number-used": "Invoice number {number} is already used. Numbers are never reused.";
169
- readonly "invoice.only-invoice-creditable": "Only an invoice can be credited.";
170
- readonly "invoice.nothing-to-credit": "Invoice {number} is {status}; there is nothing to credit.";
171
- readonly "signoff.unsaved": "Document \"{id}\" has unsaved changes. Save first, then sign.";
172
- readonly "signoff.saving": "Document \"{id}\" is still saving. Sign when it is saved.";
173
- readonly "signoff.conflict": "Document \"{id}\" changed somewhere else. Reload it, then sign the version you see.";
174
- readonly "signoff.empty": "Document \"{id}\" has nothing in it to sign.";
175
- readonly "signoff.unknown-level": "No sign-off level \"{level}\". Levels: {levels}.";
176
- readonly "signoff.needs-earlier": "\"{level}\" needs \"{earlier}\" signed first.";
177
- readonly "signoff.already-signed": "\"{level}\" is already signed on version {version}.";
178
- readonly "signoff.four-eyes": "The person who performed the work cannot also sign \"{level}\": another person reviews it.";
179
- readonly "signoff.reason-required": "Give a reason of at least {min} characters for withdrawing: it is kept with the signature.";
180
- readonly "signoff.not-signed": "\"{level}\" is not signed, so there is nothing to withdraw.";
181
- readonly "signoff.open-points": "Document \"{id}\" still has {count} open point(s). Close them before signing.";
182
- readonly "sheets.no-sheet": "No open sheet \"{key}\". Open: {keys}.";
183
- readonly "money.not-decimal": "\"{value}\" is not decimal text in major units, like \"1234.50\".";
184
- readonly "money.too-precise": "\"{value}\" has more than {digits} decimals, which {currency} does not have. Round it first, on purpose.";
185
- readonly "money.not-safe-integer": "Money.minor must be a safe integer, got {value}";
186
- readonly "money.not-finite": "fromMajor expects a finite number, got {value}";
187
- readonly "money.currency-mismatch": "Currency mismatch: {a} vs {b}";
188
- readonly "fx.rate-format": "An exchange rate is a whole number of millionths above zero (11.2345 is 11234500), got {value}.";
189
- readonly "fx.amount-format": "An amount is a whole number of minor units, got {value}.";
190
- readonly "fx.no-rate": "No exchange rate from {from} to {to} on or before {date}. Add one before posting in {from}.";
191
- readonly "fx.amount-mismatch": "{amount} {currency} minor units at rate {rate} is {expected} {base} minor units, not {actual}.";
192
- readonly "period.invalid-month": "Invalid month {month}";
193
- readonly "period.invalid-vat-term": "Invalid VAT term {term}";
194
- readonly "locale.no-profile": "No profile for country \"{country}\". Built in: {countries}. Pass your own with defineProfile and the provider's `profiles` prop.";
195
- readonly "permissions.duty.approve-release": "The person who approved a payment run cannot also release it.";
196
- readonly "permissions.duty.post-sign-off": "The person who posted cannot sign off the close of the same work.";
197
- readonly "permissions.duty.invoice-payment": "The person who approved the invoice cannot approve its payment.";
198
- readonly "permissions.duty.prepare-review": "The person who prepared the work cannot also review it.";
199
- readonly "permissions.duty.eqcr": "The quality reviewer must not have prepared, reviewed or concluded work on the engagement.";
200
- readonly "server.reason-required": "Give a reason of at least {min} characters: it is kept with the decision.";
201
- readonly "server.unknown-kind": "The actor's kind \"{kind}\" is neither a person nor an agent, so nothing is allowed.";
202
- readonly "server.delegation": "\"{agent}\" acts for \"{person}\", who may not do \"{permission}\". It takes one of these roles: {roles}.";
203
- readonly "server.delegation-entity": "\"{agent}\" acts for \"{person}\", who does not work in entity \"{entity}\".";
204
- readonly "server.delegation-unknown": "\"{agent}\" acts for \"{person}\", who is not a known person, so nothing is allowed.";
205
- readonly "server.person-only": "An agent may not do \"{permission}\": it is a person's decision. Ask someone with one of these roles: {roles}.";
206
- readonly "permissions.signed-out": "Nobody is signed in, so \"{permission}\" is refused.";
207
- readonly "permissions.wrong-entity": "\"{id}\" does not work in entity \"{entity}\".";
208
- readonly "permissions.none-defined": "none defined";
209
- readonly "permissions.denied": "\"{id}\" may not do \"{permission}\". It takes one of these roles: {roles}.";
210
- readonly "attachment.unknown-kind": "\"{kind}\" is not an attachment kind. Kinds: {kinds}.";
211
- readonly "attachment.id-required": "An attachment needs an id.";
212
- readonly "attachment.file-name-required": "Attachment \"{id}\" needs a file name.";
213
- readonly "attachment.media-type": "Attachment \"{id}\": the media type looks like \"application/pdf\", got \"{value}\".";
214
- readonly "attachment.size": "Attachment \"{id}\": the size is a whole number of bytes, got {value}.";
215
- readonly "attachment.sha256": "Attachment \"{id}\": sha256 is 64 hex characters, got \"{value}\".";
216
- readonly "attachment.page": "Attachment \"{id}\": the page is a whole number from 1, got {value}.";
217
- readonly "attachment.box": "Attachment \"{id}\": the box is [x, y, width, height] in thousandths of the page, each 0 to 1000.";
218
- readonly "attachment.linker-required": "Linking attachment \"{id}\" needs the id of who linked it.";
219
- readonly "attachment.already-linked": "Attachment \"{id}\" is already linked to this entry.";
220
- readonly "attachment.same-file": "Attachment \"{id}\" ({fileName}) is the same file as \"{otherId}\" ({otherFileName}): same SHA-256. It is not linked twice.";
221
- readonly "attachment.not-found": "No attachment \"{id}\" on this entry. Linked: {linked}.";
222
- readonly "attachment.locked-kind": "The entry is locked: the kind of attachment \"{id}\" cannot be changed.";
223
- readonly "attachment.locked-remove": "The entry is locked: attachment \"{id}\" ({fileName}) cannot be removed.";
224
- readonly "attachment.not-evidenced": "The entry is not evidenced: missing {missing}. Link a file of that kind, or set the kind of one that is linked.";
225
- readonly "word.and-more": "{list} and {count} more";
226
- readonly "aging.what.as-of": "The as-of date";
227
- readonly "aging.what.due-date": "The due date";
228
- readonly "aging.what.item-due-date": "Open item \"{id}\": the due date";
229
- readonly "aging.date-format": "{what} must be a date written YYYY-MM-DD, got \"{value}\".";
230
- readonly "aging.limits": "Aging limits are whole days that start at 0 and rise, such as [0, 30, 60, 90], got {value}.";
231
- readonly "aging.kind": "The kind must be \"receivable\" or \"payable\", got \"{value}\".";
232
- readonly "aging.item-twice": "Open item id \"{id}\" appears twice. Every open item needs its own id.";
233
- readonly "aging.item-amount": "Open item \"{id}\": the amount is a whole number of minor units, got {value}.";
234
- readonly "aging.mixed-kinds": "The open items mix receivables and payables. Say which to age: \"receivable\" or \"payable\".";
235
- readonly "aging.no-bucket": "No bucket \"{bucket}\". Buckets: {buckets}.";
236
- readonly "aging.no-party-receivables": "No party \"{id}\" with open receivables. Parties: {parties}.";
237
- readonly "aging.no-party-payables": "No party \"{id}\" with open payables. Parties: {parties}.";
238
- readonly "aging.min-days": "The number of days overdue is a whole number, 1 or above, got {value}.";
239
- readonly "ledger.range-start-format": "The start of the range must be a date written YYYY-MM-DD, got \"{value}\".";
240
- readonly "ledger.range-end-format": "The end of the range must be a date written YYYY-MM-DD, got \"{value}\".";
241
- readonly "ledger.range-order": "The range starts {from} and ends {to}. The start must be on or before the end.";
242
- readonly "ledger.entry-amounts": "Ledger entry \"{id}\": debit and credit are whole numbers of minor units, zero or above, got debit {debit} and credit {credit}.";
243
- readonly "ledger.entry-date": "Ledger entry \"{id}\": the date must be written YYYY-MM-DD, got \"{value}\".";
244
- readonly "ledger.voucher-difference": "{voucher} ({difference} minor units)";
245
- readonly "ledger.opening-off": ", and opening balances that sum to {opening} instead of 0";
246
- readonly "ledger.split-voucher": " Every voucher balances on its own, so a voucher is split across the start of the range.";
247
- readonly "ledger.unbalanced-vouchers": " Vouchers that do not balance: {namedCommaList}.";
248
- readonly "ledger.unbalanced-vouchers-more": " Vouchers that do not balance: {namedCommaList} and {count} more.";
249
- readonly "ledger.not-balanced": "The ledger does not balance: debit {debit} and credit {credit} in the range{opening}. Debit minus credit is {difference} minor units.{tail}";
250
- readonly "ledger.no-account": "No account \"{number}\" in the ledger. Accounts: {accounts}.";
251
- readonly "ledger.period-code": "Period {which} must be a period code such as 2026 (a year), 2026-03 (a month) or 2026-T2 (a two-month term), got \"{value}\".";
252
- readonly "ledger.same-periods": "Period A and period B are both {code}. Give two different periods to compare.";
253
- readonly "supplier-invoice.no-rule": "Invoice {id}: there is no company rule for approving without a person, so a person approves it. The ERP sets one with the `rule` option.";
254
- readonly "supplier-invoice.rule-says-no": "Invoice {id}: the company rule does not allow approving it without a person. {reason} A person approves it.";
255
- readonly "supplier-invoice.not-open": "Invoice {id} is {status} and can no longer change.";
256
- readonly "supplier-invoice.reason-needed": "Invoice {id}: give the reason the person will read, for example \"Second copy of 2917, already booked\".";
257
- readonly "supplier-invoice.what.correction": "A correction";
258
- readonly "supplier-invoice.what.confirmation": "A confirmation";
259
- readonly "supplier-invoice.what.approval": "An approval";
260
- readonly "supplier-invoice.what.rejection": "A rejection";
261
- readonly "supplier-invoice.this-supplier": "this supplier";
262
- readonly "supplier-invoice.locked": "Supplier invoice \"{id}\" is {status} and cannot be edited. Only an invoice that is new or coded can change.";
263
- readonly "supplier-invoice.field-amount": "Invoice \"{id}\": {field} is a whole number of minor units (12345 for 123.45), got {value}.";
264
- readonly "supplier-invoice.field-date": "Invoice \"{id}\": {field} must be a date as YYYY-MM-DD, got {value}.";
265
- readonly "supplier-invoice.field-currency": "Invoice \"{id}\": currency is a three-letter ISO code such as NOK or USD, got {value}.";
266
- readonly "supplier-invoice.field-text": "Invoice \"{id}\": {field} must be text, got {value}.";
267
- readonly "supplier-invoice.field-empty": "Invoice \"{id}\": {field} cannot be empty.";
268
- readonly "supplier-invoice.actor-required": "{what} needs the id of who did it.";
269
- readonly "supplier-invoice.no-field": "Invoice \"{id}\" has no field \"{field}\". Fields: {fields}.";
270
- readonly "supplier-invoice.coding-account-required": "Invoice \"{id}\": a coding needs an account number.";
271
- readonly "supplier-invoice.coding-unknown-account": "Invoice \"{id}\": account \"{account}\" is not in the chart of accounts. Accounts: {accounts}.";
272
- readonly "supplier-invoice.coding-dimensions": "Invoice \"{id}\": dimensions are an object of dimension key to value, such as {\"costCentre\":\"40\"}.";
273
- readonly "supplier-invoice.amount-issue": "{field} is a whole number of minor units, got {value}.";
274
- readonly "supplier-invoice.totals-mismatch": "Net {net} + tax {tax} is {sum}, but gross is {gross} (minor units). Correct netMinor, taxMinor or grossMinor.";
275
- readonly "supplier-invoice.supplier-name-missing": "The supplier name is missing.";
276
- readonly "supplier-invoice.invoice-number-missing": "The invoice number is missing.";
277
- readonly "supplier-invoice.date-issue": "{field} must be a date as YYYY-MM-DD, got \"{value}\".";
278
- readonly "supplier-invoice.due-before-invoice": "The due date {due} is before the invoice date {invoiceDate}.";
279
- readonly "supplier-invoice.duplicate": "Invoice number \"{number}\" from {supplier} is also on {othersAndList}. Reject the copy or correct the invoice number.";
280
- readonly "supplier-invoice.low-confidence": "Confirm or correct {fields}: read with confidence below {threshold}.";
281
- readonly "supplier-invoice.no-coding": "The invoice has no coding. Propose an account.";
282
- readonly "supplier-invoice.unknown-account": "Account \"{account}\" is not in the chart of accounts.";
283
- readonly "supplier-invoice.already-decided": "Supplier invoice \"{id}\" is already {status}.";
284
- readonly "supplier-invoice.not-approvable": "Invoice \"{id}\" cannot be approved yet: {issues}";
285
- readonly "supplier-invoice.not-rejectable": "Supplier invoice \"{id}\" is {status} and cannot be rejected. Only a new or coded invoice can.";
286
- readonly "supplier-invoice.reason-required": "Rejecting invoice \"{id}\" needs a reason.";
287
- readonly "supplier-invoice.not-postable": "Supplier invoice \"{id}\" is {status}. Only an approved invoice can be posted.";
288
- readonly "expense.what.submit": "Submitting a claim";
289
- readonly "expense.what.accept-exception": "Accepting a policy exception";
290
- readonly "expense.what.approve": "Approving a claim";
291
- readonly "expense.what.reject": "Rejecting a claim";
292
- readonly "expense.line-date": "Line \"{id}\": the date must be YYYY-MM-DD, got {value}.";
293
- readonly "expense.line-description": "Line \"{id}\": the description must be text.";
294
- readonly "expense.unknown-category": "Line \"{id}\": \"{category}\" is not a category in the policy. Categories: {categories}.";
295
- readonly "expense.line-amount": "Line \"{id}\": the amount is a whole number of minor units above zero (12345 for 123.45), got {value}.";
296
- readonly "expense.amount-computed": "Line \"{id}\": the amount of a {kind} line is computed from the policy and cannot be set. Leave amountMinor out.";
297
- readonly "expense.distance": "Line \"{id}\": distanceMeters is a whole number of metres above zero (8400 for 8.4 km), got {value}.";
298
- readonly "expense.no-mileage-rate": "Line \"{id}\": the policy has no mileage rate, so mileage cannot be claimed.";
299
- readonly "expense.days": "Line \"{id}\": days is a whole number above zero, got {value}.";
300
- readonly "expense.unknown-per-diem-rate": "Line \"{id}\": \"{rate}\" is not a per-diem rate in the policy. Rates: {rates}.";
301
- readonly "expense.unknown-kind": "Line \"{id}\": kind must be expense, mileage or per-diem, got \"{value}\".";
302
- readonly "expense.missing-receipt": "Line \"{id}\": {category} needs a receipt and none is attached.";
303
- readonly "expense.over-limit": "Line \"{id}\": {amount} is above the {category} limit of {limit} per line (minor units).";
304
- readonly "expense.outside-period": "Line \"{id}\": {date} is outside the claim period {start} to {end}.";
305
- readonly "expense.future-date": "Line \"{id}\": {date} is in the future (today is {today}).";
306
- readonly "expense.no-claimant": "The claim has no claimant.";
307
- readonly "expense.period": "The claim period must be two dates as YYYY-MM-DD with the start first, got \"{start}\" to \"{end}\".";
308
- readonly "expense.no-lines": "The claim has no lines.";
309
- readonly "expense.line-twice": "Line id \"{id}\" appears twice.";
310
- readonly "expense.locked": "Expense claim \"{id}\" is {status} and cannot be edited. Only a draft can change.";
311
- readonly "expense.no-line": "No line \"{id}\" on claim \"{claim}\". Lines: {lines}.";
312
- readonly "expense.line-shape": "A line is an object such as {\"kind\":\"expense\",\"date\":\"2026-01-15\",\"category\":\"travel\",\"description\":\"Train\",\"amountMinor\":45000}.";
313
- readonly "expense.set-line-shape": "setLine takes a line id and an object of the fields to change.";
314
- readonly "expense.kind-change": "Line \"{id}\" is a {kind} line and cannot become a {next} line. Remove it and add a new one.";
315
- readonly "expense.already-submitted": "Expense claim \"{id}\" is already {status}.";
316
- readonly "expense.not-submittable": "Claim \"{id}\" cannot be submitted: {issues}";
317
- readonly "expense.actor-required": "{what} needs the id of the person doing it. Pass `actor`.";
318
- readonly "expense.exceptions-closed": "Expense claim \"{id}\" is {status}: its exceptions can no longer be accepted.";
319
- readonly "expense.claimant-cannot-accept": "\"{who}\" is the claimant and cannot accept an exception on their own claim. Someone else must.";
320
- readonly "expense.unknown-rule": "\"{rule}\" is not a policy rule. Rules: {rules}.";
321
- readonly "expense.no-open-exception": "Line \"{id}\" has no open {rule} exception. Open: {open}.";
322
- readonly "expense.exception-reason-required": "Accepting the {rule} exception on line \"{id}\" needs a reason.";
323
- readonly "expense.not-approvable-status": "Expense claim \"{id}\" is {status}. Only a submitted claim can be approved.";
324
- readonly "expense.not-approvable": "Claim \"{id}\" cannot be approved: {issues}";
325
- readonly "expense.open-exceptions": "Claim \"{id}\" has {count} policy exception(s) nobody has accepted: {exceptions}";
326
- readonly "expense.claimant-cannot-approve": "\"{who}\" is the claimant and cannot approve their own claim. Someone else must.";
327
- readonly "expense.not-rejectable-status": "Expense claim \"{id}\" is {status}. Only a submitted claim can be rejected.";
328
- readonly "expense.claimant-cannot-reject": "\"{who}\" is the claimant and cannot reject their own claim. Someone else must.";
329
- readonly "expense.reject-reason-required": "Rejecting claim \"{id}\" needs a reason.";
330
- readonly "audit.what.benchmark": "The materiality benchmark (minor units)";
331
- readonly "audit.what.overall": "Overall materiality (basis points of the benchmark)";
332
- readonly "audit.what.performance": "Performance materiality (basis points of overall)";
333
- readonly "audit.what.trivial": "The clearly-trivial threshold (basis points of overall)";
334
- readonly "audit.what.population-amount": "Population item \"{id}\": the amount (minor units)";
335
- readonly "audit.what.sample-size": "The sample size";
336
- readonly "audit.what.tolerable": "Tolerable misstatement (minor units)";
337
- readonly "audit.what.misstatement": "Item \"{id}\": the misstatement (minor units)";
338
- readonly "audit.whole": "{what} is a whole number, got {value}.";
339
- readonly "audit.whole-min": "{what} is a whole number of at least {min}, got {value}.";
340
- readonly "audit.overall-too-high": "Overall materiality cannot be more than 10000 basis points (100%) of the benchmark, got {value}.";
341
- readonly "audit.performance-too-high": "Performance materiality cannot be more than 10000 basis points (100%) of overall materiality, got {value}.";
342
- readonly "audit.trivial-too-high": "The clearly-trivial threshold ({trivial} basis points of overall) cannot be above performance materiality ({performance} basis points of overall).";
343
- readonly "audit.population-shape": "A population is a list of items with `id` and `amountMinor`.";
344
- readonly "audit.population-id-required": "Every population item needs a non-empty text `id`.";
345
- readonly "audit.population-id-twice": "Population item id \"{id}\" appears twice. Ids must be unique.";
346
- readonly "audit.sample-options": "drawSample takes the population and options: { method, seed, tolerableMinor?, size? }.";
347
- readonly "audit.unknown-method": "Unknown sampling method {method}. Use one of: {methods}.";
348
- readonly "audit.seed-required": "A sample needs a `seed` (any non-empty text), so the same sample can be drawn again.";
349
- readonly "audit.population-empty": "The population is empty, so there is nothing to sample.";
350
- readonly "audit.all-above-needs-tolerable": "Method \"all-above\" needs `tolerableMinor`: every item at or above it is selected.";
351
- readonly "audit.random-needs-size": "Method \"random\" needs `size`: how many items to select.";
352
- readonly "audit.random-too-many": "Cannot select {size} items at random from a population of {count}.";
353
- readonly "audit.mus-all-zero": "Every amount in the population is zero, so monetary-unit sampling has nothing to select by.";
354
- readonly "audit.mus-needs-size": "Method \"monetary-unit\" needs `size` (the interval is the population divided by it) or `tolerableMinor` (used as the interval).";
355
- readonly "audit.locked-reviewed": "The workpaper is reviewed by \"{by}\" and cannot be changed. The reviewer must withdraw the review first.";
356
- readonly "audit.locked-prepared": "The workpaper is signed by preparer \"{by}\" and cannot be changed. Only \"{by}\" can withdraw the sign-off.";
357
- readonly "audit.none-draw-first": "none — draw a sample first";
358
- readonly "audit.no-item": "No sample item \"{id}\". Items: {items}.";
359
- readonly "audit.change-actor-required": "A change to the workpaper needs to say who made it: \"agent\" or a person's id.";
360
- readonly "audit.unknown-result": "Unknown result {result} for item \"{id}\". Use one of: {results}.";
361
- readonly "audit.misstatement-needs-exception": "Item \"{id}\": a misstatement amount goes with the result \"exception\", not \"{result}\".";
362
- readonly "audit.none-legend-empty": "none — the legend is empty";
363
- readonly "audit.unknown-tick-mark": "\"{mark}\" is not in the tick-mark legend. Use one of: {marks}.";
364
- readonly "audit.no-sample": "No sample has been drawn.";
365
- readonly "audit.sample-empty": "The sample selected no items, so there is nothing to conclude on.";
366
- readonly "audit.untested": "{count} item(s) are untested: {ids}.";
367
- readonly "audit.exception-without-note": "Item \"{id}\" is an exception without a note. Say what was found.";
368
- readonly "audit.not-ready": "The workpaper cannot be signed yet: {issues}";
369
- readonly "audit.signer-required": "A sign-off needs the id of the person signing.";
370
- readonly "audit.unknown-role": "Unknown sign-off role {role}. Use \"preparer\" or \"reviewer\".";
371
- readonly "audit.already-prepared": "The workpaper is already signed by preparer \"{by}\".";
372
- readonly "audit.preparer-first": "The preparer signs first. The workpaper has no preparer sign-off yet.";
373
- readonly "audit.already-reviewed": "The workpaper is already reviewed by \"{by}\".";
374
- readonly "audit.preparer-cannot-review": "\"{actor}\" prepared this workpaper and cannot also review it. A different person must.";
375
- readonly "audit.withdrawer-required": "Withdrawing a sign-off needs the id of the person withdrawing.";
376
- readonly "audit.only-reviewer-withdraws": "The workpaper is reviewed by \"{by}\". Only they can withdraw the review, and the preparer's sign-off stays until they do.";
377
- readonly "audit.nothing-to-withdraw": "The workpaper has no sign-off to withdraw.";
378
- readonly "audit.only-preparer-withdraws": "Only \"{by}\", who signed as preparer, can withdraw that sign-off.";
379
- readonly "assets.what.asset-acquisition-date": "Asset \"{id}\": the acquisition date";
380
- readonly "assets.what.asset-disposal-date": "Asset \"{id}\": the disposal date";
381
- readonly "assets.what.cost": "cost (minor units)";
382
- readonly "assets.what.residual": "residual value (minor units)";
383
- readonly "assets.what.useful-life": "useful life (months)";
384
- readonly "assets.what.rate": "the yearly rate (basis points)";
385
- readonly "assets.what.proceeds": "disposal proceeds (minor units)";
386
- readonly "assets.what.acquisition-date": "The acquisition date";
387
- readonly "assets.what.disposal-date": "The disposal date";
388
- readonly "assets.what.period-start": "The period start";
389
- readonly "assets.what.period-end": "The period end";
390
- readonly "assets.date-format": "{what} must be a real date written YYYY-MM-DD, got {value}.";
391
- readonly "assets.whole-range": "Asset \"{id}\": {what} is a whole number from {min} to {max}, got {value}.";
392
- readonly "assets.whole-min": "Asset \"{id}\": {what} is a whole number of at least {min}, got {value}.";
393
- readonly "assets.id-required": "Every asset needs a non-empty text `id`.";
394
- readonly "assets.unknown-method": "Asset \"{id}\": unknown depreciation method {method}. Use one of: {methods}.";
395
- readonly "assets.disposed-before-acquired": "Asset \"{id}\": disposed on {disposed}, before it was acquired on {acquired}.";
396
- readonly "assets.proceeds-without-date": "Asset \"{id}\": has disposal proceeds but no disposal date.";
397
- readonly "assets.list-shape": "Assets are a list of fixed assets.";
398
- readonly "assets.id-twice": "Asset id \"{id}\" appears twice. Ids must be unique.";
399
- readonly "assets.period-code": "{value} is not a period code. Use a month like \"2026-03\" or a year like \"2026\".";
400
- readonly "assets.already-disposed": "Asset \"{id}\" was already disposed of on {date} and cannot be disposed of again.";
401
- readonly "assets.dispose-before-acquired": "Asset \"{id}\" cannot be disposed of on {date}: it was acquired on {acquired}. Use that date or later.";
402
- readonly "assets.run-account": "A depreciation run needs `{option}`: { number, name } of the account to post to.";
403
- readonly "assets.already-run": "Depreciation for {period} has already been run. The same period cannot be depreciated twice.";
404
- readonly "assets.run-overlaps": "Depreciation for {period} overlaps the run already made for {done} ({months}). The same month cannot be depreciated twice.";
405
- readonly "assets.skip.not-acquired": "Asset \"{id}\" is acquired on {acquired}, after {period}.";
406
- readonly "assets.skip.disposed": "Asset \"{id}\" was disposed of on {date}.";
407
- readonly "assets.skip.residual-equals-cost": "Asset \"{id}\" has a residual value equal to its cost.";
408
- readonly "assets.skip.fully-depreciated": "Asset \"{id}\" is fully depreciated before {period}.";
409
- readonly "assets.skip.nothing-in-period": "Asset \"{id}\" has no depreciation falling in {period}.";
410
- readonly "assets.no-assets": "there are no assets.";
411
- readonly "assets.nothing-to-run": "Nothing to depreciate in {period}: {reasons}";
412
- readonly "vat.what.mark-ready": "Marking a VAT return ready";
413
- readonly "vat.what.submit": "Submitting a VAT return";
414
- readonly "vat.schema-no-boxes": "The VAT return schema has no boxes.";
415
- readonly "vat.box-twice": "Box id \"{id}\" appears twice in the schema.";
416
- readonly "vat.box-kind": "Box \"{id}\": the kind must be \"base\", \"tax\" or \"total\", got \"{value}\".";
417
- readonly "vat.box-sign": "Box \"{id}\": the sign must be 1 or -1, got {value}.";
418
- readonly "vat.total-needs-formula": "Box \"{id}\" is a total and needs a formula: the ids of the boxes it adds up.";
419
- readonly "vat.total-no-codes": "Box \"{id}\" is a total, so it takes no VAT codes. Put the codes on the boxes it adds up.";
420
- readonly "vat.formula-not-total": "Box \"{id}\" has a formula but is not a total. Only a \"total\" box adds up other boxes.";
421
- readonly "vat.unknown-ref": "Box \"{id}\" adds up box \"{ref}\", which is not in the schema. Boxes: {boxes}.";
422
- readonly "vat.formula-loop": "Box \"{id}\" adds itself up through its formula.";
423
- readonly "vat.period-code": "A VAT return is for a period given as a code such as 2026 (a year), 2026-03 (a month) or 2026-T2 (a two-month term), got \"{value}\".";
424
- readonly "vat.schema-unusable": "The VAT return schema cannot be used: {issues}";
425
- readonly "vat.transaction-date": "VAT transaction for voucher \"{voucher}\": the date must be written YYYY-MM-DD, got \"{value}\".";
426
- readonly "vat.transaction-amounts": "VAT transaction for voucher \"{voucher}\": base and tax are whole numbers of minor units, got base {base} and tax {tax}.";
427
- readonly "vat.no-box": "No box \"{id}\" in this VAT return. Boxes: {boxes}.";
428
- readonly "vat.unmapped": "{count} transaction(s) in {period} use VAT code(s) {codes}, which no box of the return takes. Vouchers: {vouchers}. Correct the code on the voucher or add the code to a box in the schema.";
429
- readonly "vat.not-ready": "The VAT return for {period} is not ready: {issues}";
430
- readonly "vat.actor-required": "{doing} needs the id of the person doing it.";
431
- readonly "vat.not-draft": "The VAT return for {period} is {status}. Only a draft can be marked ready.";
432
- readonly "vat.already-submitted": "The VAT return for {period} is already submitted and cannot be changed.";
433
- readonly "vat.still-draft": "The VAT return for {period} is a draft. A person must mark it ready before it is submitted.";
434
- readonly "vat.second-person": "\"{who}\" marked this VAT return ready and cannot also submit it. A second person must submit it.";
435
- readonly "table.unknown-column": "No column \"{column}\". Columns: {columns}.";
436
- readonly "table.not-sortable": "Column \"{column}\" cannot be sorted.";
437
- readonly "table.bad-direction": "A sort direction is \"asc\" or \"desc\", got \"{direction}\".";
438
- readonly "table.bad-page": "Page {page} does not exist. There are {pages} pages.";
439
- readonly "table.ids-not-list": "Ids are a list of strings, like [\"r1\", \"r2\"]; got {got}.";
440
- readonly "table.bad-page-size": "A page size is a whole number from 1 to {max}, got {size}.";
441
- readonly "table.unknown-row": "No row \"{id}\" in this table.";
442
- readonly "table.unknown-row-listed": "No row \"{id}\" in this table. Rows on this page: {rows}.";
443
- readonly "agent.unknown-field": "{action}: no field \"{field}\". Fields: {fields}.";
444
- readonly "agent.not-an-object": "{action} takes one object, such as {example}.";
445
- readonly "select.unknown-account": "No account \"{value}\". Its items: {items}.";
446
- readonly "select.unknown-account-more": "No account \"{value}\" among the {count}. Closest: {items}. query({ within, text }) finds one by number or whole word.";
447
- readonly "select.unknown-tax-code": "No tax code \"{value}\". Its items: {items}.";
448
- readonly "select.unknown-tax-code-more": "No tax code \"{value}\" among the {count}. Closest: {items}. query({ within, text }) finds one by code or whole word.";
449
- readonly "select.unknown-currency": "No currency \"{value}\". Its items: {items}.";
450
- readonly "select.unknown-currency-more": "No currency \"{value}\" among the {count}. Closest: {items}. query({ within, text }) finds one.";
451
- readonly "select.unknown-period": "No period \"{value}\". Its items: {items}.";
452
- readonly "select.unknown-attestation": "No attestation status \"{value}\". Its items: {items}.";
453
- readonly "field.person-only-code": "\"{item}\" is a person's choice here. Ask them to pick it themselves.";
454
- readonly "field.unknown-code": "No option \"{value}\". The options, as value (label): {items}.";
455
- readonly "field.unknown-code-more": "No option \"{value}\" among the {count}. Closest: {items}. query({ within, text }) finds one by code or whole word.";
456
- readonly "field.account-not-digits": "Account number \"{value}\" can only hold digits. Send digits only, with no letters or separators.";
457
- readonly "field.account-empty": "An account number is needed here: {min} to {max} digits.";
458
- readonly "field.account-empty-chart": "An account number is needed here: pick one of the {count} accounts in the chart.";
459
- readonly "field.account-not-text": "setAccount takes the account number as digits, like \"4711\". Got {got}.";
460
- readonly "field.account-range": "minLength {min} is greater than maxLength {max}, so no account number fits.";
461
- readonly "field.account-length": "Account number \"{value}\" must be {min} to {max} digits.";
462
- readonly "field.unknown-account": "No account \"{value}\" in the chart. The accounts, as number (name): {items}.";
463
- readonly "field.unknown-account-more": "No account \"{value}\" in the chart of {count}. Closest: {items}. query({ within, text }) finds one by number or whole word.";
464
- readonly "amount.not-minor": "Amount must be a safe integer in minor units (e.g. 12500 = 125.00 {currency}), got {value}.";
465
- readonly "amount.below-min": "Amount {minor} (minor units) is below minMinor {min}.";
466
- readonly "amount.above-max": "Amount {minor} (minor units) exceeds maxMinor {max}.";
467
- readonly "date.invalid": "Invalid date \"{value}\". Use YYYY-MM-DD.";
468
- readonly "date.days-only-due": "setDaysFromToday is only for due dates; this field is kind \"{kind}\". Use setDate with YYYY-MM-DD.";
469
- readonly "date.days-not-a-number": "setDaysFromToday takes a whole number of days, got \"{value}\".";
470
- readonly "reference.kid-only": "generateKid is only for KID references; this reference is kind \"{kind}\". Use setReference.";
471
- readonly "reference.kid-failed": "Could not generate a KID from \"{seed}\". Give the digits it is built from.";
472
- readonly "voucher.no-line": "No voucher line \"{id}\". Line ids: {ids}.";
473
- readonly "voucher.no-base-currency": "The voucher has no base currency, so a foreign amount cannot be converted.";
474
- readonly "voucher.foreign-currency": "setForeign: the currency is a three-letter code like \"EUR\", got {got}. Write {format}.";
475
- readonly "voucher.foreign-amount": "setForeign: the amount is a whole number of minor units of the foreign currency (42000 is 420,00), got {got}. Write {format}.";
476
- readonly "voucher.foreign-rate": "setForeign: the rate is a whole number of millionths above zero (10.5 is 10500000), got {got}. Write {format}.";
477
- readonly "invoice.no-line": "No invoice line \"{id}\". Lines: {lines}.";
478
- readonly "reconciliation.no-match": "No match \"{id}\". Match ids: {ids}.";
479
- readonly "batch.no-payment": "No payment \"{id}\". Payments: {ids}.";
480
- readonly "attachment.no-file": "No file \"{id}\" to link. Available: {ids}.";
481
- readonly "assets.no-asset": "No asset \"{id}\". Assets: {ids}.";
482
- readonly "ledger.no-voucher": "No voucher \"{key}\" in this ledger. Vouchers include: {numbers}.";
483
- readonly "supplier-invoice.no-invoice": "No supplier invoice \"{id}\". Invoices: {ids}.";
484
- readonly "vat.box-is-total": "Box \"{id}\" is a total of boxes {boxes} and has no vouchers of its own. Open one of those.";
485
- readonly "chart.no-category": "No category \"{id}\". Categories: {ids}.";
486
- readonly "chart.category-folded": "Category \"{id}\" is folded into \"Other\"; setLimit(null) first.";
487
- readonly "chart.other-folds": "\"Other\" folds {count} categories together; setLimit(null) to show them, then drill into one.";
488
- readonly "chart.no-step": "No step \"{id}\". Steps: {ids}.";
489
- readonly "chart.balance-not-step": "\"{id}\" is a balance, not a step. Steps: {ids}.";
490
- readonly "chart.bad-range": "The range must be one of {ranges}; got \"{value}\".";
491
- readonly "chart.month-format": "A month is written YYYY-MM, such as 2026-03; got \"{value}\".";
492
- readonly "chart.bad-limit": "The limit must be a whole number, 1 or above, or null to show every bar; got \"{value}\".";
493
- readonly "audit.sample-shape": "drawSample takes a method and options: drawSample(\"monetary-unit\", { seed: \"2026-01-31\", size: 25 }). Methods: {methods}.";
494
- readonly "chart.month-outside-in-data": "No month {period} in the range {range} ({from} to {to}). It is in the data: setRange(\"all\") first.";
495
- readonly "chart.month-outside-data": "No month {period} in the range {range} ({from} to {to}). The data runs from {earliest} to {latest}.";
496
- readonly "expense.line-unknown-field": "Line \"{id}\": no field \"{field}\". A line takes: {fields}. Distance as distanceKm (8.4) or distanceMeters (8400); money as amountMinor.";
497
- readonly "finding.unknown-category": "\"{value}\" is not a finding category. Categories: {categories}.";
498
- readonly "finding.unknown-basis": "\"{value}\" is not a basis for a finding. Bases: {bases}.";
499
- readonly "finding.actor-required": "A change to a finding needs the id of who made it.";
500
- readonly "finding.field-text": "Finding \"{id}\": {field} must be text, got {value}.";
501
- readonly "finding.field-empty": "Finding \"{id}\": {field} cannot be empty.";
502
- readonly "finding.amount-format": "Finding \"{id}\": the amount is a whole number of minor units (125000 for 1250.00), got {value}.";
503
- readonly "finding.currency-format": "Finding \"{id}\": the currency is a three-letter ISO code such as NOK, got \"{value}\".";
504
- readonly "finding.not-draft": "Finding \"{id}\" is {status} and cannot be changed. Only a draft can; a person can reopen it.";
505
- readonly "finding.id-required": "A finding needs a non-empty text id.";
506
- readonly "finding.unknown-field": "Finding \"{id}\": no field \"{field}\" can be edited. Fields: {fields}.";
507
- readonly "finding.source-required": "Finding \"{id}\": give the id of the evidence to cite.";
508
- readonly "finding.source-twice": "Finding \"{id}\" already cites \"{source}\".";
509
- readonly "finding.issue.documented-without-sources": "Finding \"{id}\" is marked documented but cites no evidence. Link a source or change the basis.";
510
- readonly "finding.issue.hypothesis": "Finding \"{id}\" rests on a hypothesis: nothing on file shows it yet.";
511
- readonly "finding.issue.confirmed-hypothesis": "Finding \"{id}\" is confirmed but rests on a hypothesis: nothing on file shows it.";
512
- readonly "finding.issue.amount-without-currency": "Finding \"{id}\" has an amount but no currency.";
513
- readonly "finding.issue.misstatement-without-amount": "Finding \"{id}\" is a misstatement without an amount (minor units).";
514
- readonly "finding.not-confirmable": "Finding \"{id}\" is not ready to confirm: {issues}";
515
- readonly "finding.already-withdrawn": "Finding \"{id}\" is already withdrawn by \"{by}\".";
516
- readonly "finding.withdraw-reason": "Withdrawing finding \"{id}\" needs a reason of at least {min} characters, got {length}. It is kept with the file.";
517
- readonly "finding.not-reopenable": "Finding \"{id}\" is a draft already; there is nothing to reopen.";
518
- readonly "finding.no-finding": "No finding \"{id}\". Findings: {ids}.";
519
- readonly "finding.unknown-source": "No evidence \"{source}\" to cite. Evidence: {ids}.";
520
- readonly "finding.confidential-agent": "Finding \"{id}\" is confidential: an agent cannot change it. A person must.";
521
- readonly "request.what.draft": "Drafting a client request";
522
- readonly "request.what.send": "Sending a client request";
523
- readonly "request.what.decide": "Judging a client's answer";
524
- readonly "request.what.remind": "Reminding the client";
525
- readonly "request.actor-required": "{what} needs the id of whoever does it.";
526
- readonly "request.field-text": "Request \"{id}\": {field} must be text, got {value}.";
527
- readonly "request.field-empty": "Request \"{id}\": {field} cannot be empty.";
528
- readonly "request.due-date-format": "Request \"{id}\": the due date is written YYYY-MM-DD, got \"{value}\".";
529
- readonly "request.email-format": "Request \"{id}\": the recipient's email is not a valid address.";
530
- readonly "request.id-required": "A client request needs a non-empty text id.";
531
- readonly "request.unknown-field": "Request \"{id}\": no field \"{field}\" can be edited. Fields: {fields}.";
532
- readonly "request.not-draft": "Request \"{id}\" is {status}. Only a draft can be changed or sent.";
533
- readonly "request.not-waiting": "Request \"{id}\" is {status}, so it is not waiting for the client.";
534
- readonly "request.not-judgeable": "Request \"{id}\" is {status}. Only an answered request can be judged.";
535
- readonly "request.not-answered": "Request \"{id}\" is {status}: there is no answer from the client to rely on.";
536
- readonly "request.answer-required": "Request \"{id}\": the answer cannot be empty.";
537
- readonly "request.reject-reason": "Finding the answer to request \"{id}\" insufficient needs a reason the client can act on.";
538
- readonly "request.issue.no-due-date": "Request \"{id}\" has no due date.";
539
- readonly "request.issue.overdue": "Request \"{id}\" was due {due} and is still waiting for the client.";
540
- readonly "request.issue.awaiting-decision": "Request \"{id}\" is answered; a person judges whether the answer is enough.";
541
- readonly "request.no-request": "No client request \"{id}\". Requests: {ids}.";
542
- readonly "pipeline.no-stage": "No stage \"{stage}\" in the pipeline. Stages: {stages}.";
543
- readonly "pipeline.stage-id": "A pipeline stage needs a non-empty id.";
544
- readonly "pipeline.stage-twice": "The pipeline lists stage \"{stage}\" twice.";
545
- readonly "pipeline.probability": "Stage \"{stage}\": the probability is a whole percent from 0 to 100, got {value}.";
546
- readonly "pipeline.closed": "Deal \"{id}\" is {outcome}. A person reopens it before it moves.";
547
- readonly "pipeline.outcome-needs-person": "Moving deal \"{id}\" to {stage} marks it {outcome}. That is a person's decision: ask them to close it.";
548
- readonly "pipeline.actor-required": "Closing or reopening a deal needs the id of the person who does it.";
549
- readonly "pipeline.no-outcome-stage": "The pipeline has no {outcome} stage.";
550
- readonly "pipeline.lost-reason": "Marking deal \"{id}\" lost needs a reason.";
551
- readonly "pipeline.not-closed": "Deal \"{id}\" is open; there is nothing to reopen.";
552
- readonly "pipeline.value-not-object": "Deal \"{id}\": the value is an object, like { valueMinor: 12500000, currency: \"NOK\", valueStatus: \"known\", valueSource: \"Quote 114\" }.";
553
- readonly "pipeline.unknown-field": "Deal \"{id}\": no value field \"{field}\". Fields: {fields}.";
554
- readonly "pipeline.value-minor": "Deal \"{id}\": valueMinor is a whole, non-negative amount in minor units (12500 is 125.00), or null; got {value}.";
555
- readonly "pipeline.currency": "Deal \"{id}\": the currency is a three-letter code like NOK, got \"{value}\".";
556
- readonly "pipeline.value-status": "Deal \"{id}\": no value status \"{status}\". Statuses: {statuses}.";
557
- readonly "pipeline.value-needs-source": "Deal \"{id}\": a {status} value needs both an amount and its source (valueSource), such as a quote number.";
558
- readonly "pipeline.date-format": "Deal \"{id}\": the date is written YYYY-MM-DD, got \"{value}\".";
559
- readonly "pipeline.no-deal": "No deal \"{id}\". Deals: {ids}.";
560
- readonly "pipeline.no-owner": "Deal \"{id}\": no owner \"{owner}\". Owners: {owners}.";
561
- readonly "pipeline.issue.no-stage": "Deal \"{id}\" is in stage \"{stage}\", which the pipeline does not list.";
562
- readonly "pipeline.issue.no-value": "Deal \"{id}\" has no value.";
563
- readonly "pipeline.issue.unverified": "Deal \"{id}\" has an amount nobody vouched for: it is left out of the totals until it is known or estimated, with a source.";
564
- readonly "pipeline.issue.close-passed": "Deal \"{id}\" was expected to close {date} and is still open.";
565
- readonly "pipeline.issue.stale": "Deal \"{id}\" has not changed stage in {days} days.";
566
- readonly "funnel.issue.no-id": "A funnel step has no id and is left out.";
567
- readonly "funnel.issue.twice": "Funnel step \"{id}\" is given twice; the second is left out.";
568
- readonly "funnel.issue.count": "Funnel step \"{id}\" has a count that is not a whole number 0 or above ({value}); it is left out.";
569
- readonly "funnel.issue.rises": "Step \"{id}\" has more records than \"{before}\" before it. A funnel counts every record that reached a step, so it should never rise: check how the steps are counted.";
570
- readonly "funnel.no-step": "No funnel step \"{id}\". Steps: {ids}.";
571
- readonly "recurring.date-format": "A date is written YYYY-MM-DD, got \"{value}\".";
572
- readonly "recurring.two-amounts": "Agreement \"{id}\" gives both mrrMinor and amountMinor: give one.";
573
- readonly "recurring.interval": "Agreement \"{id}\": no interval \"{value}\". Intervals: {intervals}. A one-time amount is not recurring revenue.";
574
- readonly "recurring.amount-minor": "Agreement \"{id}\": amountMinor is whole minor units per interval, 0 or above (12500 is 125.00); got {value}.";
575
- readonly "recurring.mrr-minor": "Agreement \"{id}\": mrrMinor is whole minor units per month, 0 or above (12500 is 125.00); got {value}.";
576
- readonly "recurring.end-before-start": "Agreement \"{id}\" ends before it starts.";
577
- readonly "recurring.range-order": "The bridge runs from {from} to {to}: the end comes before the start.";
578
- readonly "recurring.no-movement": "No movement \"{id}\". Movements: {ids}.";
579
- readonly "recurring.no-currency": "No agreements in \"{value}\". Currencies: {currencies}.";
580
- readonly "recurring.bad-view": "The view is mrr or arr; got \"{value}\".";
581
- readonly "recurring.issue.other-currencies": "Agreements in {others} are left out: only {currency} is shown, and currencies are never added together.";
582
- readonly "pipeline.grouping": "No grouping \"{value}\". Groupings: {groupings}.";
583
- readonly "pipeline.range-date": "A date in the range is written YYYY-MM-DD, got \"{value}\".";
584
- readonly "pipeline.range-order": "The range runs from {from} to {to}: the end comes before the start.";
585
- readonly "pipeline.no-stage-row": "No stage \"{id}\" among the open stages. Stages: {ids}.";
586
- readonly "pipeline.no-period": "No period \"{id}\". Periods: {ids}.";
587
- readonly "activity.actor-required": "Logging or scheduling needs the id of whoever does it.";
588
- readonly "activity.id-required": "An activity needs a non-empty text id.";
589
- readonly "activity.field-text": "Activity \"{id}\": {field} must be text, got {value}.";
590
- readonly "activity.field-empty": "Activity \"{id}\": {field} cannot be empty.";
591
- readonly "activity.kind": "Activity \"{id}\": no kind \"{kind}\" to log. Kinds: {kinds}. Something still to come is a task: scheduleTask.";
592
- readonly "activity.at-format": "Activity \"{id}\": when it happened is written YYYY-MM-DD or as an ISO time like 2026-03-02T09:00:00Z, got \"{value}\".";
593
- readonly "activity.in-future": "Activity \"{id}\" is dated {at}, which has not happened yet. Schedule a task instead.";
594
- readonly "activity.due-date-format": "Activity \"{id}\": the due date is written YYYY-MM-DD, got \"{value}\".";
595
- readonly "activity.not-task": "Activity \"{id}\" is a {kind}, not a task.";
596
- readonly "activity.task-done": "Task \"{id}\" was already done at {at}.";
597
- readonly "activity.no-activity": "No activity \"{id}\". Activities: {ids}.";
598
- readonly "activity.no-assignee": "Task \"{id}\": no assignee \"{assignee}\". People: {people}.";
599
- readonly "activity.issue.no-evidence": "Activity \"{id}\" has nothing to check it against: no calendar event, call log or minutes.";
600
- readonly "activity.issue.overdue": "Task \"{id}\" was due {due} and is not done.";
601
- readonly "bridge.no-component": "No component \"{ref}\" on the page. Its labels: {labels}.";
602
- readonly "bridge.no-component-behind": "No component \"{ref}\" on the page. Its labels: {labels}. It may be behind one of these, which a step can open first: {closed}.";
603
- readonly "bridge.needs-person-press": "Needs a person: \"{confirm}\". Ask them to press \"{button}\" themselves.";
604
- readonly "bridge.needs-person-change": "Needs a person: \"{confirm}\". Ask them to make this change themselves.";
605
- readonly "bridge.person-said-no": "The person said no to \"{confirm}\".";
606
- readonly "bridge.app-refused": "The app refused {action} on {ref}.";
607
- readonly "bridge.cancelled": "{action} on {ref} was cancelled.";
608
- readonly "bridge.no-answer": "No answer to {action} on {ref} in {seconds} seconds.";
609
- readonly "bridge.no-button": "No button \"{text}\" in {ref}. Buttons: {buttons}.";
610
- readonly "bridge.button-disabled": "\"{button}\" in {ref} is disabled now.";
611
- readonly "bridge.disabled": "{component} {ref} is disabled now.";
612
- readonly "bridge.nothing-to-press": "{component} {ref} has nothing to press now.";
613
- readonly "bridge.takes-no": "{component} {ref} takes no {action} now. It takes: {actions}.";
614
- readonly "bridge.takes-no-nothing": "{component} {ref} takes no {action} now. It takes: nothing.";
615
- readonly "bridge.press-takes-buttons": "press takes a button's text: {buttons}.";
616
- readonly "bridge.press-opens": "press takes the text of a button inside it, and opens it first to find the button.";
617
- readonly "bridge.no-item": "No item \"{item}\" in {name}. Its items: {items}.";
618
- readonly "bridge.needs-ref": "A step needs a ref: a component's ref from snapshot, or its label.";
619
- readonly "bridge.needs-action": "A step on \"{ref}\" needs an action, like \"press\".";
620
- readonly "bridge.pressed": "Pressed \"{button}\".";
621
- readonly "bridge.pressed-after-opening": "Pressed \"{button}\", after opening {ref}.";
622
- readonly "bridge.pressed-closed": "Pressed \"{button}\". {ref} is closed now.";
623
- readonly "bridge.pressed-after-opening-closed": "Pressed \"{button}\", after opening {ref}. {ref} is closed now.";
624
- readonly "bridge.pressed-running": "Pressed \"{button}\". Its action is still running.";
625
- readonly "bridge.pressed-after-opening-running": "Pressed \"{button}\", after opening {ref}. Its action is still running.";
626
- readonly "bridge.still-running": "{action} is still running.";
627
- readonly "bridge.didnt-take": "{action} on {name} ({ref}) didn't take: it is still {value}.";
628
- readonly "bridge.didnt-take-step": "{action} on {name} ({ref}) didn't take: it is still {value}, and it moves in steps of {step}.";
629
- readonly "bridge.took-other": "{action} on {name} ({ref}) took {value}, not {asked}. It is {value} now.";
630
- readonly "bridge.took-other-step": "{action} on {name} ({ref}) took {value}, not {asked}: it moves in steps of {step}. It is {value} now.";
631
- readonly "bridge.expect-failed": "{name} ({ref}) is {value}, not {expected}.";
632
- readonly "bridge.number-range": "setValue on {name} ({ref}) takes a number from {min} to {max}, not {value}.";
633
- readonly "bridge.number-min": "setValue on {name} ({ref}) takes a number of {min} or more, not {value}.";
634
- readonly "bridge.number-max": "setValue on {name} ({ref}) takes a number of {max} or less, not {value}.";
635
- readonly "bridge.act-shape": "act takes { \"steps\": [{ \"ref\": \"…\", \"action\": \"…\", \"args\": […] }] }, not {given}. No step ran.";
636
- readonly "bridge.act-extra": "act takes \"steps\" and nothing else, not \"{key}\". No step ran.";
637
- readonly "bridge.step-needs-ref": "{at} needs a ref: a component's ref from snapshot, or its label. No step ran.";
638
- readonly "bridge.step-needs-action": "{at}, on \"{ref}\", needs an action, like \"press\". No step ran.";
639
- readonly "bridge.step-needs-value": "{action} on \"{ref}\" needs its value, as \"args\": [value]. No step ran.";
640
- readonly "bridge.steps-stay-done": "The steps before this one stay done.";
641
- readonly "bridge.send-again-one": "Send it again with the step after it, {total} steps in one call.";
642
- readonly "bridge.send-again-many": "Send it again with the {rest} steps after it, {total} steps in one call.";
643
- };
644
-
645
- /**
646
- * The English half of the message catalogue: what core needs to write its
647
- * sentences and throw `BookiError`. It carries no other language, so a module
648
- * that only reports in English ships only English. `@booki-aui/core/messages`
649
- * adds Norwegian and `localize`.
650
- */
651
-
652
- type MessageLanguage = "en" | "nb";
653
- type MessageCode = keyof typeof EN;
654
- /**
655
- * A param value. An array is a list of sentences, joined with a space, or for
656
- * an `…AndList` or `…CommaList` param a list joined with " and " or ", ".
657
- */
658
- type MessageParam = string | number | boolean | readonly string[];
659
- type MessageParams = Readonly<Record<string, MessageParam | undefined>>;
660
- declare const PLACEHOLDER: RegExp;
661
- /** Translates a param that is itself a sentence, or a word such as a status. English needs none. */
662
- type Translate = (text: string, language: MessageLanguage, name?: string) => string;
663
- /** Fill a template's `{name}` placeholders. */
664
- declare function render(template: string, params: MessageParams, language: MessageLanguage, translate?: Translate): string;
665
- /** The English sentence for a code. Core uses it for every sentence it writes. */
666
- declare function msg(code: MessageCode, params?: MessageParams): string;
667
- /**
668
- * An error whose message is a Booki sentence. `code` and `params` let
669
- * `localize` write the same sentence in another language.
670
- */
671
- declare class BookiError extends Error {
672
- readonly code: MessageCode;
673
- readonly params: MessageParams;
674
- constructor(code: MessageCode, params?: MessageParams);
675
- }
676
- /** True for an `BookiError`, also one from another copy of this module. */
677
- declare function isBookiError(value: unknown): value is BookiError;
678
-
679
- export { BookiError, type MessageCode, type MessageLanguage, type MessageParam, type MessageParams, PLACEHOLDER, type Translate, isBookiError, msg, render };
1
+ export { B as BookiError, M as MessageCode, a as MessageLanguage, b as MessageParam, c as MessageParams, P as PLACEHOLDER, T as Translate, i as isBookiError, m as msg, r as render } from './msg-DvA8vxX9.js';