@booki-aui/core 0.2.1 → 0.3.1
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/CHANGELOG.md +30 -0
- package/dist/activity.js +2 -2
- package/dist/aging.js +2 -2
- package/dist/approval.js +2 -2
- package/dist/attachments.js +2 -2
- package/dist/audit.js +2 -2
- package/dist/{chunk-T3M424SP.js → chunk-27RDC7G3.js} +3 -3
- package/dist/{chunk-V37IQ36D.js → chunk-2C55B6IJ.js} +2 -2
- package/dist/{chunk-4OAXKS34.js → chunk-2EAEXF7I.js} +2 -2
- package/dist/{chunk-4ONDQS7Q.js → chunk-52EKBGGW.js} +2 -2
- package/dist/{chunk-O7PLFRE7.js → chunk-5DWWPSJA.js} +2 -2
- package/dist/{chunk-HWGE4OOL.js → chunk-5VNN4PIJ.js} +3 -3
- package/dist/{chunk-6BK7VPNH.js → chunk-A6KSR2CU.js} +3 -3
- package/dist/{chunk-CUKV2KU3.js → chunk-ARZVBRIE.js} +2 -2
- package/dist/{chunk-I4YPEKDY.js → chunk-BG3DOWAV.js} +2 -2
- package/dist/{chunk-DJPVY5F2.js → chunk-BR7ANGBK.js} +2 -2
- package/dist/{chunk-XXMOQEIG.js → chunk-BVIUV4IF.js} +2 -2
- package/dist/{chunk-ROCF6IEK.js → chunk-D3CWZFQK.js} +2 -2
- package/dist/{chunk-MV3NCGG4.js → chunk-DW5ZA4OV.js} +3 -3
- package/dist/{chunk-2H3DAON4.js → chunk-EAOGPZWX.js} +2 -2
- package/dist/{chunk-FP52SC7S.js → chunk-EE47SBAO.js} +2 -2
- package/dist/{chunk-3WGVKVPL.js → chunk-FAWKQP2I.js} +2 -2
- package/dist/{chunk-5Z6LU5LH.js → chunk-FY7LZARF.js} +2 -2
- package/dist/{chunk-3PAJMQ5H.js → chunk-H7MJOFWG.js} +3 -3
- package/dist/{chunk-AGNXTHJA.js → chunk-I5JCIRZM.js} +2 -2
- package/dist/{chunk-JQFQM2K3.js → chunk-JDABNGRY.js} +2 -2
- package/dist/{chunk-JIYWHAO3.js → chunk-MNIVGOTQ.js} +2 -2
- package/dist/{chunk-OUWAGY5G.js → chunk-O5XMBNDG.js} +4 -4
- package/dist/{chunk-U5T5SUPP.js → chunk-P2BRRLHR.js} +13 -2
- package/dist/{chunk-U5T5SUPP.js.map → chunk-P2BRRLHR.js.map} +1 -1
- package/dist/{chunk-N77E7ZP7.js → chunk-PHBSYX4W.js} +2 -2
- package/dist/{chunk-5MYAIV42.js → chunk-PYBRKOFC.js} +25 -4
- package/dist/{chunk-5MYAIV42.js.map → chunk-PYBRKOFC.js.map} +1 -1
- package/dist/{chunk-NY6TSOQO.js → chunk-UOTXXSAV.js} +2 -2
- package/dist/{chunk-QUMUL4OH.js → chunk-V6ZJMVR3.js} +2 -2
- package/dist/{chunk-LJAY7P3Q.js → chunk-VS2DXFZF.js} +2 -2
- package/dist/{chunk-EGSWMJ7L.js → chunk-XTAIAJ4M.js} +2 -2
- package/dist/{chunk-BMSGD3FU.js → chunk-YUQXQEDW.js} +2 -2
- package/dist/client-request.js +2 -2
- package/dist/close.js +2 -2
- package/dist/document-signoff.js +2 -2
- package/dist/expense.js +2 -2
- package/dist/findings.js +2 -2
- package/dist/fixed-assets.js +3 -3
- package/dist/funnel.js +2 -2
- package/dist/fx.js +3 -3
- package/dist/index.js +30 -30
- package/dist/invoice.js +2 -2
- package/dist/ledger.js +3 -3
- package/dist/locale/index.js +2 -2
- package/dist/messages.js +2 -2
- package/dist/money.js +2 -2
- package/dist/msg.d.ts +11 -0
- package/dist/msg.js +1 -1
- package/dist/payment-batch.js +2 -2
- package/dist/period-lock.js +3 -3
- package/dist/period.js +2 -2
- package/dist/permissions.js +2 -2
- package/dist/pipeline.js +2 -2
- package/dist/reconciliation.js +2 -2
- package/dist/recurring.js +2 -2
- package/dist/server.d.ts +8 -2
- package/dist/server.js +17 -17
- package/dist/server.js.map +1 -1
- package/dist/supplier-invoice.js +2 -2
- package/dist/table.js +2 -2
- package/dist/vat-return.js +3 -3
- package/dist/voucher.js +6 -6
- package/package.json +1 -1
- /package/dist/{chunk-T3M424SP.js.map → chunk-27RDC7G3.js.map} +0 -0
- /package/dist/{chunk-V37IQ36D.js.map → chunk-2C55B6IJ.js.map} +0 -0
- /package/dist/{chunk-4OAXKS34.js.map → chunk-2EAEXF7I.js.map} +0 -0
- /package/dist/{chunk-4ONDQS7Q.js.map → chunk-52EKBGGW.js.map} +0 -0
- /package/dist/{chunk-O7PLFRE7.js.map → chunk-5DWWPSJA.js.map} +0 -0
- /package/dist/{chunk-HWGE4OOL.js.map → chunk-5VNN4PIJ.js.map} +0 -0
- /package/dist/{chunk-6BK7VPNH.js.map → chunk-A6KSR2CU.js.map} +0 -0
- /package/dist/{chunk-CUKV2KU3.js.map → chunk-ARZVBRIE.js.map} +0 -0
- /package/dist/{chunk-I4YPEKDY.js.map → chunk-BG3DOWAV.js.map} +0 -0
- /package/dist/{chunk-DJPVY5F2.js.map → chunk-BR7ANGBK.js.map} +0 -0
- /package/dist/{chunk-XXMOQEIG.js.map → chunk-BVIUV4IF.js.map} +0 -0
- /package/dist/{chunk-ROCF6IEK.js.map → chunk-D3CWZFQK.js.map} +0 -0
- /package/dist/{chunk-MV3NCGG4.js.map → chunk-DW5ZA4OV.js.map} +0 -0
- /package/dist/{chunk-2H3DAON4.js.map → chunk-EAOGPZWX.js.map} +0 -0
- /package/dist/{chunk-FP52SC7S.js.map → chunk-EE47SBAO.js.map} +0 -0
- /package/dist/{chunk-3WGVKVPL.js.map → chunk-FAWKQP2I.js.map} +0 -0
- /package/dist/{chunk-5Z6LU5LH.js.map → chunk-FY7LZARF.js.map} +0 -0
- /package/dist/{chunk-3PAJMQ5H.js.map → chunk-H7MJOFWG.js.map} +0 -0
- /package/dist/{chunk-AGNXTHJA.js.map → chunk-I5JCIRZM.js.map} +0 -0
- /package/dist/{chunk-JQFQM2K3.js.map → chunk-JDABNGRY.js.map} +0 -0
- /package/dist/{chunk-JIYWHAO3.js.map → chunk-MNIVGOTQ.js.map} +0 -0
- /package/dist/{chunk-OUWAGY5G.js.map → chunk-O5XMBNDG.js.map} +0 -0
- /package/dist/{chunk-N77E7ZP7.js.map → chunk-PHBSYX4W.js.map} +0 -0
- /package/dist/{chunk-NY6TSOQO.js.map → chunk-UOTXXSAV.js.map} +0 -0
- /package/dist/{chunk-QUMUL4OH.js.map → chunk-V6ZJMVR3.js.map} +0 -0
- /package/dist/{chunk-LJAY7P3Q.js.map → chunk-VS2DXFZF.js.map} +0 -0
- /package/dist/{chunk-EGSWMJ7L.js.map → chunk-XTAIAJ4M.js.map} +0 -0
- /package/dist/{chunk-BMSGD3FU.js.map → chunk-YUQXQEDW.js.map} +0 -0
package/dist/findings.js
CHANGED
package/dist/fixed-assets.js
CHANGED
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
disposeAsset,
|
|
12
12
|
periodMonths,
|
|
13
13
|
validateAsset
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-H7MJOFWG.js";
|
|
15
|
+
import "./chunk-JDABNGRY.js";
|
|
16
|
+
import "./chunk-P2BRRLHR.js";
|
|
17
17
|
export {
|
|
18
18
|
DEPRECIATION_METHODS,
|
|
19
19
|
MAX_SCHEDULE_MONTHS,
|
package/dist/funnel.js
CHANGED
package/dist/fx.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
convertMinor,
|
|
5
5
|
findRate,
|
|
6
6
|
revalue
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-5VNN4PIJ.js";
|
|
8
|
+
import "./chunk-BR7ANGBK.js";
|
|
9
|
+
import "./chunk-P2BRRLHR.js";
|
|
10
10
|
export {
|
|
11
11
|
RATE_SCALE,
|
|
12
12
|
assertForeignAmount,
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
redactSupplierInvoice,
|
|
26
26
|
rejectSupplierInvoice,
|
|
27
27
|
supplierInvoiceIssues
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UOTXXSAV.js";
|
|
29
29
|
import {
|
|
30
30
|
MAX_PAGE_SIZE,
|
|
31
31
|
assertPage,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
normalizeQuery,
|
|
35
35
|
tableView,
|
|
36
36
|
toCsv
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-BG3DOWAV.js";
|
|
38
38
|
import {
|
|
39
39
|
DRAFT_VAT_FILING,
|
|
40
40
|
GENERIC_VAT_SCHEMA_EXAMPLE,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
vatBoxVouchers,
|
|
47
47
|
vatReturnIssues,
|
|
48
48
|
vatSchemaIssues
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-A6KSR2CU.js";
|
|
50
50
|
import {
|
|
51
51
|
applyAccountRules,
|
|
52
52
|
assertBalanced,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
validateVoucherLine,
|
|
72
72
|
vatPostings,
|
|
73
73
|
voucherIssues
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-O5XMBNDG.js";
|
|
75
75
|
import {
|
|
76
76
|
BOOKI_PROFILES,
|
|
77
77
|
DE_PROFILE,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
US_PROFILE,
|
|
83
83
|
defineProfile,
|
|
84
84
|
getBookiProfile
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-2EAEXF7I.js";
|
|
86
86
|
import {
|
|
87
87
|
formatEin,
|
|
88
88
|
formatOrganizationNumber,
|
|
@@ -104,12 +104,12 @@ import {
|
|
|
104
104
|
duplicatePayments,
|
|
105
105
|
releaseBatch,
|
|
106
106
|
setBatchItems
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-FY7LZARF.js";
|
|
108
108
|
import {
|
|
109
109
|
assertPostingAllowed,
|
|
110
110
|
periodStatusOn,
|
|
111
111
|
setPeriodStatus
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-27RDC7G3.js";
|
|
113
113
|
import {
|
|
114
114
|
DutyRefusal,
|
|
115
115
|
PERMISSIONS,
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
assertCan,
|
|
119
119
|
can,
|
|
120
120
|
rolesIn
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-52EKBGGW.js";
|
|
122
122
|
import {
|
|
123
123
|
DEAL_VALUE_FIELDS,
|
|
124
124
|
DEAL_VALUE_STATUSES,
|
|
@@ -139,14 +139,14 @@ import {
|
|
|
139
139
|
setExpectedClose,
|
|
140
140
|
timeInStage,
|
|
141
141
|
valueCounts
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-VS2DXFZF.js";
|
|
143
143
|
import {
|
|
144
144
|
assertReconciled,
|
|
145
145
|
suggestMatches,
|
|
146
146
|
summarize,
|
|
147
147
|
unmatched,
|
|
148
148
|
validateMatch
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-YUQXQEDW.js";
|
|
150
150
|
import {
|
|
151
151
|
RECURRING_INTERVALS,
|
|
152
152
|
RECURRING_MOVEMENTS,
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
recurringBridge,
|
|
161
161
|
recurringCurrencies,
|
|
162
162
|
recurringIssues
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-MNIVGOTQ.js";
|
|
164
164
|
import {
|
|
165
165
|
TAX_CATEGORIES,
|
|
166
166
|
assertEditable,
|
|
@@ -172,7 +172,7 @@ import {
|
|
|
172
172
|
invoiceTotals,
|
|
173
173
|
lineNetMinor,
|
|
174
174
|
validateInvoiceLine
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-2C55B6IJ.js";
|
|
176
176
|
import {
|
|
177
177
|
formatKid,
|
|
178
178
|
generateKid,
|
|
@@ -194,13 +194,13 @@ import {
|
|
|
194
194
|
summarizeLedger,
|
|
195
195
|
trialBalance,
|
|
196
196
|
unbalancedVouchers
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-DW5ZA4OV.js";
|
|
198
198
|
import "./chunk-ICBA5A2V.js";
|
|
199
199
|
import {
|
|
200
200
|
MESSAGES,
|
|
201
201
|
localize,
|
|
202
202
|
msgIn
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-PYBRKOFC.js";
|
|
204
204
|
import {
|
|
205
205
|
SIGNOFF_LEVELS,
|
|
206
206
|
activeSignature,
|
|
@@ -208,7 +208,7 @@ import {
|
|
|
208
208
|
signObstacles,
|
|
209
209
|
signoffStates,
|
|
210
210
|
withdrawSignature
|
|
211
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-5DWWPSJA.js";
|
|
212
212
|
import {
|
|
213
213
|
EXPENSE_LINE_FIELDS,
|
|
214
214
|
EXPENSE_RULES,
|
|
@@ -228,7 +228,7 @@ import {
|
|
|
228
228
|
setExpenseLine,
|
|
229
229
|
submitClaim,
|
|
230
230
|
validateExpenseLine
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-V6ZJMVR3.js";
|
|
232
232
|
import {
|
|
233
233
|
addCalendarDays,
|
|
234
234
|
daysUntilDue,
|
|
@@ -258,7 +258,7 @@ import {
|
|
|
258
258
|
reopenFinding,
|
|
259
259
|
setBasis,
|
|
260
260
|
withdrawFinding
|
|
261
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-I5JCIRZM.js";
|
|
262
262
|
import {
|
|
263
263
|
DEPRECIATION_METHODS,
|
|
264
264
|
MAX_SCHEDULE_MONTHS,
|
|
@@ -272,7 +272,7 @@ import {
|
|
|
272
272
|
disposeAsset,
|
|
273
273
|
periodMonths,
|
|
274
274
|
validateAsset
|
|
275
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-H7MJOFWG.js";
|
|
276
276
|
import {
|
|
277
277
|
formatPeriod,
|
|
278
278
|
isValidPeriodCode,
|
|
@@ -282,18 +282,18 @@ import {
|
|
|
282
282
|
periodItemsForYear,
|
|
283
283
|
vatTermPeriod,
|
|
284
284
|
yearPeriod
|
|
285
|
-
} from "./chunk-
|
|
285
|
+
} from "./chunk-JDABNGRY.js";
|
|
286
286
|
import {
|
|
287
287
|
funnel,
|
|
288
288
|
reachedCounts
|
|
289
|
-
} from "./chunk-
|
|
289
|
+
} from "./chunk-D3CWZFQK.js";
|
|
290
290
|
import {
|
|
291
291
|
RATE_SCALE,
|
|
292
292
|
assertForeignAmount,
|
|
293
293
|
convertMinor,
|
|
294
294
|
findRate,
|
|
295
295
|
revalue
|
|
296
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-5VNN4PIJ.js";
|
|
297
297
|
import {
|
|
298
298
|
addMoney,
|
|
299
299
|
assertSameCurrency,
|
|
@@ -309,7 +309,7 @@ import {
|
|
|
309
309
|
parseToMoney,
|
|
310
310
|
subMoney,
|
|
311
311
|
toMajor
|
|
312
|
-
} from "./chunk-
|
|
312
|
+
} from "./chunk-BR7ANGBK.js";
|
|
313
313
|
import {
|
|
314
314
|
extractNorwegianKontonummer,
|
|
315
315
|
formatIban,
|
|
@@ -332,7 +332,7 @@ import {
|
|
|
332
332
|
rescheduleTask,
|
|
333
333
|
scheduleTask,
|
|
334
334
|
timeline
|
|
335
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-BVIUV4IF.js";
|
|
336
336
|
import {
|
|
337
337
|
DEFAULT_AGING_LIMITS,
|
|
338
338
|
ageItems,
|
|
@@ -340,13 +340,13 @@ import {
|
|
|
340
340
|
daysOverdue,
|
|
341
341
|
overdueParties,
|
|
342
342
|
partyItems
|
|
343
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-FAWKQP2I.js";
|
|
344
344
|
import {
|
|
345
345
|
approvalState,
|
|
346
346
|
assertApproved,
|
|
347
347
|
decide,
|
|
348
348
|
requiredLevels
|
|
349
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-EAOGPZWX.js";
|
|
350
350
|
import {
|
|
351
351
|
ATTACHMENT_KINDS,
|
|
352
352
|
assertEvidenced,
|
|
@@ -358,7 +358,7 @@ import {
|
|
|
358
358
|
removeAttachment,
|
|
359
359
|
setAttachmentKind,
|
|
360
360
|
validateAttachmentFile
|
|
361
|
-
} from "./chunk-
|
|
361
|
+
} from "./chunk-PHBSYX4W.js";
|
|
362
362
|
import {
|
|
363
363
|
EMPTY_WORKPAPER,
|
|
364
364
|
SAMPLE_METHODS,
|
|
@@ -378,7 +378,7 @@ import {
|
|
|
378
378
|
summarizeSample,
|
|
379
379
|
withdrawSignOff,
|
|
380
380
|
workpaperIssues
|
|
381
|
-
} from "./chunk-
|
|
381
|
+
} from "./chunk-ARZVBRIE.js";
|
|
382
382
|
import {
|
|
383
383
|
CLIENT_REQUEST_PATCH_FIELDS,
|
|
384
384
|
CLIENT_REQUEST_STATUSES,
|
|
@@ -393,7 +393,7 @@ import {
|
|
|
393
393
|
remind,
|
|
394
394
|
requestIssues,
|
|
395
395
|
sendRequest
|
|
396
|
-
} from "./chunk-
|
|
396
|
+
} from "./chunk-EE47SBAO.js";
|
|
397
397
|
import {
|
|
398
398
|
assertReadyToClose,
|
|
399
399
|
checkCloseTasks,
|
|
@@ -402,12 +402,12 @@ import {
|
|
|
402
402
|
reopenCloseTask,
|
|
403
403
|
signOffCloseTask,
|
|
404
404
|
summarizeClose
|
|
405
|
-
} from "./chunk-
|
|
405
|
+
} from "./chunk-XTAIAJ4M.js";
|
|
406
406
|
import {
|
|
407
407
|
BookiError,
|
|
408
408
|
isBookiError,
|
|
409
409
|
msg
|
|
410
|
-
} from "./chunk-
|
|
410
|
+
} from "./chunk-P2BRRLHR.js";
|
|
411
411
|
import "./chunk-ZJXNLPER.js";
|
|
412
412
|
export {
|
|
413
413
|
ACTIVITY_KINDS,
|
package/dist/invoice.js
CHANGED
package/dist/ledger.js
CHANGED
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
summarizeLedger,
|
|
7
7
|
trialBalance,
|
|
8
8
|
unbalancedVouchers
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DW5ZA4OV.js";
|
|
10
10
|
import "./chunk-ICBA5A2V.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-JDABNGRY.js";
|
|
12
|
+
import "./chunk-P2BRRLHR.js";
|
|
13
13
|
export {
|
|
14
14
|
accountLedger,
|
|
15
15
|
checkRange,
|
package/dist/locale/index.js
CHANGED
package/dist/messages.js
CHANGED
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
MESSAGES,
|
|
3
3
|
localize,
|
|
4
4
|
msgIn
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PYBRKOFC.js";
|
|
6
6
|
import {
|
|
7
7
|
BookiError,
|
|
8
8
|
isBookiError,
|
|
9
9
|
msg
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-P2BRRLHR.js";
|
|
11
11
|
export {
|
|
12
12
|
BookiError,
|
|
13
13
|
MESSAGES,
|
package/dist/money.js
CHANGED
package/dist/msg.d.ts
CHANGED
|
@@ -453,6 +453,14 @@ declare const EN: {
|
|
|
453
453
|
readonly "field.person-only-code": "\"{item}\" is a person's choice here. Ask them to pick it themselves.";
|
|
454
454
|
readonly "field.unknown-code": "No option \"{value}\". The options, as value (label): {items}.";
|
|
455
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}\" has more than 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.";
|
|
456
464
|
readonly "amount.not-minor": "Amount must be a safe integer in minor units (e.g. 12500 = 125.00 {currency}), got {value}.";
|
|
457
465
|
readonly "amount.below-min": "Amount {minor} (minor units) is below minMinor {min}.";
|
|
458
466
|
readonly "amount.above-max": "Amount {minor} (minor units) exceeds maxMinor {max}.";
|
|
@@ -624,6 +632,9 @@ declare const EN: {
|
|
|
624
632
|
readonly "bridge.step-needs-ref": "{at} needs a ref: a component's ref from snapshot, or its label. No step ran.";
|
|
625
633
|
readonly "bridge.step-needs-action": "{at}, on \"{ref}\", needs an action, like \"press\". No step ran.";
|
|
626
634
|
readonly "bridge.step-needs-value": "{action} on \"{ref}\" needs its value, as \"args\": [value]. No step ran.";
|
|
635
|
+
readonly "bridge.steps-stay-done": "The steps before this one stay done.";
|
|
636
|
+
readonly "bridge.send-again-one": "Send it again with the step after it, {total} steps in one call.";
|
|
637
|
+
readonly "bridge.send-again-many": "Send it again with the {rest} steps after it, {total} steps in one call.";
|
|
627
638
|
};
|
|
628
639
|
|
|
629
640
|
/**
|
package/dist/msg.js
CHANGED
package/dist/payment-batch.js
CHANGED
package/dist/period-lock.js
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
assertPostingAllowed,
|
|
3
3
|
periodStatusOn,
|
|
4
4
|
setPeriodStatus
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-27RDC7G3.js";
|
|
6
6
|
import "./chunk-ICBA5A2V.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-JDABNGRY.js";
|
|
8
|
+
import "./chunk-P2BRRLHR.js";
|
|
9
9
|
export {
|
|
10
10
|
assertPostingAllowed,
|
|
11
11
|
periodStatusOn,
|
package/dist/period.js
CHANGED
package/dist/permissions.js
CHANGED
package/dist/pipeline.js
CHANGED
package/dist/reconciliation.js
CHANGED
package/dist/recurring.js
CHANGED
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
recurringBridge,
|
|
12
12
|
recurringCurrencies,
|
|
13
13
|
recurringIssues
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-MNIVGOTQ.js";
|
|
15
|
+
import "./chunk-P2BRRLHR.js";
|
|
16
16
|
export {
|
|
17
17
|
RECURRING_INTERVALS,
|
|
18
18
|
RECURRING_MOVEMENTS,
|
package/dist/server.d.ts
CHANGED
|
@@ -270,7 +270,13 @@ declare function guardSubmitVatReturn(context: GuardContext, input: {
|
|
|
270
270
|
*/
|
|
271
271
|
declare function toHttp<T>(verdict: Verdict<T>): {
|
|
272
272
|
status: number;
|
|
273
|
-
body:
|
|
273
|
+
body: HttpBody<T>;
|
|
274
274
|
};
|
|
275
|
+
/** What `toHttp` answers with: the value on success, `{ ok: false, code, message, issues? }` on a refusal. */
|
|
276
|
+
type HttpBody<T> = {
|
|
277
|
+
ok: true;
|
|
278
|
+
actor: string;
|
|
279
|
+
value: T;
|
|
280
|
+
} | Omit<Refusal, "status">;
|
|
275
281
|
|
|
276
|
-
export { type Advice, type AgentClaims, type AgentGrant, type GuardContext, PERSON_ONLY, type Refusal, RuleRefusal, type ServerActor, type Verdict, actorDeed, actorLabel, actorRecord, advise, guard, guardApproved, guardCloseDeal, guardClosePeriod, guardConfirmFinding, guardDecideApproval, guardFinalizeInvoice, guardPostVoucher, guardReleasePayments, guardSignDocument, guardSubmitVatReturn, issueAgentToken, toHttp, verifyAgentToken };
|
|
282
|
+
export { type Advice, type AgentClaims, type AgentGrant, type GuardContext, type HttpBody, PERSON_ONLY, type Refusal, RuleRefusal, type ServerActor, type Verdict, actorDeed, actorLabel, actorRecord, advise, guard, guardApproved, guardCloseDeal, guardClosePeriod, guardConfirmFinding, guardDecideApproval, guardFinalizeInvoice, guardPostVoucher, guardReleasePayments, guardSignDocument, guardSubmitVatReturn, issueAgentToken, toHttp, verifyAgentToken };
|
package/dist/server.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertVatReturnReady
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A6KSR2CU.js";
|
|
4
4
|
import {
|
|
5
5
|
assertPostable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O5XMBNDG.js";
|
|
7
7
|
import {
|
|
8
8
|
releaseBatch
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-FY7LZARF.js";
|
|
10
|
+
import "./chunk-27RDC7G3.js";
|
|
11
11
|
import {
|
|
12
12
|
DutyRefusal,
|
|
13
13
|
STANDARD_DUTY_RULES,
|
|
14
14
|
STANDARD_ROLES,
|
|
15
15
|
assertCan,
|
|
16
16
|
can
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-52EKBGGW.js";
|
|
18
18
|
import {
|
|
19
19
|
closeDeal
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VS2DXFZF.js";
|
|
21
21
|
import {
|
|
22
22
|
finalizeInvoice
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2C55B6IJ.js";
|
|
24
24
|
import {
|
|
25
25
|
isIsoDate
|
|
26
26
|
} from "./chunk-ICBA5A2V.js";
|
|
27
27
|
import {
|
|
28
28
|
localize,
|
|
29
29
|
msgIn
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-PYBRKOFC.js";
|
|
31
31
|
import {
|
|
32
32
|
signDocument
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-5DWWPSJA.js";
|
|
34
34
|
import {
|
|
35
35
|
confirmFinding
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-I5JCIRZM.js";
|
|
37
|
+
import "./chunk-JDABNGRY.js";
|
|
38
|
+
import "./chunk-5VNN4PIJ.js";
|
|
39
|
+
import "./chunk-BR7ANGBK.js";
|
|
40
40
|
import {
|
|
41
41
|
assertApproved,
|
|
42
42
|
decide
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-EAOGPZWX.js";
|
|
44
44
|
import {
|
|
45
45
|
assertReadyToClose
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-XTAIAJ4M.js";
|
|
47
47
|
import {
|
|
48
48
|
BookiError,
|
|
49
49
|
isBookiError,
|
|
50
50
|
msg
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-P2BRRLHR.js";
|
|
52
52
|
import "./chunk-ZJXNLPER.js";
|
|
53
53
|
|
|
54
54
|
// src/agent-token.ts
|
|
@@ -225,7 +225,7 @@ function admit(context, permission) {
|
|
|
225
225
|
}
|
|
226
226
|
const personOnly = PERSON_ONLY.includes(permission) || (context.personOnly ?? []).includes(permission);
|
|
227
227
|
if (actor?.kind === "agent" && personOnly) {
|
|
228
|
-
const able = roles.filter((role) => role.permissions.includes(permission)).map((role) => role.name);
|
|
228
|
+
const able = roles.filter((role) => role.permissions.includes(permission) && !actor.roles.includes(role.id)).map((role) => role.name);
|
|
229
229
|
throw new BookiError("server.person-only", {
|
|
230
230
|
permission: String(permission),
|
|
231
231
|
roles: able.join(", ") || msg("permissions.none-defined")
|