@pulses/quickbooks-mcp 1.0.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/client.d.ts +33 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +327 -0
- package/dist/client.js.map +1 -0
- package/dist/constants.d.ts +12 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +12 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +436 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/accounts.d.ts +140 -0
- package/dist/tools/accounts.d.ts.map +1 -0
- package/dist/tools/accounts.js +115 -0
- package/dist/tools/accounts.js.map +1 -0
- package/dist/tools/bills.d.ts +386 -0
- package/dist/tools/bills.d.ts.map +1 -0
- package/dist/tools/bills.js +180 -0
- package/dist/tools/bills.js.map +1 -0
- package/dist/tools/company.d.ts +20 -0
- package/dist/tools/company.d.ts.map +1 -0
- package/dist/tools/company.js +37 -0
- package/dist/tools/company.js.map +1 -0
- package/dist/tools/customers.d.ts +218 -0
- package/dist/tools/customers.d.ts.map +1 -0
- package/dist/tools/customers.js +154 -0
- package/dist/tools/customers.js.map +1 -0
- package/dist/tools/employees.d.ts +182 -0
- package/dist/tools/employees.d.ts.map +1 -0
- package/dist/tools/employees.js +138 -0
- package/dist/tools/employees.js.map +1 -0
- package/dist/tools/estimates.d.ts +200 -0
- package/dist/tools/estimates.d.ts.map +1 -0
- package/dist/tools/estimates.js +131 -0
- package/dist/tools/estimates.js.map +1 -0
- package/dist/tools/invoices.d.ts +402 -0
- package/dist/tools/invoices.d.ts.map +1 -0
- package/dist/tools/invoices.js +203 -0
- package/dist/tools/invoices.js.map +1 -0
- package/dist/tools/items.d.ts +212 -0
- package/dist/tools/items.d.ts.map +1 -0
- package/dist/tools/items.js +153 -0
- package/dist/tools/items.js.map +1 -0
- package/dist/tools/journal-entries.d.ts +198 -0
- package/dist/tools/journal-entries.d.ts.map +1 -0
- package/dist/tools/journal-entries.js +135 -0
- package/dist/tools/journal-entries.js.map +1 -0
- package/dist/tools/payments.d.ts +174 -0
- package/dist/tools/payments.d.ts.map +1 -0
- package/dist/tools/payments.js +120 -0
- package/dist/tools/payments.js.map +1 -0
- package/dist/tools/purchases.d.ts +240 -0
- package/dist/tools/purchases.d.ts.map +1 -0
- package/dist/tools/purchases.js +149 -0
- package/dist/tools/purchases.js.map +1 -0
- package/dist/tools/query.d.ts +26 -0
- package/dist/tools/query.d.ts.map +1 -0
- package/dist/tools/query.js +27 -0
- package/dist/tools/query.js.map +1 -0
- package/dist/tools/reports.d.ts +178 -0
- package/dist/tools/reports.d.ts.map +1 -0
- package/dist/tools/reports.js +117 -0
- package/dist/tools/reports.js.map +1 -0
- package/dist/tools/tax.d.ts +116 -0
- package/dist/tools/tax.d.ts.map +1 -0
- package/dist/tools/tax.js +112 -0
- package/dist/tools/tax.js.map +1 -0
- package/dist/tools/time-activities.d.ts +228 -0
- package/dist/tools/time-activities.d.ts.map +1 -0
- package/dist/tools/time-activities.js +164 -0
- package/dist/tools/time-activities.js.map +1 -0
- package/dist/tools/vendors.d.ts +212 -0
- package/dist/tools/vendors.d.ts.map +1 -0
- package/dist/tools/vendors.js +152 -0
- package/dist/tools/vendors.js.map +1 -0
- package/dist/types.d.ts +295 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +11 -0
- package/dist/types.js.map +1 -0
- package/package.json +46 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
|
+
import { TokenManager, QBOClient } from "./client.js";
|
|
5
|
+
import { qbo_get_company_info, GetCompanyInfoInputSchemaExport, } from "./tools/company.js";
|
|
6
|
+
import { qbo_list_customers, qbo_get_customer, qbo_create_customer, qbo_update_customer, ListCustomersInputSchemaExport, GetCustomerInputSchemaExport, CreateCustomerInputSchemaExport, UpdateCustomerInputSchemaExport, } from "./tools/customers.js";
|
|
7
|
+
import { qbo_list_invoices, qbo_get_invoice, qbo_create_invoice, qbo_update_invoice, qbo_delete_invoice, qbo_void_invoice, qbo_send_invoice, ListInvoicesInputSchemaExport, GetInvoiceInputSchemaExport, CreateInvoiceInputSchemaExport, UpdateInvoiceInputSchemaExport, DeleteInvoiceInputSchemaExport, VoidInvoiceInputSchemaExport, SendInvoiceInputSchemaExport, } from "./tools/invoices.js";
|
|
8
|
+
import { qbo_list_payments, qbo_get_payment, qbo_create_payment, qbo_delete_payment, ListPaymentsInputSchemaExport, GetPaymentInputSchemaExport, CreatePaymentInputSchemaExport, DeletePaymentInputSchemaExport, } from "./tools/payments.js";
|
|
9
|
+
import { qbo_list_items, qbo_get_item, qbo_create_item, qbo_update_item, ListItemsInputSchemaExport, GetItemInputSchemaExport, CreateItemInputSchemaExport, UpdateItemInputSchemaExport, } from "./tools/items.js";
|
|
10
|
+
import { qbo_list_estimates, qbo_get_estimate, qbo_create_estimate, qbo_delete_estimate, ListEstimatesInputSchemaExport, GetEstimateInputSchemaExport, CreateEstimateInputSchemaExport, DeleteEstimateInputSchemaExport, } from "./tools/estimates.js";
|
|
11
|
+
import { qbo_list_bills, qbo_get_bill, qbo_create_bill, qbo_update_bill, qbo_delete_bill, ListBillsInputSchemaExport, GetBillInputSchemaExport, CreateBillInputSchemaExport, UpdateBillInputSchemaExport, DeleteBillInputSchemaExport, } from "./tools/bills.js";
|
|
12
|
+
import { qbo_list_vendors, qbo_get_vendor, qbo_create_vendor, qbo_update_vendor, ListVendorsInputSchemaExport, GetVendorInputSchemaExport, CreateVendorInputSchemaExport, UpdateVendorInputSchemaExport, } from "./tools/vendors.js";
|
|
13
|
+
import { qbo_list_accounts, qbo_get_account, qbo_create_account, qbo_update_account, ListAccountsInputSchemaExport, GetAccountInputSchemaExport, CreateAccountInputSchemaExport, UpdateAccountInputSchemaExport, } from "./tools/accounts.js";
|
|
14
|
+
import { qbo_list_employees, qbo_get_employee, qbo_create_employee, qbo_update_employee, ListEmployeesInputSchemaExport, GetEmployeeInputSchemaExport, CreateEmployeeInputSchemaExport, UpdateEmployeeInputSchemaExport, } from "./tools/employees.js";
|
|
15
|
+
import { qbo_list_time_activities, qbo_get_time_activity, qbo_create_time_activity, qbo_update_time_activity, qbo_delete_time_activity, ListTimeActivitiesInputSchemaExport, GetTimeActivityInputSchemaExport, CreateTimeActivityInputSchemaExport, UpdateTimeActivityInputSchemaExport, DeleteTimeActivityInputSchemaExport, } from "./tools/time-activities.js";
|
|
16
|
+
import { qbo_list_purchases, qbo_get_purchase, qbo_create_purchase, qbo_delete_purchase, ListPurchasesInputSchemaExport, GetPurchaseInputSchemaExport, CreatePurchaseInputSchemaExport, DeletePurchaseInputSchemaExport, } from "./tools/purchases.js";
|
|
17
|
+
import { qbo_list_journal_entries, qbo_get_journal_entry, qbo_create_journal_entry, qbo_delete_journal_entry, ListJournalEntriesInputSchemaExport, GetJournalEntryInputSchemaExport, CreateJournalEntryInputSchemaExport, DeleteJournalEntryInputSchemaExport, } from "./tools/journal-entries.js";
|
|
18
|
+
import { qbo_list_tax_rates, qbo_get_tax_rate, qbo_list_tax_codes, qbo_get_tax_code, ListTaxRatesInputSchemaExport, GetTaxRateInputSchemaExport, ListTaxCodesInputSchemaExport, GetTaxCodeInputSchemaExport, } from "./tools/tax.js";
|
|
19
|
+
import { qbo_profit_and_loss, qbo_balance_sheet, qbo_report, ProfitAndLossInputSchemaExport, BalanceSheetInputSchemaExport, GeneralReportInputSchemaExport, } from "./tools/reports.js";
|
|
20
|
+
import { qbo_query, QueryInputSchemaExport, } from "./tools/query.js";
|
|
21
|
+
const server = new McpServer({
|
|
22
|
+
name: "quickbooks-mcp",
|
|
23
|
+
version: "1.0.0",
|
|
24
|
+
});
|
|
25
|
+
const tokenManager = new TokenManager();
|
|
26
|
+
const client = new QBOClient(tokenManager);
|
|
27
|
+
function registerTool(name, meta, handler) {
|
|
28
|
+
server.registerTool(name, meta, async (params) => {
|
|
29
|
+
try {
|
|
30
|
+
const result = await handler(params);
|
|
31
|
+
return { content: [{ type: "text", text: result }] };
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
35
|
+
return { content: [{ type: "text", text: `Error: ${message}` }] };
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
// ─── Company ───
|
|
40
|
+
registerTool("qbo_get_company_info", {
|
|
41
|
+
title: "Get Company Info",
|
|
42
|
+
description: "Get the connected QuickBooks company information including name, address, and fiscal settings",
|
|
43
|
+
inputSchema: GetCompanyInfoInputSchemaExport,
|
|
44
|
+
annotations: { readOnlyHint: true },
|
|
45
|
+
}, (params) => qbo_get_company_info(client, params));
|
|
46
|
+
// ─── Customers ───
|
|
47
|
+
registerTool("qbo_list_customers", {
|
|
48
|
+
title: "List Customers",
|
|
49
|
+
description: "Query customers with optional WHERE/ORDER BY filters and pagination. Uses QBO query language.",
|
|
50
|
+
inputSchema: ListCustomersInputSchemaExport,
|
|
51
|
+
annotations: { readOnlyHint: true },
|
|
52
|
+
}, (params) => qbo_list_customers(client, params));
|
|
53
|
+
registerTool("qbo_get_customer", {
|
|
54
|
+
title: "Get Customer",
|
|
55
|
+
description: "Get a specific customer by ID",
|
|
56
|
+
inputSchema: GetCustomerInputSchemaExport,
|
|
57
|
+
annotations: { readOnlyHint: true },
|
|
58
|
+
}, (params) => qbo_get_customer(client, params));
|
|
59
|
+
registerTool("qbo_create_customer", {
|
|
60
|
+
title: "Create Customer",
|
|
61
|
+
description: "Create a new customer in QuickBooks",
|
|
62
|
+
inputSchema: CreateCustomerInputSchemaExport,
|
|
63
|
+
annotations: { destructiveHint: false },
|
|
64
|
+
}, (params) => qbo_create_customer(client, params));
|
|
65
|
+
registerTool("qbo_update_customer", {
|
|
66
|
+
title: "Update Customer",
|
|
67
|
+
description: "Update an existing customer. Requires the current SyncToken.",
|
|
68
|
+
inputSchema: UpdateCustomerInputSchemaExport,
|
|
69
|
+
annotations: { destructiveHint: false },
|
|
70
|
+
}, (params) => qbo_update_customer(client, params));
|
|
71
|
+
// ─── Invoices ───
|
|
72
|
+
registerTool("qbo_list_invoices", {
|
|
73
|
+
title: "List Invoices",
|
|
74
|
+
description: "Query invoices with optional filters and pagination",
|
|
75
|
+
inputSchema: ListInvoicesInputSchemaExport,
|
|
76
|
+
annotations: { readOnlyHint: true },
|
|
77
|
+
}, (params) => qbo_list_invoices(client, params));
|
|
78
|
+
registerTool("qbo_get_invoice", {
|
|
79
|
+
title: "Get Invoice",
|
|
80
|
+
description: "Get a specific invoice by ID with full line item details",
|
|
81
|
+
inputSchema: GetInvoiceInputSchemaExport,
|
|
82
|
+
annotations: { readOnlyHint: true },
|
|
83
|
+
}, (params) => qbo_get_invoice(client, params));
|
|
84
|
+
registerTool("qbo_create_invoice", {
|
|
85
|
+
title: "Create Invoice",
|
|
86
|
+
description: "Create a new invoice for a customer with line items",
|
|
87
|
+
inputSchema: CreateInvoiceInputSchemaExport,
|
|
88
|
+
annotations: { destructiveHint: false },
|
|
89
|
+
}, (params) => qbo_create_invoice(client, params));
|
|
90
|
+
registerTool("qbo_update_invoice", {
|
|
91
|
+
title: "Update Invoice",
|
|
92
|
+
description: "Update an existing invoice. Requires SyncToken.",
|
|
93
|
+
inputSchema: UpdateInvoiceInputSchemaExport,
|
|
94
|
+
annotations: { destructiveHint: false },
|
|
95
|
+
}, (params) => qbo_update_invoice(client, params));
|
|
96
|
+
registerTool("qbo_delete_invoice", {
|
|
97
|
+
title: "Delete Invoice",
|
|
98
|
+
description: "Permanently delete an invoice. Requires SyncToken.",
|
|
99
|
+
inputSchema: DeleteInvoiceInputSchemaExport,
|
|
100
|
+
annotations: { destructiveHint: true },
|
|
101
|
+
}, (params) => qbo_delete_invoice(client, params));
|
|
102
|
+
registerTool("qbo_void_invoice", {
|
|
103
|
+
title: "Void Invoice",
|
|
104
|
+
description: "Void an invoice (keeps it in records but zeroes the balance). Requires SyncToken.",
|
|
105
|
+
inputSchema: VoidInvoiceInputSchemaExport,
|
|
106
|
+
annotations: { destructiveHint: true },
|
|
107
|
+
}, (params) => qbo_void_invoice(client, params));
|
|
108
|
+
registerTool("qbo_send_invoice", {
|
|
109
|
+
title: "Send Invoice Email",
|
|
110
|
+
description: "Send an invoice via email to the customer",
|
|
111
|
+
inputSchema: SendInvoiceInputSchemaExport,
|
|
112
|
+
annotations: { destructiveHint: false },
|
|
113
|
+
}, (params) => qbo_send_invoice(client, params));
|
|
114
|
+
// ─── Payments ───
|
|
115
|
+
registerTool("qbo_list_payments", {
|
|
116
|
+
title: "List Payments",
|
|
117
|
+
description: "Query payments with optional filters",
|
|
118
|
+
inputSchema: ListPaymentsInputSchemaExport,
|
|
119
|
+
annotations: { readOnlyHint: true },
|
|
120
|
+
}, (params) => qbo_list_payments(client, params));
|
|
121
|
+
registerTool("qbo_get_payment", {
|
|
122
|
+
title: "Get Payment",
|
|
123
|
+
description: "Get a specific payment by ID",
|
|
124
|
+
inputSchema: GetPaymentInputSchemaExport,
|
|
125
|
+
annotations: { readOnlyHint: true },
|
|
126
|
+
}, (params) => qbo_get_payment(client, params));
|
|
127
|
+
registerTool("qbo_create_payment", {
|
|
128
|
+
title: "Create Payment",
|
|
129
|
+
description: "Record a payment from a customer, optionally linked to invoices",
|
|
130
|
+
inputSchema: CreatePaymentInputSchemaExport,
|
|
131
|
+
annotations: { destructiveHint: false },
|
|
132
|
+
}, (params) => qbo_create_payment(client, params));
|
|
133
|
+
registerTool("qbo_delete_payment", {
|
|
134
|
+
title: "Delete Payment",
|
|
135
|
+
description: "Delete a payment. Requires SyncToken.",
|
|
136
|
+
inputSchema: DeletePaymentInputSchemaExport,
|
|
137
|
+
annotations: { destructiveHint: true },
|
|
138
|
+
}, (params) => qbo_delete_payment(client, params));
|
|
139
|
+
// ─── Items/Products ───
|
|
140
|
+
registerTool("qbo_list_items", {
|
|
141
|
+
title: "List Items",
|
|
142
|
+
description: "Query items/products/services with optional filters",
|
|
143
|
+
inputSchema: ListItemsInputSchemaExport,
|
|
144
|
+
annotations: { readOnlyHint: true },
|
|
145
|
+
}, (params) => qbo_list_items(client, params));
|
|
146
|
+
registerTool("qbo_get_item", {
|
|
147
|
+
title: "Get Item",
|
|
148
|
+
description: "Get a specific item/product/service by ID",
|
|
149
|
+
inputSchema: GetItemInputSchemaExport,
|
|
150
|
+
annotations: { readOnlyHint: true },
|
|
151
|
+
}, (params) => qbo_get_item(client, params));
|
|
152
|
+
registerTool("qbo_create_item", {
|
|
153
|
+
title: "Create Item",
|
|
154
|
+
description: "Create a new item (Inventory, NonInventory, or Service)",
|
|
155
|
+
inputSchema: CreateItemInputSchemaExport,
|
|
156
|
+
annotations: { destructiveHint: false },
|
|
157
|
+
}, (params) => qbo_create_item(client, params));
|
|
158
|
+
registerTool("qbo_update_item", {
|
|
159
|
+
title: "Update Item",
|
|
160
|
+
description: "Update an existing item. Requires SyncToken.",
|
|
161
|
+
inputSchema: UpdateItemInputSchemaExport,
|
|
162
|
+
annotations: { destructiveHint: false },
|
|
163
|
+
}, (params) => qbo_update_item(client, params));
|
|
164
|
+
// ─── Estimates ───
|
|
165
|
+
registerTool("qbo_list_estimates", {
|
|
166
|
+
title: "List Estimates",
|
|
167
|
+
description: "Query estimates with optional filters",
|
|
168
|
+
inputSchema: ListEstimatesInputSchemaExport,
|
|
169
|
+
annotations: { readOnlyHint: true },
|
|
170
|
+
}, (params) => qbo_list_estimates(client, params));
|
|
171
|
+
registerTool("qbo_get_estimate", {
|
|
172
|
+
title: "Get Estimate",
|
|
173
|
+
description: "Get a specific estimate by ID",
|
|
174
|
+
inputSchema: GetEstimateInputSchemaExport,
|
|
175
|
+
annotations: { readOnlyHint: true },
|
|
176
|
+
}, (params) => qbo_get_estimate(client, params));
|
|
177
|
+
registerTool("qbo_create_estimate", {
|
|
178
|
+
title: "Create Estimate",
|
|
179
|
+
description: "Create a new estimate for a customer",
|
|
180
|
+
inputSchema: CreateEstimateInputSchemaExport,
|
|
181
|
+
annotations: { destructiveHint: false },
|
|
182
|
+
}, (params) => qbo_create_estimate(client, params));
|
|
183
|
+
registerTool("qbo_delete_estimate", {
|
|
184
|
+
title: "Delete Estimate",
|
|
185
|
+
description: "Delete an estimate. Requires SyncToken.",
|
|
186
|
+
inputSchema: DeleteEstimateInputSchemaExport,
|
|
187
|
+
annotations: { destructiveHint: true },
|
|
188
|
+
}, (params) => qbo_delete_estimate(client, params));
|
|
189
|
+
// ─── Bills ───
|
|
190
|
+
registerTool("qbo_list_bills", {
|
|
191
|
+
title: "List Bills",
|
|
192
|
+
description: "Query bills (accounts payable) with optional filters",
|
|
193
|
+
inputSchema: ListBillsInputSchemaExport,
|
|
194
|
+
annotations: { readOnlyHint: true },
|
|
195
|
+
}, (params) => qbo_list_bills(client, params));
|
|
196
|
+
registerTool("qbo_get_bill", {
|
|
197
|
+
title: "Get Bill",
|
|
198
|
+
description: "Get a specific bill by ID",
|
|
199
|
+
inputSchema: GetBillInputSchemaExport,
|
|
200
|
+
annotations: { readOnlyHint: true },
|
|
201
|
+
}, (params) => qbo_get_bill(client, params));
|
|
202
|
+
registerTool("qbo_create_bill", {
|
|
203
|
+
title: "Create Bill",
|
|
204
|
+
description: "Create a new bill from a vendor with account-based or item-based expense lines",
|
|
205
|
+
inputSchema: CreateBillInputSchemaExport,
|
|
206
|
+
annotations: { destructiveHint: false },
|
|
207
|
+
}, (params) => qbo_create_bill(client, params));
|
|
208
|
+
registerTool("qbo_update_bill", {
|
|
209
|
+
title: "Update Bill",
|
|
210
|
+
description: "Update an existing bill. Requires SyncToken.",
|
|
211
|
+
inputSchema: UpdateBillInputSchemaExport,
|
|
212
|
+
annotations: { destructiveHint: false },
|
|
213
|
+
}, (params) => qbo_update_bill(client, params));
|
|
214
|
+
registerTool("qbo_delete_bill", {
|
|
215
|
+
title: "Delete Bill",
|
|
216
|
+
description: "Delete a bill. Requires SyncToken.",
|
|
217
|
+
inputSchema: DeleteBillInputSchemaExport,
|
|
218
|
+
annotations: { destructiveHint: true },
|
|
219
|
+
}, (params) => qbo_delete_bill(client, params));
|
|
220
|
+
// ─── Vendors ───
|
|
221
|
+
registerTool("qbo_list_vendors", {
|
|
222
|
+
title: "List Vendors",
|
|
223
|
+
description: "Query vendors with optional filters",
|
|
224
|
+
inputSchema: ListVendorsInputSchemaExport,
|
|
225
|
+
annotations: { readOnlyHint: true },
|
|
226
|
+
}, (params) => qbo_list_vendors(client, params));
|
|
227
|
+
registerTool("qbo_get_vendor", {
|
|
228
|
+
title: "Get Vendor",
|
|
229
|
+
description: "Get a specific vendor by ID",
|
|
230
|
+
inputSchema: GetVendorInputSchemaExport,
|
|
231
|
+
annotations: { readOnlyHint: true },
|
|
232
|
+
}, (params) => qbo_get_vendor(client, params));
|
|
233
|
+
registerTool("qbo_create_vendor", {
|
|
234
|
+
title: "Create Vendor",
|
|
235
|
+
description: "Create a new vendor",
|
|
236
|
+
inputSchema: CreateVendorInputSchemaExport,
|
|
237
|
+
annotations: { destructiveHint: false },
|
|
238
|
+
}, (params) => qbo_create_vendor(client, params));
|
|
239
|
+
registerTool("qbo_update_vendor", {
|
|
240
|
+
title: "Update Vendor",
|
|
241
|
+
description: "Update an existing vendor. Requires SyncToken.",
|
|
242
|
+
inputSchema: UpdateVendorInputSchemaExport,
|
|
243
|
+
annotations: { destructiveHint: false },
|
|
244
|
+
}, (params) => qbo_update_vendor(client, params));
|
|
245
|
+
// ─── Accounts (Chart of Accounts) ───
|
|
246
|
+
registerTool("qbo_list_accounts", {
|
|
247
|
+
title: "List Accounts",
|
|
248
|
+
description: "Query the chart of accounts with optional filters like AccountType, Classification",
|
|
249
|
+
inputSchema: ListAccountsInputSchemaExport,
|
|
250
|
+
annotations: { readOnlyHint: true },
|
|
251
|
+
}, (params) => qbo_list_accounts(client, params));
|
|
252
|
+
registerTool("qbo_get_account", {
|
|
253
|
+
title: "Get Account",
|
|
254
|
+
description: "Get a specific account from the chart of accounts by ID",
|
|
255
|
+
inputSchema: GetAccountInputSchemaExport,
|
|
256
|
+
annotations: { readOnlyHint: true },
|
|
257
|
+
}, (params) => qbo_get_account(client, params));
|
|
258
|
+
registerTool("qbo_create_account", {
|
|
259
|
+
title: "Create Account",
|
|
260
|
+
description: "Create a new account in the chart of accounts",
|
|
261
|
+
inputSchema: CreateAccountInputSchemaExport,
|
|
262
|
+
annotations: { destructiveHint: false },
|
|
263
|
+
}, (params) => qbo_create_account(client, params));
|
|
264
|
+
registerTool("qbo_update_account", {
|
|
265
|
+
title: "Update Account",
|
|
266
|
+
description: "Update an existing account. Requires SyncToken.",
|
|
267
|
+
inputSchema: UpdateAccountInputSchemaExport,
|
|
268
|
+
annotations: { destructiveHint: false },
|
|
269
|
+
}, (params) => qbo_update_account(client, params));
|
|
270
|
+
// ─── Employees ───
|
|
271
|
+
registerTool("qbo_list_employees", {
|
|
272
|
+
title: "List Employees",
|
|
273
|
+
description: "Query employees with optional filters",
|
|
274
|
+
inputSchema: ListEmployeesInputSchemaExport,
|
|
275
|
+
annotations: { readOnlyHint: true },
|
|
276
|
+
}, (params) => qbo_list_employees(client, params));
|
|
277
|
+
registerTool("qbo_get_employee", {
|
|
278
|
+
title: "Get Employee",
|
|
279
|
+
description: "Get a specific employee by ID",
|
|
280
|
+
inputSchema: GetEmployeeInputSchemaExport,
|
|
281
|
+
annotations: { readOnlyHint: true },
|
|
282
|
+
}, (params) => qbo_get_employee(client, params));
|
|
283
|
+
registerTool("qbo_create_employee", {
|
|
284
|
+
title: "Create Employee",
|
|
285
|
+
description: "Create a new employee record",
|
|
286
|
+
inputSchema: CreateEmployeeInputSchemaExport,
|
|
287
|
+
annotations: { destructiveHint: false },
|
|
288
|
+
}, (params) => qbo_create_employee(client, params));
|
|
289
|
+
registerTool("qbo_update_employee", {
|
|
290
|
+
title: "Update Employee",
|
|
291
|
+
description: "Update an existing employee. Set active=false to deactivate. Requires SyncToken.",
|
|
292
|
+
inputSchema: UpdateEmployeeInputSchemaExport,
|
|
293
|
+
annotations: { destructiveHint: false },
|
|
294
|
+
}, (params) => qbo_update_employee(client, params));
|
|
295
|
+
// ─── Time Activities ───
|
|
296
|
+
registerTool("qbo_list_time_activities", {
|
|
297
|
+
title: "List Time Activities",
|
|
298
|
+
description: "Query time tracking entries with optional filters",
|
|
299
|
+
inputSchema: ListTimeActivitiesInputSchemaExport,
|
|
300
|
+
annotations: { readOnlyHint: true },
|
|
301
|
+
}, (params) => qbo_list_time_activities(client, params));
|
|
302
|
+
registerTool("qbo_get_time_activity", {
|
|
303
|
+
title: "Get Time Activity",
|
|
304
|
+
description: "Get a specific time activity by ID",
|
|
305
|
+
inputSchema: GetTimeActivityInputSchemaExport,
|
|
306
|
+
annotations: { readOnlyHint: true },
|
|
307
|
+
}, (params) => qbo_get_time_activity(client, params));
|
|
308
|
+
registerTool("qbo_create_time_activity", {
|
|
309
|
+
title: "Create Time Activity",
|
|
310
|
+
description: "Record a time tracking entry for an employee or vendor, optionally billable to a customer",
|
|
311
|
+
inputSchema: CreateTimeActivityInputSchemaExport,
|
|
312
|
+
annotations: { destructiveHint: false },
|
|
313
|
+
}, (params) => qbo_create_time_activity(client, params));
|
|
314
|
+
registerTool("qbo_update_time_activity", {
|
|
315
|
+
title: "Update Time Activity",
|
|
316
|
+
description: "Update a time activity. Requires SyncToken.",
|
|
317
|
+
inputSchema: UpdateTimeActivityInputSchemaExport,
|
|
318
|
+
annotations: { destructiveHint: false },
|
|
319
|
+
}, (params) => qbo_update_time_activity(client, params));
|
|
320
|
+
registerTool("qbo_delete_time_activity", {
|
|
321
|
+
title: "Delete Time Activity",
|
|
322
|
+
description: "Delete a time activity. Requires SyncToken.",
|
|
323
|
+
inputSchema: DeleteTimeActivityInputSchemaExport,
|
|
324
|
+
annotations: { destructiveHint: true },
|
|
325
|
+
}, (params) => qbo_delete_time_activity(client, params));
|
|
326
|
+
// ─── Purchases ───
|
|
327
|
+
registerTool("qbo_list_purchases", {
|
|
328
|
+
title: "List Purchases",
|
|
329
|
+
description: "Query purchases (expenses) with optional filters",
|
|
330
|
+
inputSchema: ListPurchasesInputSchemaExport,
|
|
331
|
+
annotations: { readOnlyHint: true },
|
|
332
|
+
}, (params) => qbo_list_purchases(client, params));
|
|
333
|
+
registerTool("qbo_get_purchase", {
|
|
334
|
+
title: "Get Purchase",
|
|
335
|
+
description: "Get a specific purchase/expense by ID",
|
|
336
|
+
inputSchema: GetPurchaseInputSchemaExport,
|
|
337
|
+
annotations: { readOnlyHint: true },
|
|
338
|
+
}, (params) => qbo_get_purchase(client, params));
|
|
339
|
+
registerTool("qbo_create_purchase", {
|
|
340
|
+
title: "Create Purchase",
|
|
341
|
+
description: "Record a purchase/expense (Cash, Check, or CreditCard)",
|
|
342
|
+
inputSchema: CreatePurchaseInputSchemaExport,
|
|
343
|
+
annotations: { destructiveHint: false },
|
|
344
|
+
}, (params) => qbo_create_purchase(client, params));
|
|
345
|
+
registerTool("qbo_delete_purchase", {
|
|
346
|
+
title: "Delete Purchase",
|
|
347
|
+
description: "Delete a purchase. Requires SyncToken.",
|
|
348
|
+
inputSchema: DeletePurchaseInputSchemaExport,
|
|
349
|
+
annotations: { destructiveHint: true },
|
|
350
|
+
}, (params) => qbo_delete_purchase(client, params));
|
|
351
|
+
// ─── Journal Entries ───
|
|
352
|
+
registerTool("qbo_list_journal_entries", {
|
|
353
|
+
title: "List Journal Entries",
|
|
354
|
+
description: "Query journal entries with optional filters",
|
|
355
|
+
inputSchema: ListJournalEntriesInputSchemaExport,
|
|
356
|
+
annotations: { readOnlyHint: true },
|
|
357
|
+
}, (params) => qbo_list_journal_entries(client, params));
|
|
358
|
+
registerTool("qbo_get_journal_entry", {
|
|
359
|
+
title: "Get Journal Entry",
|
|
360
|
+
description: "Get a specific journal entry by ID with debit/credit lines",
|
|
361
|
+
inputSchema: GetJournalEntryInputSchemaExport,
|
|
362
|
+
annotations: { readOnlyHint: true },
|
|
363
|
+
}, (params) => qbo_get_journal_entry(client, params));
|
|
364
|
+
registerTool("qbo_create_journal_entry", {
|
|
365
|
+
title: "Create Journal Entry",
|
|
366
|
+
description: "Create a journal entry with debit and credit lines. Debits must equal credits.",
|
|
367
|
+
inputSchema: CreateJournalEntryInputSchemaExport,
|
|
368
|
+
annotations: { destructiveHint: false },
|
|
369
|
+
}, (params) => qbo_create_journal_entry(client, params));
|
|
370
|
+
registerTool("qbo_delete_journal_entry", {
|
|
371
|
+
title: "Delete Journal Entry",
|
|
372
|
+
description: "Delete a journal entry. Requires SyncToken.",
|
|
373
|
+
inputSchema: DeleteJournalEntryInputSchemaExport,
|
|
374
|
+
annotations: { destructiveHint: true },
|
|
375
|
+
}, (params) => qbo_delete_journal_entry(client, params));
|
|
376
|
+
// ─── Tax ───
|
|
377
|
+
registerTool("qbo_list_tax_rates", {
|
|
378
|
+
title: "List Tax Rates",
|
|
379
|
+
description: "Query tax rates configured in QuickBooks",
|
|
380
|
+
inputSchema: ListTaxRatesInputSchemaExport,
|
|
381
|
+
annotations: { readOnlyHint: true },
|
|
382
|
+
}, (params) => qbo_list_tax_rates(client, params));
|
|
383
|
+
registerTool("qbo_get_tax_rate", {
|
|
384
|
+
title: "Get Tax Rate",
|
|
385
|
+
description: "Get a specific tax rate by ID",
|
|
386
|
+
inputSchema: GetTaxRateInputSchemaExport,
|
|
387
|
+
annotations: { readOnlyHint: true },
|
|
388
|
+
}, (params) => qbo_get_tax_rate(client, params));
|
|
389
|
+
registerTool("qbo_list_tax_codes", {
|
|
390
|
+
title: "List Tax Codes",
|
|
391
|
+
description: "Query tax codes configured in QuickBooks",
|
|
392
|
+
inputSchema: ListTaxCodesInputSchemaExport,
|
|
393
|
+
annotations: { readOnlyHint: true },
|
|
394
|
+
}, (params) => qbo_list_tax_codes(client, params));
|
|
395
|
+
registerTool("qbo_get_tax_code", {
|
|
396
|
+
title: "Get Tax Code",
|
|
397
|
+
description: "Get a specific tax code by ID",
|
|
398
|
+
inputSchema: GetTaxCodeInputSchemaExport,
|
|
399
|
+
annotations: { readOnlyHint: true },
|
|
400
|
+
}, (params) => qbo_get_tax_code(client, params));
|
|
401
|
+
// ─── Reports ───
|
|
402
|
+
registerTool("qbo_profit_and_loss", {
|
|
403
|
+
title: "Profit & Loss Report",
|
|
404
|
+
description: "Generate a Profit & Loss (Income Statement) report. Filter by date range, accounting method, and grouping.",
|
|
405
|
+
inputSchema: ProfitAndLossInputSchemaExport,
|
|
406
|
+
annotations: { readOnlyHint: true },
|
|
407
|
+
}, (params) => qbo_profit_and_loss(client, params));
|
|
408
|
+
registerTool("qbo_balance_sheet", {
|
|
409
|
+
title: "Balance Sheet Report",
|
|
410
|
+
description: "Generate a Balance Sheet report showing assets, liabilities, and equity",
|
|
411
|
+
inputSchema: BalanceSheetInputSchemaExport,
|
|
412
|
+
annotations: { readOnlyHint: true },
|
|
413
|
+
}, (params) => qbo_balance_sheet(client, params));
|
|
414
|
+
registerTool("qbo_report", {
|
|
415
|
+
title: "General Report",
|
|
416
|
+
description: "Run any QuickBooks report: ProfitAndLoss, ProfitAndLossDetail, BalanceSheet, GeneralLedger, CustomerBalance, CustomerBalanceDetail, VendorBalance, VendorExpenses, InventoryValuationSummary, ItemSales",
|
|
417
|
+
inputSchema: GeneralReportInputSchemaExport,
|
|
418
|
+
annotations: { readOnlyHint: true },
|
|
419
|
+
}, (params) => qbo_report(client, params));
|
|
420
|
+
// ─── Generic Query ───
|
|
421
|
+
registerTool("qbo_query", {
|
|
422
|
+
title: "Run Query",
|
|
423
|
+
description: "Execute a raw SQL-like query against any QuickBooks entity. Supports SELECT, WHERE (=, <, >, LIKE, IN), ORDER BY, and pagination (STARTPOSITION, MAXRESULTS). No OR operator, no JOINs. Example: SELECT * FROM Invoice WHERE TotalAmt > '500' ORDER BY TxnDate DESC MAXRESULTS 10",
|
|
424
|
+
inputSchema: QueryInputSchemaExport,
|
|
425
|
+
annotations: { readOnlyHint: true },
|
|
426
|
+
}, (params) => qbo_query(client, params));
|
|
427
|
+
// Start the server
|
|
428
|
+
async function main() {
|
|
429
|
+
const transport = new StdioServerTransport();
|
|
430
|
+
await server.connect(transport);
|
|
431
|
+
}
|
|
432
|
+
main().catch((error) => {
|
|
433
|
+
console.error("Fatal error:", error);
|
|
434
|
+
process.exit(1);
|
|
435
|
+
});
|
|
436
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EACL,oBAAoB,EACpB,+BAA+B,GAChC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,8BAA8B,EAC9B,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,GAChC,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,cAAc,EACd,YAAY,EACZ,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,wBAAwB,EACxB,2BAA2B,EAC3B,2BAA2B,G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O,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { QBOClient } from "../client.js";
|
|
3
|
+
declare const ListAccountsInputSchema: z.ZodObject<{
|
|
4
|
+
where: z.ZodOptional<z.ZodString>;
|
|
5
|
+
order_by: z.ZodOptional<z.ZodString>;
|
|
6
|
+
start_position: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
max_results: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
response_format: z.ZodDefault<z.ZodEnum<["json", "markdown"]>>;
|
|
9
|
+
}, "strict", z.ZodTypeAny, {
|
|
10
|
+
response_format: "json" | "markdown";
|
|
11
|
+
where?: string | undefined;
|
|
12
|
+
order_by?: string | undefined;
|
|
13
|
+
start_position?: number | undefined;
|
|
14
|
+
max_results?: number | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
response_format?: "json" | "markdown" | undefined;
|
|
17
|
+
where?: string | undefined;
|
|
18
|
+
order_by?: string | undefined;
|
|
19
|
+
start_position?: number | undefined;
|
|
20
|
+
max_results?: number | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
declare const GetAccountInputSchema: z.ZodObject<{
|
|
23
|
+
account_id: z.ZodString;
|
|
24
|
+
response_format: z.ZodDefault<z.ZodEnum<["json", "markdown"]>>;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
response_format: "json" | "markdown";
|
|
27
|
+
account_id: string;
|
|
28
|
+
}, {
|
|
29
|
+
account_id: string;
|
|
30
|
+
response_format?: "json" | "markdown" | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
declare const CreateAccountInputSchema: z.ZodObject<{
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
account_type: z.ZodString;
|
|
35
|
+
account_sub_type: z.ZodOptional<z.ZodString>;
|
|
36
|
+
response_format: z.ZodDefault<z.ZodEnum<["json", "markdown"]>>;
|
|
37
|
+
}, "strict", z.ZodTypeAny, {
|
|
38
|
+
response_format: "json" | "markdown";
|
|
39
|
+
name: string;
|
|
40
|
+
account_type: string;
|
|
41
|
+
account_sub_type?: string | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
name: string;
|
|
44
|
+
account_type: string;
|
|
45
|
+
response_format?: "json" | "markdown" | undefined;
|
|
46
|
+
account_sub_type?: string | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
declare const UpdateAccountInputSchema: z.ZodObject<{
|
|
49
|
+
account_id: z.ZodString;
|
|
50
|
+
sync_token: z.ZodString;
|
|
51
|
+
name: z.ZodOptional<z.ZodString>;
|
|
52
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
response_format: z.ZodDefault<z.ZodEnum<["json", "markdown"]>>;
|
|
54
|
+
}, "strict", z.ZodTypeAny, {
|
|
55
|
+
response_format: "json" | "markdown";
|
|
56
|
+
sync_token: string;
|
|
57
|
+
account_id: string;
|
|
58
|
+
active?: boolean | undefined;
|
|
59
|
+
name?: string | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
sync_token: string;
|
|
62
|
+
account_id: string;
|
|
63
|
+
response_format?: "json" | "markdown" | undefined;
|
|
64
|
+
active?: boolean | undefined;
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
export type ListAccountsInput = z.infer<typeof ListAccountsInputSchema>;
|
|
68
|
+
export type GetAccountInput = z.infer<typeof GetAccountInputSchema>;
|
|
69
|
+
export type CreateAccountInput = z.infer<typeof CreateAccountInputSchema>;
|
|
70
|
+
export type UpdateAccountInput = z.infer<typeof UpdateAccountInputSchema>;
|
|
71
|
+
export declare function qbo_list_accounts(client: QBOClient, input: ListAccountsInput): Promise<string>;
|
|
72
|
+
export declare function qbo_get_account(client: QBOClient, input: GetAccountInput): Promise<string>;
|
|
73
|
+
export declare function qbo_create_account(client: QBOClient, input: CreateAccountInput): Promise<string>;
|
|
74
|
+
export declare function qbo_update_account(client: QBOClient, input: UpdateAccountInput): Promise<string>;
|
|
75
|
+
export declare const ListAccountsInputSchemaExport: z.ZodObject<{
|
|
76
|
+
where: z.ZodOptional<z.ZodString>;
|
|
77
|
+
order_by: z.ZodOptional<z.ZodString>;
|
|
78
|
+
start_position: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
max_results: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
response_format: z.ZodDefault<z.ZodEnum<["json", "markdown"]>>;
|
|
81
|
+
}, "strict", z.ZodTypeAny, {
|
|
82
|
+
response_format: "json" | "markdown";
|
|
83
|
+
where?: string | undefined;
|
|
84
|
+
order_by?: string | undefined;
|
|
85
|
+
start_position?: number | undefined;
|
|
86
|
+
max_results?: number | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
response_format?: "json" | "markdown" | undefined;
|
|
89
|
+
where?: string | undefined;
|
|
90
|
+
order_by?: string | undefined;
|
|
91
|
+
start_position?: number | undefined;
|
|
92
|
+
max_results?: number | undefined;
|
|
93
|
+
}>;
|
|
94
|
+
export declare const GetAccountInputSchemaExport: z.ZodObject<{
|
|
95
|
+
account_id: z.ZodString;
|
|
96
|
+
response_format: z.ZodDefault<z.ZodEnum<["json", "markdown"]>>;
|
|
97
|
+
}, "strict", z.ZodTypeAny, {
|
|
98
|
+
response_format: "json" | "markdown";
|
|
99
|
+
account_id: string;
|
|
100
|
+
}, {
|
|
101
|
+
account_id: string;
|
|
102
|
+
response_format?: "json" | "markdown" | undefined;
|
|
103
|
+
}>;
|
|
104
|
+
export declare const CreateAccountInputSchemaExport: z.ZodObject<{
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
account_type: z.ZodString;
|
|
107
|
+
account_sub_type: z.ZodOptional<z.ZodString>;
|
|
108
|
+
response_format: z.ZodDefault<z.ZodEnum<["json", "markdown"]>>;
|
|
109
|
+
}, "strict", z.ZodTypeAny, {
|
|
110
|
+
response_format: "json" | "markdown";
|
|
111
|
+
name: string;
|
|
112
|
+
account_type: string;
|
|
113
|
+
account_sub_type?: string | undefined;
|
|
114
|
+
}, {
|
|
115
|
+
name: string;
|
|
116
|
+
account_type: string;
|
|
117
|
+
response_format?: "json" | "markdown" | undefined;
|
|
118
|
+
account_sub_type?: string | undefined;
|
|
119
|
+
}>;
|
|
120
|
+
export declare const UpdateAccountInputSchemaExport: z.ZodObject<{
|
|
121
|
+
account_id: z.ZodString;
|
|
122
|
+
sync_token: z.ZodString;
|
|
123
|
+
name: z.ZodOptional<z.ZodString>;
|
|
124
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
response_format: z.ZodDefault<z.ZodEnum<["json", "markdown"]>>;
|
|
126
|
+
}, "strict", z.ZodTypeAny, {
|
|
127
|
+
response_format: "json" | "markdown";
|
|
128
|
+
sync_token: string;
|
|
129
|
+
account_id: string;
|
|
130
|
+
active?: boolean | undefined;
|
|
131
|
+
name?: string | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
sync_token: string;
|
|
134
|
+
account_id: string;
|
|
135
|
+
response_format?: "json" | "markdown" | undefined;
|
|
136
|
+
active?: boolean | undefined;
|
|
137
|
+
name?: string | undefined;
|
|
138
|
+
}>;
|
|
139
|
+
export {};
|
|
140
|
+
//# sourceMappingURL=accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/tools/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;EAMlB,CAAC;AAEZ,QAAA,MAAM,qBAAqB;;;;;;;;;EAGhB,CAAC;AAEZ,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;EAKnB,CAAC;AAEZ,QAAA,MAAM,wBAAwB;;;;;;;;;;;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