@tenkeybridge/mcp 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +139 -33
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +139 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +139 -33
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -69,6 +69,6 @@ declare function resolveEntityName(name: string): EntityName | undefined;
|
|
|
69
69
|
type CatalogSummaryRow = Pick<CatalogEntry, "entity" | "verdict" | "group" | "read" | "write" | "headline" | "usage">;
|
|
70
70
|
declare function catalogSummary(): CatalogSummaryRow[];
|
|
71
71
|
|
|
72
|
-
declare const PKG_VERSION = "0.
|
|
72
|
+
declare const PKG_VERSION = "0.2.0";
|
|
73
73
|
|
|
74
74
|
export { CATALOG, type CatalogEntry, type CatalogField, type CatalogSummaryRow, type CatalogUnsupported, type EntityAccessorLike, type GatewayClient, type McpAuth, type McpConfig, PKG_VERSION, SERVER_NAME, buildServer, catalogSummary, defaultTokenFile, loadConfig, persistRefreshToken, readStoredRefreshToken, registerResources, registerTools, resolveCatalog, resolveEntityName };
|
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,6 @@ declare function resolveEntityName(name: string): EntityName | undefined;
|
|
|
69
69
|
type CatalogSummaryRow = Pick<CatalogEntry, "entity" | "verdict" | "group" | "read" | "write" | "headline" | "usage">;
|
|
70
70
|
declare function catalogSummary(): CatalogSummaryRow[];
|
|
71
71
|
|
|
72
|
-
declare const PKG_VERSION = "0.
|
|
72
|
+
declare const PKG_VERSION = "0.2.0";
|
|
73
73
|
|
|
74
74
|
export { CATALOG, type CatalogEntry, type CatalogField, type CatalogSummaryRow, type CatalogUnsupported, type EntityAccessorLike, type GatewayClient, type McpAuth, type McpConfig, PKG_VERSION, SERVER_NAME, buildServer, catalogSummary, defaultTokenFile, loadConfig, persistRefreshToken, readStoredRefreshToken, registerResources, registerTools, resolveCatalog, resolveEntityName };
|
package/dist/index.js
CHANGED
|
@@ -151,6 +151,11 @@ var CATALOG = {
|
|
|
151
151
|
"support": "full",
|
|
152
152
|
"note": "Required and unique per request; echoed verbatim on each BatchItemResponse slot."
|
|
153
153
|
},
|
|
154
|
+
{
|
|
155
|
+
"qbo": "operation (create | update | delete) + optionsData: void",
|
|
156
|
+
"support": "partial",
|
|
157
|
+
"note": "Void is QBO's `operation: update` + `optionsData: void` (`operation: void` is accepted as an alias). Same pipeline and limits as single-shot ?operation=void (Invoice, SalesReceipt, Purchase, BillPayment; Payment refused). Any other optionsData value faults."
|
|
158
|
+
},
|
|
154
159
|
{
|
|
155
160
|
"qbo": "operation (create | update | delete)",
|
|
156
161
|
"support": "full",
|
|
@@ -174,9 +179,9 @@ var CATALOG = {
|
|
|
174
179
|
"note": "QBO's own per-request cap, cloned. Split into multiple batch calls."
|
|
175
180
|
},
|
|
176
181
|
{
|
|
177
|
-
"case": "optionsData (
|
|
182
|
+
"case": "optionsData other than void (or void paired with create/delete)",
|
|
178
183
|
"error": "BATCH_UNSUPPORTED_OPTION",
|
|
179
|
-
"note": "
|
|
184
|
+
"note": 'Only optionsData "void" on an update item is wired \u2014 any other value faults that item loud; the rest of the batch runs.'
|
|
180
185
|
},
|
|
181
186
|
{
|
|
182
187
|
"case": "transactional rollback",
|
|
@@ -212,7 +217,8 @@ var CATALOG = {
|
|
|
212
217
|
},
|
|
213
218
|
{
|
|
214
219
|
"qbo": "DocNumber",
|
|
215
|
-
"support": "full"
|
|
220
|
+
"support": "full",
|
|
221
|
+
"note": "Desktop RefNumber: max 20 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A single quote is allowed; query it with a backslash escape."
|
|
216
222
|
},
|
|
217
223
|
{
|
|
218
224
|
"qbo": "SalesTermRef",
|
|
@@ -236,7 +242,7 @@ var CATALOG = {
|
|
|
236
242
|
{
|
|
237
243
|
"qbo": "Balance",
|
|
238
244
|
"support": "full",
|
|
239
|
-
"note": "Read-only, as
|
|
245
|
+
"note": "Read-only. Desktop's BillRet.OpenAmount is the VENDOR's total open balance across every open bill for that vendor, not this bill's own remaining amount (verified live, 2026-09-24) \u2014 never used directly. Computed instead as 0 when IsPaid, else AmountDue minus whatever BillPaymentCheck/BillPaymentCreditCard/VendorCredit amounts LinkedTxn shows applied to this bill."
|
|
240
246
|
},
|
|
241
247
|
{
|
|
242
248
|
"qbo": "CustomField",
|
|
@@ -256,7 +262,7 @@ var CATALOG = {
|
|
|
256
262
|
{
|
|
257
263
|
"qbo": "LinkedTxn",
|
|
258
264
|
"support": "none",
|
|
259
|
-
"note": "QBO Bill has no paid-by LinkedTxn field. Desktop may return
|
|
265
|
+
"note": "QBO Bill has no paid-by LinkedTxn field. Desktop may return LinkedTxn when IncludeLinkedTxns is set, but there is no honest QBO home \u2014 not projected.",
|
|
260
266
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
261
267
|
}
|
|
262
268
|
],
|
|
@@ -286,7 +292,8 @@ var CATALOG = {
|
|
|
286
292
|
},
|
|
287
293
|
{
|
|
288
294
|
"qbo": "DocNumber",
|
|
289
|
-
"support": "full"
|
|
295
|
+
"support": "full",
|
|
296
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A single quote is allowed; query it with a backslash escape."
|
|
290
297
|
},
|
|
291
298
|
{
|
|
292
299
|
"qbo": "PrivateNote",
|
|
@@ -315,7 +322,7 @@ var CATALOG = {
|
|
|
315
322
|
{
|
|
316
323
|
"qbo": "Line",
|
|
317
324
|
"support": "partial",
|
|
318
|
-
"note": "LinkedTxn bills \u2192 AppliedToTxnAdd; additional LinkedTxn VendorCredit \u2192 SetCredit. Sparse updates cannot modify lines yet."
|
|
325
|
+
"note": "Required \u2014 at least one; QuickBooks Desktop's BillPaymentCheckAdd/BillPaymentCreditCardAdd schema requires one or more AppliedToTxnAdd. Write: LinkedTxn bills \u2192 AppliedToTxnAdd; additional LinkedTxn VendorCredit \u2192 SetCredit (the Add request shape). Read: an applied vendor credit comes back nested as AppliedToTxnRet.LinkedTxn (TxnType VendorCredit, Amount negative \u2014 absolute value surfaced as QBO LinkedTxn.Amount), not SetCreditRet/SetCredit, which Desktop never returns on this Ret (verified live, 2026-09-28). Sparse updates cannot modify lines yet."
|
|
319
326
|
},
|
|
320
327
|
{
|
|
321
328
|
"qbo": "CurrencyRef",
|
|
@@ -328,6 +335,11 @@ var CATALOG = {
|
|
|
328
335
|
"support": "none",
|
|
329
336
|
"note": "Multicurrency not yet supported.",
|
|
330
337
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"qbo": "operation=void",
|
|
341
|
+
"support": "partial",
|
|
342
|
+
"note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType BillPaymentCheck / BillPaymentCreditCard, picked by a read of the record), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29, check family): amounts zeroed, the applied-to-bill Line entries are removed and the paid bills reopen, PrivateNote prefixed `VOID: `; voiding again succeeds. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
|
|
331
343
|
}
|
|
332
344
|
],
|
|
333
345
|
"unsupported": [
|
|
@@ -340,24 +352,82 @@ var CATALOG = {
|
|
|
340
352
|
},
|
|
341
353
|
"Budget": {
|
|
342
354
|
"entity": "Budget",
|
|
343
|
-
"verdict": "
|
|
344
|
-
"group": "
|
|
345
|
-
"read": "
|
|
355
|
+
"verdict": "live",
|
|
356
|
+
"group": "company",
|
|
357
|
+
"read": "partial",
|
|
346
358
|
"write": "none",
|
|
347
|
-
"headline":
|
|
348
|
-
"fields": [
|
|
359
|
+
"headline": 'Read-only, synthesized from BudgetSummaryReportQuery \u2014 qbXML has no Budget record, so Id is synthetic and deterministic ({fiscalYear}-{BudgetType}, e.g. 2026-ProfitAndLoss) with SyncToken pinned to "0", SELECT * probes the current calendar year \xB11 against both statement types, and budget writes stay in the QuickBooks Desktop UI forever',
|
|
360
|
+
"fields": [
|
|
361
|
+
{
|
|
362
|
+
"qbo": "Name",
|
|
363
|
+
"support": "partial",
|
|
364
|
+
"note": 'Synthesized from the id \u2014 "FY2026 Profit and Loss Budget", "FY2026 Balance Sheet Budget". Desktop budget names are not exposed by BudgetSummaryReportQuery, so this is a stable derived label, not the name you typed in QuickBooks.'
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"qbo": "StartDate",
|
|
368
|
+
"support": "full",
|
|
369
|
+
"note": "The 1st of the first budgeted month column, e.g. January 1 for a calendar-year budget. Never taken from the report's ReportSubtitle prose, which can state a mid-year as-of window (a year-to-date subtitle) even though the report's money columns cover the full fiscal year."
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"qbo": "EndDate",
|
|
373
|
+
"support": "full",
|
|
374
|
+
"note": "The last day of the last budgeted month column, e.g. December 31 for a calendar-year budget \u2014 not the report's ReportSubtitle, which can understate this (a year-to-date subtitle names today's date, not the budget's fiscal-year end)."
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"qbo": "BudgetType",
|
|
378
|
+
"support": "partial",
|
|
379
|
+
"note": "ProfitAndLoss (ProfitAndLossBudgetOverview) and BalanceSheet (BalanceSheetBudgetOverview). Desktop's three budget-vs-actual report types mix actuals and variance into the same table \u2014 those are reports, not budgets, and are not exposed here."
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"qbo": "BudgetEntryType",
|
|
383
|
+
"support": "partial",
|
|
384
|
+
"note": 'Always "Monthly". Desktop budgets are entered by month, and the report is requested with monthly columns; Yearly entry is not represented.'
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"qbo": "Active",
|
|
388
|
+
"support": "partial",
|
|
389
|
+
"note": "Always true. A budget that returns amounts exists; Desktop has no inactive flag for budgets."
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"qbo": "BudgetDetail",
|
|
393
|
+
"support": "partial",
|
|
394
|
+
"note": 'One entry per account \xD7 budgeted month, with BudgetDate (first of the month), Amount, and AccountRef. Months with no budgeted amount are omitted, matching QBO \u2014 a Desktop 0.00 cell is indistinguishable from "not budgeted".'
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"qbo": "MetaData",
|
|
398
|
+
"support": "none",
|
|
399
|
+
"note": "Desktop's budget report carries no created/modified stamp, so CreateTime/LastUpdatedTime are omitted rather than invented."
|
|
400
|
+
}
|
|
401
|
+
],
|
|
349
402
|
"unsupported": [
|
|
350
403
|
{
|
|
351
|
-
"case": "
|
|
404
|
+
"case": "query \u2014 SELECT * cannot enumerate every budget",
|
|
405
|
+
"error": "UNSUPPORTED_QUERY",
|
|
406
|
+
"note": "qbXML cannot list budgets: BudgetSummaryReportQueryRq requires a FiscalYear. SELECT * FROM Budget probes a fixed window \u2014 the current calendar year, the one before it, and the one after it \u2014 against both statement types (six report requests in one round-trip) and returns the ones that come back with budgeted amounts. A budget outside that window is invisible to SELECT *. Because the probe is speculative, the query never faults on an individual report's status: a company with no budgets gets an empty list, exactly as QBO answers. GET by id has one report and does surface its status.",
|
|
407
|
+
"workaround": "Fetch it by id: GET /v3/company/{realmId}/budget/{fiscalYear}-{BudgetType}, e.g. 2023-ProfitAndLoss, which issues exactly one report request for that year."
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"case": "query \u2014 WHERE on anything but Id",
|
|
411
|
+
"error": "UNSUPPORTED_QUERY",
|
|
412
|
+
"note": "Budget is not a Desktop list, so there is no query filter to compile a WHERE clause into. Only WHERE Id = '{fiscalYear}-{BudgetType}' is accepted; it resolves to the same single report request GET by id uses.",
|
|
413
|
+
"workaround": "Fetch the window with SELECT * FROM Budget and filter the (at most six) rows client-side."
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"case": "read \u2014 Class and Customer budget breakdowns",
|
|
352
417
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
353
|
-
"note": "
|
|
354
|
-
"workaround": "
|
|
418
|
+
"note": "Desktop's BudgetCriterion also offers AccountsAndClasses and AccountsAndCustomers, which QBO would carry as ClassRef/CustomerRef on BudgetDetail. TenkeyBridge sends the Accounts criterion only: the extra breakdowns come back as report rows whose sole identity is a display label, and splitting a label into account + class would be a guess.",
|
|
419
|
+
"workaround": "Read the class- or customer-level figures from the budget reports in QuickBooks Desktop directly."
|
|
355
420
|
},
|
|
356
421
|
{
|
|
357
|
-
"case": "
|
|
422
|
+
"case": "read \u2014 budget-vs-actual report types",
|
|
358
423
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
359
|
-
"note": "
|
|
360
|
-
"workaround": "
|
|
424
|
+
"note": "BalanceSheetBudgetVsActual, ProfitAndLossBudgetVsActual and ProfitAndLossBudgetPerformance mix actuals and variance columns into the budget table. Those are reports, not budgets; putting non-budget money in BudgetDetail.Amount would be wrong.",
|
|
425
|
+
"workaround": "Pull the actuals with the Reports surface (ProfitAndLoss / BalanceSheet) and compare them against this Budget client-side."
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"case": "read \u2014 AccountRef.value on an unrecognised row label",
|
|
429
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
430
|
+
"note": `Desktop report rows name an account by display label only; there is no ListID anywhere in the report. TenkeyBridge resolves the label against the chart of accounts it fetches in the same round-trip \u2014 matching FullName (stripping a leading "{AccountNumber} \xB7 " from every colon-separated segment of a qualified/subaccount label, e.g. "40100 \xB7 Construction Income:40130 \xB7 Labor Income") and, failing that, the leaf segment's own AccountNumber \u2014 but a label neither can explain yields AccountRef with a name and no value rather than an invented id.`
|
|
361
431
|
},
|
|
362
432
|
{
|
|
363
433
|
"case": "create",
|
|
@@ -421,6 +491,12 @@ var CATALOG = {
|
|
|
421
491
|
"case": "deleted TaxAgency / ExchangeRate / Transfer detection",
|
|
422
492
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
423
493
|
"note": "Tax agencies are vendors on Desktop (deletion indistinguishable); exchange rates ride the Currency list; 'Transfer' is not a valid TxnDelType."
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"case": "Budget in the entities list",
|
|
497
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
498
|
+
"note": "Budget is synthesized from a Desktop report rather than stored as a record, so there is no created/modified timestamp to compare a CDC window against. It returns a per-entity Fault slot; the other entities in the same request still return data.",
|
|
499
|
+
"workaround": "Re-read it with SELECT * FROM Budget (or GET /budget/{fiscalYear}-{BudgetType}) whenever you need the current figures."
|
|
424
500
|
}
|
|
425
501
|
]
|
|
426
502
|
},
|
|
@@ -601,7 +677,8 @@ var CATALOG = {
|
|
|
601
677
|
},
|
|
602
678
|
{
|
|
603
679
|
"qbo": "DocNumber",
|
|
604
|
-
"support": "full"
|
|
680
|
+
"support": "full",
|
|
681
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A single quote is allowed; query it with a backslash escape."
|
|
605
682
|
},
|
|
606
683
|
{
|
|
607
684
|
"qbo": "BillAddr",
|
|
@@ -939,7 +1016,7 @@ var CATALOG = {
|
|
|
939
1016
|
{
|
|
940
1017
|
"qbo": "Line",
|
|
941
1018
|
"support": "partial",
|
|
942
|
-
"note": "LinkedTxn (PaymentTxnID path) for undeposited payments, or DepositLineDetail{Entity, AccountRef, PaymentMethodRef, CheckNum}. Sparse updates cannot modify lines yet."
|
|
1019
|
+
"note": "Write: LinkedTxn (PaymentTxnID path) for undeposited payments, or DepositLineDetail{Entity, AccountRef, PaymentMethodRef, CheckNum} for a manual line \u2014 one or the other, and a manual line's DepositLineDetail.AccountRef is required. Read: Desktop always returns DepositLineDetail; a line sourced from a deposited payment also carries LinkedTxn (TxnId/TxnType Payment) alongside it. Sparse updates cannot modify lines yet."
|
|
943
1020
|
},
|
|
944
1021
|
{
|
|
945
1022
|
"qbo": "CashBack",
|
|
@@ -1079,7 +1156,8 @@ var CATALOG = {
|
|
|
1079
1156
|
},
|
|
1080
1157
|
{
|
|
1081
1158
|
"qbo": "DocNumber",
|
|
1082
|
-
"support": "full"
|
|
1159
|
+
"support": "full",
|
|
1160
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A single quote is allowed; query it with a backslash escape."
|
|
1083
1161
|
},
|
|
1084
1162
|
{
|
|
1085
1163
|
"qbo": "BillAddr",
|
|
@@ -1123,7 +1201,7 @@ var CATALOG = {
|
|
|
1123
1201
|
{
|
|
1124
1202
|
"qbo": "LinkedTxn",
|
|
1125
1203
|
"support": "full",
|
|
1126
|
-
"note": "Populated on read from
|
|
1204
|
+
"note": "Populated on read from LinkedTxn (IncludeLinkedTxns automatic) \u2014 progress-invoicing links when present. Links to Desktop-only transaction types (SalesOrder, ItemReceipt, \u2026) are omitted rather than guessed at. Accepted and ignored on write."
|
|
1127
1205
|
},
|
|
1128
1206
|
{
|
|
1129
1207
|
"qbo": "CustomField",
|
|
@@ -1254,7 +1332,8 @@ var CATALOG = {
|
|
|
1254
1332
|
},
|
|
1255
1333
|
{
|
|
1256
1334
|
"qbo": "DocNumber",
|
|
1257
|
-
"support": "full"
|
|
1335
|
+
"support": "full",
|
|
1336
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A single quote is allowed; query it with a backslash escape."
|
|
1258
1337
|
},
|
|
1259
1338
|
{
|
|
1260
1339
|
"qbo": "BillAddr",
|
|
@@ -1306,7 +1385,7 @@ var CATALOG = {
|
|
|
1306
1385
|
{
|
|
1307
1386
|
"qbo": "LinkedTxn",
|
|
1308
1387
|
"support": "full",
|
|
1309
|
-
"note": "Populated on read from
|
|
1388
|
+
"note": "Populated on read from LinkedTxn when IncludeLinkedTxns is requested (automatic). Desktop ReceivePayment \u2192 QBO Payment; links to Desktop-only transaction types (SalesOrder, ItemReceipt, \u2026) are omitted rather than guessed at. Accepted and ignored on write \u2014 same as QBO treats it as read-only."
|
|
1310
1389
|
},
|
|
1311
1390
|
{
|
|
1312
1391
|
"qbo": "CustomField",
|
|
@@ -1332,6 +1411,11 @@ var CATALOG = {
|
|
|
1332
1411
|
"qbo": "ExchangeRate",
|
|
1333
1412
|
"support": "partial",
|
|
1334
1413
|
"note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"qbo": "operation=void",
|
|
1417
|
+
"support": "partial",
|
|
1418
|
+
"note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Invoice), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29): the re-read shows amounts and line Qty zeroed, PrivateNote prefixed `VOID: `, TxnDate unchanged, a new SyncToken; voiding again succeeds. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
|
|
1335
1419
|
}
|
|
1336
1420
|
],
|
|
1337
1421
|
"unsupported": [
|
|
@@ -1508,7 +1592,8 @@ var CATALOG = {
|
|
|
1508
1592
|
},
|
|
1509
1593
|
{
|
|
1510
1594
|
"qbo": "DocNumber",
|
|
1511
|
-
"support": "full"
|
|
1595
|
+
"support": "full",
|
|
1596
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A single quote is allowed; query it with a backslash escape."
|
|
1512
1597
|
},
|
|
1513
1598
|
{
|
|
1514
1599
|
"qbo": "PrivateNote",
|
|
@@ -1579,7 +1664,7 @@ var CATALOG = {
|
|
|
1579
1664
|
{
|
|
1580
1665
|
"qbo": "PaymentRefNum",
|
|
1581
1666
|
"support": "full",
|
|
1582
|
-
"note": "Desktop RefNumber. Query filtering by PaymentRefNum is not supported yet \u2014 query by Id or date range."
|
|
1667
|
+
"note": "Desktop RefNumber: max 20 characters; longer values are rejected up front with a 400 fault (code 2050). Query filtering by PaymentRefNum is not supported yet \u2014 query by Id or date range."
|
|
1583
1668
|
},
|
|
1584
1669
|
{
|
|
1585
1670
|
"qbo": "TotalAmt",
|
|
@@ -1641,7 +1726,13 @@ var CATALOG = {
|
|
|
1641
1726
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1642
1727
|
}
|
|
1643
1728
|
],
|
|
1644
|
-
"unsupported": [
|
|
1729
|
+
"unsupported": [
|
|
1730
|
+
{
|
|
1731
|
+
"case": "operation=void",
|
|
1732
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1733
|
+
"note": "qbXML's TxnVoidType has no ReceivePayment value \u2014 a customer payment cannot be voided through the SDK (HTTP 400). Delete it (?operation=delete) and re-enter it if needed."
|
|
1734
|
+
}
|
|
1735
|
+
]
|
|
1645
1736
|
},
|
|
1646
1737
|
"PaymentMethod": {
|
|
1647
1738
|
"entity": "PaymentMethod",
|
|
@@ -1782,7 +1873,8 @@ var CATALOG = {
|
|
|
1782
1873
|
},
|
|
1783
1874
|
{
|
|
1784
1875
|
"qbo": "DocNumber",
|
|
1785
|
-
"support": "full"
|
|
1876
|
+
"support": "full",
|
|
1877
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A single quote is allowed; query it with a backslash escape."
|
|
1786
1878
|
},
|
|
1787
1879
|
{
|
|
1788
1880
|
"qbo": "PrivateNote",
|
|
@@ -1814,6 +1906,11 @@ var CATALOG = {
|
|
|
1814
1906
|
"support": "none",
|
|
1815
1907
|
"note": "Multicurrency not yet supported.",
|
|
1816
1908
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
"qbo": "operation=void",
|
|
1912
|
+
"support": "partial",
|
|
1913
|
+
"note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Check / CreditCardCharge / CreditCardCredit, picked by a read of the record), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29, Check family): amounts zeroed, PrintStatus becomes PrintComplete, and PrivateNote becomes `VOID: <memo> GJE, RGJE created on MM/DD/YYYY` \u2014 Desktop posts a journal entry and a reversing journal entry dated the void day, whatever the check's date; voiding again succeeds. CreditCardCharge/CreditCardCredit voids are not yet live-tested. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
|
|
1817
1914
|
}
|
|
1818
1915
|
],
|
|
1819
1916
|
"unsupported": [
|
|
@@ -1847,7 +1944,8 @@ var CATALOG = {
|
|
|
1847
1944
|
},
|
|
1848
1945
|
{
|
|
1849
1946
|
"qbo": "DocNumber",
|
|
1850
|
-
"support": "full"
|
|
1947
|
+
"support": "full",
|
|
1948
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A single quote is allowed; query it with a backslash escape."
|
|
1851
1949
|
},
|
|
1852
1950
|
{
|
|
1853
1951
|
"qbo": "VendorAddr",
|
|
@@ -1985,7 +2083,8 @@ var CATALOG = {
|
|
|
1985
2083
|
},
|
|
1986
2084
|
{
|
|
1987
2085
|
"qbo": "DocNumber",
|
|
1988
|
-
"support": "full"
|
|
2086
|
+
"support": "full",
|
|
2087
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A single quote is allowed; query it with a backslash escape."
|
|
1989
2088
|
},
|
|
1990
2089
|
{
|
|
1991
2090
|
"qbo": "PrivateNote",
|
|
@@ -2146,7 +2245,8 @@ var CATALOG = {
|
|
|
2146
2245
|
},
|
|
2147
2246
|
{
|
|
2148
2247
|
"qbo": "DocNumber",
|
|
2149
|
-
"support": "full"
|
|
2248
|
+
"support": "full",
|
|
2249
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A single quote is allowed; query it with a backslash escape."
|
|
2150
2250
|
},
|
|
2151
2251
|
{
|
|
2152
2252
|
"qbo": "BillAddr",
|
|
@@ -2211,6 +2311,11 @@ var CATALOG = {
|
|
|
2211
2311
|
"qbo": "ExchangeRate",
|
|
2212
2312
|
"support": "partial",
|
|
2213
2313
|
"note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
"qbo": "operation=void",
|
|
2317
|
+
"support": "partial",
|
|
2318
|
+
"note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType SalesReceipt), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29): the re-read shows amounts and line Qty zeroed, PrivateNote prefixed `VOID: `, TxnDate unchanged, a new SyncToken; voiding again succeeds. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
|
|
2214
2319
|
}
|
|
2215
2320
|
],
|
|
2216
2321
|
"unsupported": [
|
|
@@ -2776,7 +2881,8 @@ var CATALOG = {
|
|
|
2776
2881
|
},
|
|
2777
2882
|
{
|
|
2778
2883
|
"qbo": "DocNumber",
|
|
2779
|
-
"support": "full"
|
|
2884
|
+
"support": "full",
|
|
2885
|
+
"note": "Desktop RefNumber: max 20 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A single quote is allowed; query it with a backslash escape."
|
|
2780
2886
|
},
|
|
2781
2887
|
{
|
|
2782
2888
|
"qbo": "PrivateNote",
|
|
@@ -3051,7 +3157,7 @@ function registerTools(server, client) {
|
|
|
3051
3157
|
}
|
|
3052
3158
|
|
|
3053
3159
|
// src/version.ts
|
|
3054
|
-
var PKG_VERSION = "0.
|
|
3160
|
+
var PKG_VERSION = "0.2.0";
|
|
3055
3161
|
|
|
3056
3162
|
// src/server.ts
|
|
3057
3163
|
var SERVER_NAME = "tenkeybridge";
|