@teamnetwork-nz/xero-mcp-server 1.6.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/LICENSE +21 -0
- package/README.md +282 -0
- package/dist/clients/xero-client.js +141 -0
- package/dist/consts/deeplinks.js +24 -0
- package/dist/handlers/approve-xero-payroll-timesheet.handler.js +28 -0
- package/dist/handlers/archive-xero-contact.handler.js +28 -0
- package/dist/handlers/authorise-xero-invoice.handler.js +34 -0
- package/dist/handlers/convert-xero-quote-to-invoice.handler.js +50 -0
- package/dist/handlers/create-xero-bank-transaction.handler.js +51 -0
- package/dist/handlers/create-xero-contact.handler.js +49 -0
- package/dist/handlers/create-xero-credit-note.handler.js +50 -0
- package/dist/handlers/create-xero-invoice.handler.js +53 -0
- package/dist/handlers/create-xero-item.handler.js +59 -0
- package/dist/handlers/create-xero-manual-journal.handler.js +57 -0
- package/dist/handlers/create-xero-payment.handler.js +50 -0
- package/dist/handlers/create-xero-payroll-timesheet.handler.js +28 -0
- package/dist/handlers/create-xero-quote.handler.js +53 -0
- package/dist/handlers/create-xero-tracking-category.handler.js +35 -0
- package/dist/handlers/create-xero-tracking-option.handler.js +31 -0
- package/dist/handlers/delete-xero-invoice-attachment.handler.js +30 -0
- package/dist/handlers/delete-xero-payroll-timesheet.handler.js +28 -0
- package/dist/handlers/download-xero-invoice-attachment.handler.js +23 -0
- package/dist/handlers/download-xero-invoice-pdf.handler.js +25 -0
- package/dist/handlers/get-xero-invoice.handler.js +19 -0
- package/dist/handlers/get-xero-payroll-timesheet.handler.js +28 -0
- package/dist/handlers/list-aged-payables-by-contact.handler.js +37 -0
- package/dist/handlers/list-aged-receivables-by-contact.handler.js +37 -0
- package/dist/handlers/list-xero-accounts.handler.js +32 -0
- package/dist/handlers/list-xero-bank-transactions.handler.js +39 -0
- package/dist/handlers/list-xero-contact-groups.handler.js +34 -0
- package/dist/handlers/list-xero-contacts.handler.js +47 -0
- package/dist/handlers/list-xero-credit-notes.handler.js +42 -0
- package/dist/handlers/list-xero-invoice-attachments.handler.js +20 -0
- package/dist/handlers/list-xero-invoices.handler.js +54 -0
- package/dist/handlers/list-xero-items.handler.js +32 -0
- package/dist/handlers/list-xero-manual-journals.handler.js +33 -0
- package/dist/handlers/list-xero-organisation-details.handler.js +32 -0
- package/dist/handlers/list-xero-payments.handler.js +52 -0
- package/dist/handlers/list-xero-payroll-employee-leave-balances.handler.js +42 -0
- package/dist/handlers/list-xero-payroll-employee-leave-types.handler.js +42 -0
- package/dist/handlers/list-xero-payroll-employee-leave.handler.js +44 -0
- package/dist/handlers/list-xero-payroll-employees.handler.js +31 -0
- package/dist/handlers/list-xero-payroll-leave-periods.handler.js +44 -0
- package/dist/handlers/list-xero-payroll-leave-types.handler.js +40 -0
- package/dist/handlers/list-xero-profit-and-loss.handler.js +52 -0
- package/dist/handlers/list-xero-quotes.handler.js +36 -0
- package/dist/handlers/list-xero-report-balance-sheet.handler.js +34 -0
- package/dist/handlers/list-xero-tax-rates.handler.js +30 -0
- package/dist/handlers/list-xero-timesheets.handler.js +29 -0
- package/dist/handlers/list-xero-tracking-categories.handler.js +29 -0
- package/dist/handlers/list-xero-trial-balance.handler.js +42 -0
- package/dist/handlers/revert-xero-payroll-timesheet.handler.js +28 -0
- package/dist/handlers/update-xero-bank-transaction.handler.js +56 -0
- package/dist/handlers/update-xero-contact.handler.js +66 -0
- package/dist/handlers/update-xero-credit-note.handler.js +61 -0
- package/dist/handlers/update-xero-invoice.handler.js +62 -0
- package/dist/handlers/update-xero-item.handler.js +46 -0
- package/dist/handlers/update-xero-manual-journal.handler.js +46 -0
- package/dist/handlers/update-xero-payroll-timesheet-add-line.handler.js +28 -0
- package/dist/handlers/update-xero-payroll-timesheet-update-line.handler.js +28 -0
- package/dist/handlers/update-xero-quote.handler.js +78 -0
- package/dist/handlers/update-xero-tracking-category.handler.js +43 -0
- package/dist/handlers/update-xero-tracking-options.handler.js +51 -0
- package/dist/handlers/upload-xero-invoice-attachment.handler.js +36 -0
- package/dist/handlers/void-xero-invoice.handler.js +52 -0
- package/dist/helpers/build-where-clause.js +29 -0
- package/dist/helpers/create-xero-tool.js +6 -0
- package/dist/helpers/datetime.js +91 -0
- package/dist/helpers/ensure-error.js +13 -0
- package/dist/helpers/format-aged-report-filter.js +8 -0
- package/dist/helpers/format-error.js +25 -0
- package/dist/helpers/format-line-item.js +13 -0
- package/dist/helpers/format-tracking-option.js +7 -0
- package/dist/helpers/get-client-headers.js +8 -0
- package/dist/helpers/get-deeplink.js +41 -0
- package/dist/helpers/get-download-path.js +16 -0
- package/dist/helpers/get-external-link.js +8 -0
- package/dist/helpers/get-package-version.js +20 -0
- package/dist/index.js +18 -0
- package/dist/resources/register-resources.js +27 -0
- package/dist/server/xero-mcp-server.js +43 -0
- package/dist/tools/create/convert-quote-to-invoice.tool.js +46 -0
- package/dist/tools/create/create-bank-transaction.tool.js +57 -0
- package/dist/tools/create/create-contact.tool.js +56 -0
- package/dist/tools/create/create-credit-note.tool.js +53 -0
- package/dist/tools/create/create-invoice.tool.js +78 -0
- package/dist/tools/create/create-item.tool.js +61 -0
- package/dist/tools/create/create-manual-journal.tool.js +116 -0
- package/dist/tools/create/create-payment.tool.js +71 -0
- package/dist/tools/create/create-payroll-timesheet.tool.js +40 -0
- package/dist/tools/create/create-quote.tool.js +57 -0
- package/dist/tools/create/create-tracking-category.tool.js +28 -0
- package/dist/tools/create/create-tracking-options.tool.js +30 -0
- package/dist/tools/create/index.js +35 -0
- package/dist/tools/create/upload-invoice-attachment.tool.js +49 -0
- package/dist/tools/delete/archive-contact.tool.js +30 -0
- package/dist/tools/delete/delete-invoice-attachment.tool.js +28 -0
- package/dist/tools/delete/delete-payroll-timesheet.tool.js +28 -0
- package/dist/tools/delete/index.js +15 -0
- package/dist/tools/get/get-invoice-attachment.tool.js +33 -0
- package/dist/tools/get/get-invoice-pdf.tool.js +33 -0
- package/dist/tools/get/get-invoice.tool.js +72 -0
- package/dist/tools/get/get-payroll-timesheet.tool.js +50 -0
- package/dist/tools/get/index.js +17 -0
- package/dist/tools/list/index.js +64 -0
- package/dist/tools/list/list-accounts.tool.js +39 -0
- package/dist/tools/list/list-aged-payables-by-contact.tool.js +51 -0
- package/dist/tools/list/list-aged-receivables-by-contact.tool.js +51 -0
- package/dist/tools/list/list-bank-transactions.tool.js +66 -0
- package/dist/tools/list/list-contact-groups.tool.js +48 -0
- package/dist/tools/list/list-contacts.tool.js +80 -0
- package/dist/tools/list/list-credit-notes.tool.js +72 -0
- package/dist/tools/list/list-invoice-attachments.tool.js +42 -0
- package/dist/tools/list/list-invoices.tool.js +98 -0
- package/dist/tools/list/list-items.tool.js +50 -0
- package/dist/tools/list/list-manual-journals.tool.js +80 -0
- package/dist/tools/list/list-organisation-details.tool.js +91 -0
- package/dist/tools/list/list-payments.tool.js +91 -0
- package/dist/tools/list/list-payroll-employee-leave-balances.tool.js +39 -0
- package/dist/tools/list/list-payroll-employee-leave-types.tool.js +57 -0
- package/dist/tools/list/list-payroll-employee-leave.tool.js +43 -0
- package/dist/tools/list/list-payroll-employees.tool.js +49 -0
- package/dist/tools/list/list-payroll-leave-periods.tool.js +45 -0
- package/dist/tools/list/list-payroll-leave-types.tool.js +40 -0
- package/dist/tools/list/list-payroll-timesheets.tool.js +40 -0
- package/dist/tools/list/list-profit-and-loss.tool.js +46 -0
- package/dist/tools/list/list-quotes.tool.js +69 -0
- package/dist/tools/list/list-report-balance-sheet.tool.js +39 -0
- package/dist/tools/list/list-tax-rates.tool.js +49 -0
- package/dist/tools/list/list-tracking-categories.tool.js +39 -0
- package/dist/tools/list/list-trial-balance.tool.js +42 -0
- package/dist/tools/tool-factory.js +24 -0
- package/dist/tools/update/approve-payroll-timesheet.tool.js +29 -0
- package/dist/tools/update/authorise-invoice.tool.js +42 -0
- package/dist/tools/update/index.js +39 -0
- package/dist/tools/update/revert-payroll-timesheet.tool.js +29 -0
- package/dist/tools/update/update-bank-transaction.tool.js +56 -0
- package/dist/tools/update/update-contact.tool.js +69 -0
- package/dist/tools/update/update-credit-note.tool.js +56 -0
- package/dist/tools/update/update-invoice.tool.js +76 -0
- package/dist/tools/update/update-item.tool.js +62 -0
- package/dist/tools/update/update-manual-journal-tool.js +89 -0
- package/dist/tools/update/update-payroll-timesheet-add-line.tool.js +34 -0
- package/dist/tools/update/update-payroll-timesheet-update-line.tool.js +35 -0
- package/dist/tools/update/update-quote.tool.js +61 -0
- package/dist/tools/update/update-tracking-category.tool.js +30 -0
- package/dist/tools/update/update-tracking-options.tool.js +35 -0
- package/dist/tools/update/void-invoice.tool.js +33 -0
- package/dist/types/list-report-balance-sheet-params.js +1 -0
- package/dist/types/timeframeType.js +1 -0
- package/dist/types/tool-definition.js +1 -0
- package/dist/types/tool-list.js +1 -0
- package/dist/types/tool-response.js +1 -0
- package/package.json +38 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { readFileSync } from "fs";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { join, dirname } from "path";
|
|
4
|
+
const PLAYBOOK_URI = "xero://guidance/agent-playbook";
|
|
5
|
+
export function registerResources(server) {
|
|
6
|
+
// Resolve AGENTS.md relative to the dist output (../../ = project root)
|
|
7
|
+
const agentsPath = join(dirname(fileURLToPath(import.meta.url)), "../../AGENTS.md");
|
|
8
|
+
let content;
|
|
9
|
+
try {
|
|
10
|
+
content = readFileSync(agentsPath, "utf-8");
|
|
11
|
+
}
|
|
12
|
+
catch {
|
|
13
|
+
content = "Agent playbook not found. See AGENTS.md in the package repository.";
|
|
14
|
+
}
|
|
15
|
+
server.resource("agent-playbook", PLAYBOOK_URI, {
|
|
16
|
+
description: "Query patterns, common tasks, API limitations, and efficiency rules for using this Xero MCP server. Read this before performing bulk or multi-step Xero operations.",
|
|
17
|
+
mimeType: "text/markdown",
|
|
18
|
+
}, async () => ({
|
|
19
|
+
contents: [
|
|
20
|
+
{
|
|
21
|
+
uri: PLAYBOOK_URI,
|
|
22
|
+
text: content,
|
|
23
|
+
mimeType: "text/markdown",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
export class XeroMcpServer {
|
|
3
|
+
static instance = null;
|
|
4
|
+
constructor() { }
|
|
5
|
+
static GetServer() {
|
|
6
|
+
if (XeroMcpServer.instance === null) {
|
|
7
|
+
XeroMcpServer.instance = new McpServer({
|
|
8
|
+
name: "Xero MCP Server",
|
|
9
|
+
version: "1.0.0",
|
|
10
|
+
}, {
|
|
11
|
+
instructions: [
|
|
12
|
+
"You are connected to the Xero accounting API via MCP tools.",
|
|
13
|
+
"",
|
|
14
|
+
"CRITICAL EFFICIENCY RULES — always follow these:",
|
|
15
|
+
"- NEVER page through all records looking for specific items. Filter server-side first.",
|
|
16
|
+
"- Unreconciled transactions: list-bank-transactions with isReconciled=false. Never scan pages.",
|
|
17
|
+
"- Unpaid sales invoices (AR): list-invoices type=ACCREC statuses=[AUTHORISED] minAmountDue=0.01",
|
|
18
|
+
"- Overdue invoices: list-invoices type=ACCREC statuses=[AUTHORISED] overdueOnly=true",
|
|
19
|
+
"- Bills to pay (AP): list-invoices type=ACCPAY statuses=[AUTHORISED] minAmountDue=0.01",
|
|
20
|
+
"- Find a contact by name: list-contacts searchTerm=<name> — do NOT list all contacts and scan.",
|
|
21
|
+
"- Set pageSize to the minimum needed. Only paginate when the user asks for more.",
|
|
22
|
+
"",
|
|
23
|
+
"TERMINOLOGY:",
|
|
24
|
+
"- ACCREC = Accounts Receivable = sales invoices (money owed TO you by customers)",
|
|
25
|
+
"- ACCPAY = Accounts Payable = purchase invoices / bills (money you OWE to suppliers)",
|
|
26
|
+
"- AUTHORISED = invoice approved and outstanding (not yet fully paid)",
|
|
27
|
+
"",
|
|
28
|
+
"READ-ONLY MODE:",
|
|
29
|
+
"- If create/update/delete tools are not available, the server is running in read-only mode.",
|
|
30
|
+
" Inform the user and do not attempt write operations.",
|
|
31
|
+
"",
|
|
32
|
+
"API LIMITATIONS — do not attempt these:",
|
|
33
|
+
"- Reconciliation via the Xero API is impossible. There is no reconcile endpoint.",
|
|
34
|
+
"- list-aged-receivables/payables-by-contact requires a single contactId — there is no bulk aged report.",
|
|
35
|
+
" For org-wide aging use list-invoices with minAmountDue=0.01 instead.",
|
|
36
|
+
"",
|
|
37
|
+
"For a full query playbook read the MCP resource: xero://guidance/agent-playbook",
|
|
38
|
+
].join("\n"),
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return XeroMcpServer.instance;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { convertXeroQuoteToInvoice } from "../../handlers/convert-xero-quote-to-invoice.handler.js";
|
|
3
|
+
import { DeepLinkType, getDeepLink } from "../../helpers/get-deeplink.js";
|
|
4
|
+
import { CreateXeroTool } from "../../helpers/create-xero-tool.js";
|
|
5
|
+
const ConvertQuoteToInvoiceTool = CreateXeroTool("convert-quote-to-invoice", "Convert an existing Xero quote into a draft invoice. \
|
|
6
|
+
Line items, contact, and reference are copied from the quote. \
|
|
7
|
+
The quote ID can be obtained from the list-quotes tool. \
|
|
8
|
+
A deep link to the new invoice is returned after creation.", {
|
|
9
|
+
quoteId: z.string().describe("The ID of the quote to convert to an invoice."),
|
|
10
|
+
dueDate: z
|
|
11
|
+
.string()
|
|
12
|
+
.optional()
|
|
13
|
+
.describe("Due date for the invoice in YYYY-MM-DD format. Defaults to 30 days from today if not provided."),
|
|
14
|
+
}, async ({ quoteId, dueDate }) => {
|
|
15
|
+
const result = await convertXeroQuoteToInvoice(quoteId, dueDate);
|
|
16
|
+
if (result.isError) {
|
|
17
|
+
return {
|
|
18
|
+
content: [{ type: "text", text: `Error: ${result.error}` }],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const invoice = result.result;
|
|
22
|
+
const deepLink = invoice.invoiceID
|
|
23
|
+
? await getDeepLink(DeepLinkType.INVOICE, invoice.invoiceID)
|
|
24
|
+
: null;
|
|
25
|
+
return {
|
|
26
|
+
content: [
|
|
27
|
+
{
|
|
28
|
+
type: "text",
|
|
29
|
+
text: [
|
|
30
|
+
"Invoice created from quote successfully.",
|
|
31
|
+
`Invoice ID: ${invoice.invoiceID}`,
|
|
32
|
+
`Invoice Number: ${invoice.invoiceNumber ?? "N/A"}`,
|
|
33
|
+
`Contact: ${invoice.contact?.name ?? "N/A"}`,
|
|
34
|
+
`Reference (Quote): ${invoice.reference ?? "N/A"}`,
|
|
35
|
+
`Total: ${invoice.total}`,
|
|
36
|
+
`Due Date: ${invoice.dueDate}`,
|
|
37
|
+
`Status: ${invoice.status}`,
|
|
38
|
+
deepLink ? `Link to view: ${deepLink}` : null,
|
|
39
|
+
]
|
|
40
|
+
.filter(Boolean)
|
|
41
|
+
.join("\n"),
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
export default ConvertQuoteToInvoiceTool;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { CreateXeroTool } from "../../helpers/create-xero-tool.js";
|
|
3
|
+
import { createXeroBankTransaction } from "../../handlers/create-xero-bank-transaction.handler.js";
|
|
4
|
+
import { bankTransactionDeepLink } from "../../consts/deeplinks.js";
|
|
5
|
+
const lineItemSchema = z.object({
|
|
6
|
+
description: z.string(),
|
|
7
|
+
quantity: z.number(),
|
|
8
|
+
unitAmount: z.number(),
|
|
9
|
+
accountCode: z.string(),
|
|
10
|
+
taxType: z.string(),
|
|
11
|
+
});
|
|
12
|
+
const CreateBankTransactionTool = CreateXeroTool("create-bank-transaction", `Create a bank transaction in Xero.
|
|
13
|
+
When a bank transaction is created, a deep link to the bank transaction in Xero is returned.
|
|
14
|
+
This deep link can be used to view the bank transaction in Xero directly.
|
|
15
|
+
This link should be displayed to the user.`, {
|
|
16
|
+
type: z.enum(["RECEIVE", "SPEND"]),
|
|
17
|
+
bankAccountId: z.string(),
|
|
18
|
+
contactId: z.string(),
|
|
19
|
+
lineItems: z.array(lineItemSchema),
|
|
20
|
+
reference: z.string().optional(),
|
|
21
|
+
date: z.string()
|
|
22
|
+
.optional()
|
|
23
|
+
.describe("If no date is provided, the date will default to today's date")
|
|
24
|
+
}, async ({ type, bankAccountId, contactId, lineItems, reference, date }) => {
|
|
25
|
+
const result = await createXeroBankTransaction(type, bankAccountId, contactId, lineItems, reference, date);
|
|
26
|
+
if (result.isError) {
|
|
27
|
+
return {
|
|
28
|
+
content: [
|
|
29
|
+
{
|
|
30
|
+
type: "text",
|
|
31
|
+
text: `Error creating bank transaction: ${result.error}`
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
const bankTransaction = result.result;
|
|
37
|
+
const deepLink = bankTransaction.bankAccount.accountID && bankTransaction.bankTransactionID
|
|
38
|
+
? bankTransactionDeepLink(bankTransaction.bankAccount.accountID, bankTransaction.bankTransactionID)
|
|
39
|
+
: null;
|
|
40
|
+
return {
|
|
41
|
+
content: [
|
|
42
|
+
{
|
|
43
|
+
type: "text",
|
|
44
|
+
text: [
|
|
45
|
+
"Bank transaction successfully:",
|
|
46
|
+
`ID: ${bankTransaction?.bankTransactionID}`,
|
|
47
|
+
`Date: ${bankTransaction?.date}`,
|
|
48
|
+
`Contact: ${bankTransaction?.contact?.name}`,
|
|
49
|
+
`Total: ${bankTransaction?.total}`,
|
|
50
|
+
`Status: ${bankTransaction?.status}`,
|
|
51
|
+
deepLink ? `Link to view: ${deepLink}` : null
|
|
52
|
+
].filter(Boolean).join("\n"),
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
export default CreateBankTransactionTool;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { createXeroContact } from "../../handlers/create-xero-contact.handler.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { DeepLinkType, getDeepLink } from "../../helpers/get-deeplink.js";
|
|
4
|
+
import { ensureError } from "../../helpers/ensure-error.js";
|
|
5
|
+
import { CreateXeroTool } from "../../helpers/create-xero-tool.js";
|
|
6
|
+
const CreateContactTool = CreateXeroTool("create-contact", "Create a contact in Xero.\
|
|
7
|
+
When a contact is created, a deep link to the contact in Xero is returned. \
|
|
8
|
+
This deep link can be used to view the contact in Xero directly. \
|
|
9
|
+
This link should be displayed to the user.", {
|
|
10
|
+
name: z.string(),
|
|
11
|
+
email: z.string().email().optional(),
|
|
12
|
+
phone: z.string().optional(),
|
|
13
|
+
}, async ({ name, email, phone }) => {
|
|
14
|
+
try {
|
|
15
|
+
const response = await createXeroContact(name, email, phone);
|
|
16
|
+
if (response.isError) {
|
|
17
|
+
return {
|
|
18
|
+
content: [
|
|
19
|
+
{
|
|
20
|
+
type: "text",
|
|
21
|
+
text: `Error creating contact: ${response.error}`,
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const contact = response.result;
|
|
27
|
+
const deepLink = contact.contactID
|
|
28
|
+
? await getDeepLink(DeepLinkType.CONTACT, contact.contactID)
|
|
29
|
+
: null;
|
|
30
|
+
return {
|
|
31
|
+
content: [
|
|
32
|
+
{
|
|
33
|
+
type: "text",
|
|
34
|
+
text: [
|
|
35
|
+
`Contact created: ${contact.name} (ID: ${contact.contactID})`,
|
|
36
|
+
deepLink ? `Link to view: ${deepLink}` : null,
|
|
37
|
+
]
|
|
38
|
+
.filter(Boolean)
|
|
39
|
+
.join("\n"),
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
const err = ensureError(error);
|
|
46
|
+
return {
|
|
47
|
+
content: [
|
|
48
|
+
{
|
|
49
|
+
type: "text",
|
|
50
|
+
text: `Error creating contact: ${err.message}`,
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export default CreateContactTool;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { createXeroCreditNote } from "../../handlers/create-xero-credit-note.handler.js";
|
|
3
|
+
import { DeepLinkType, getDeepLink } from "../../helpers/get-deeplink.js";
|
|
4
|
+
import { CreateXeroTool } from "../../helpers/create-xero-tool.js";
|
|
5
|
+
const lineItemSchema = z.object({
|
|
6
|
+
description: z.string(),
|
|
7
|
+
quantity: z.number(),
|
|
8
|
+
unitAmount: z.number(),
|
|
9
|
+
accountCode: z.string(),
|
|
10
|
+
taxType: z.string(),
|
|
11
|
+
});
|
|
12
|
+
const CreateCreditNoteTool = CreateXeroTool("create-credit-note", "Create a credit note in Xero.\
|
|
13
|
+
When a credit note is created, a deep link to the credit note in Xero is returned. \
|
|
14
|
+
This deep link can be used to view the credit note in Xero directly. \
|
|
15
|
+
This link should be displayed to the user.", {
|
|
16
|
+
contactId: z.string(),
|
|
17
|
+
lineItems: z.array(lineItemSchema),
|
|
18
|
+
reference: z.string().optional(),
|
|
19
|
+
}, async ({ contactId, lineItems, reference }) => {
|
|
20
|
+
const result = await createXeroCreditNote(contactId, lineItems, reference);
|
|
21
|
+
if (result.isError) {
|
|
22
|
+
return {
|
|
23
|
+
content: [
|
|
24
|
+
{
|
|
25
|
+
type: "text",
|
|
26
|
+
text: `Error creating credit note: ${result.error}`,
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const creditNote = result.result;
|
|
32
|
+
const deepLink = creditNote.creditNoteID
|
|
33
|
+
? await getDeepLink(DeepLinkType.CREDIT_NOTE, creditNote.creditNoteID)
|
|
34
|
+
: null;
|
|
35
|
+
return {
|
|
36
|
+
content: [
|
|
37
|
+
{
|
|
38
|
+
type: "text",
|
|
39
|
+
text: [
|
|
40
|
+
"Credit note created successfully:",
|
|
41
|
+
`ID: ${creditNote?.creditNoteID}`,
|
|
42
|
+
`Contact: ${creditNote?.contact?.name}`,
|
|
43
|
+
`Total: ${creditNote?.total}`,
|
|
44
|
+
`Status: ${creditNote?.status}`,
|
|
45
|
+
deepLink ? `Link to view: ${deepLink}` : null,
|
|
46
|
+
]
|
|
47
|
+
.filter(Boolean)
|
|
48
|
+
.join("\n"),
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
export default CreateCreditNoteTool;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { createXeroInvoice } from "../../handlers/create-xero-invoice.handler.js";
|
|
3
|
+
import { DeepLinkType, getDeepLink } from "../../helpers/get-deeplink.js";
|
|
4
|
+
import { CreateXeroTool } from "../../helpers/create-xero-tool.js";
|
|
5
|
+
import { Invoice } from "xero-node";
|
|
6
|
+
const trackingSchema = z.object({
|
|
7
|
+
name: z.string().optional().describe("Name of the tracking category (e.g. 'Department'). Use name+option OR trackingCategoryID+trackingOptionID. " +
|
|
8
|
+
"Can be obtained from the list-tracking-categories tool."),
|
|
9
|
+
option: z.string().optional().describe("Name of the tracking option (e.g. 'Sales'). Use with name, or use IDs instead. " +
|
|
10
|
+
"Can be obtained from the list-tracking-categories tool."),
|
|
11
|
+
trackingCategoryID: z.string().optional().describe("UUID of the tracking category. Use with trackingOptionID, or use name+option instead. " +
|
|
12
|
+
"Can be obtained from the list-tracking-categories tool."),
|
|
13
|
+
trackingOptionID: z.string().optional().describe("UUID of the tracking option. Use with trackingCategoryID, or use name+option instead. " +
|
|
14
|
+
"Can be obtained from the list-tracking-categories tool."),
|
|
15
|
+
});
|
|
16
|
+
const lineItemSchema = z.object({
|
|
17
|
+
description: z.string().describe("The description of the line item"),
|
|
18
|
+
quantity: z.number().describe("The quantity of the line item"),
|
|
19
|
+
unitAmount: z.number().describe("The price per unit of the line item"),
|
|
20
|
+
accountCode: z.string().describe("The account code of the line item - can be obtained from the list-accounts tool"),
|
|
21
|
+
taxType: z.string().describe("The tax type of the line item - can be obtained from the list-tax-rates tool"),
|
|
22
|
+
itemCode: z.string().describe("The item code of the line item - can be obtained from the list-items tool \
|
|
23
|
+
If the item is not listed, add without an item code and ask the user if they would like to add an item code.").optional(),
|
|
24
|
+
tracking: z.array(trackingSchema).describe("Up to 2 tracking categories and options can be added to the line item. \
|
|
25
|
+
Can be obtained from the list-tracking-categories tool. \
|
|
26
|
+
Only use if prompted by the user.").optional(),
|
|
27
|
+
});
|
|
28
|
+
const CreateInvoiceTool = CreateXeroTool("create-invoice", "Create an invoice in Xero.\
|
|
29
|
+
When an invoice is created, a deep link to the invoice in Xero is returned. \
|
|
30
|
+
This deep link can be used to view the invoice in Xero directly. \
|
|
31
|
+
This link should be displayed to the user.", {
|
|
32
|
+
contactId: z.string().describe("The ID of the contact to create the invoice for. \
|
|
33
|
+
Can be obtained from the list-contacts tool."),
|
|
34
|
+
lineItems: z.array(lineItemSchema),
|
|
35
|
+
type: z.enum(["ACCREC", "ACCPAY"]).describe("The type of invoice to create. \
|
|
36
|
+
ACCREC is for sales invoices, Accounts Receivable, or customer invoices. \
|
|
37
|
+
ACCPAY is for purchase invoices, Accounts Payable invoices, supplier invoices, or bills. \
|
|
38
|
+
If the type is not specified, the default is ACCREC."),
|
|
39
|
+
reference: z.string().describe("A reference number for the invoice.").optional(),
|
|
40
|
+
date: z.string().describe("The date the invoice was created (YYYY-MM-DD format).").optional(),
|
|
41
|
+
}, async ({ contactId, lineItems, type, reference, date }) => {
|
|
42
|
+
const xeroInvoiceType = type === "ACCREC" ? Invoice.TypeEnum.ACCREC : Invoice.TypeEnum.ACCPAY;
|
|
43
|
+
const result = await createXeroInvoice(contactId, lineItems, xeroInvoiceType, reference, date);
|
|
44
|
+
if (result.isError) {
|
|
45
|
+
return {
|
|
46
|
+
content: [
|
|
47
|
+
{
|
|
48
|
+
type: "text",
|
|
49
|
+
text: `Error creating invoice: ${result.error}`,
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const invoice = result.result;
|
|
55
|
+
const deepLink = invoice.invoiceID
|
|
56
|
+
? await getDeepLink(invoice.type === Invoice.TypeEnum.ACCREC ? DeepLinkType.INVOICE : DeepLinkType.BILL, invoice.invoiceID)
|
|
57
|
+
: null;
|
|
58
|
+
return {
|
|
59
|
+
content: [
|
|
60
|
+
{
|
|
61
|
+
type: "text",
|
|
62
|
+
text: [
|
|
63
|
+
"Invoice created successfully:",
|
|
64
|
+
`ID: ${invoice?.invoiceID}`,
|
|
65
|
+
`Contact: ${invoice?.contact?.name}`,
|
|
66
|
+
`Type: ${invoice?.type}`,
|
|
67
|
+
`Date: ${invoice?.date}`,
|
|
68
|
+
`Total: ${invoice?.total}`,
|
|
69
|
+
`Status: ${invoice?.status}`,
|
|
70
|
+
deepLink ? `Link to view: ${deepLink}` : null,
|
|
71
|
+
]
|
|
72
|
+
.filter(Boolean)
|
|
73
|
+
.join("\n"),
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
};
|
|
77
|
+
});
|
|
78
|
+
export default CreateInvoiceTool;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { createXeroItem } from "../../handlers/create-xero-item.handler.js";
|
|
3
|
+
import { CreateXeroTool } from "../../helpers/create-xero-tool.js";
|
|
4
|
+
const purchaseDetailsSchema = z.object({
|
|
5
|
+
unitPrice: z.number(),
|
|
6
|
+
taxType: z.string().optional(),
|
|
7
|
+
accountCode: z.string().optional(),
|
|
8
|
+
});
|
|
9
|
+
const salesDetailsSchema = z.object({
|
|
10
|
+
unitPrice: z.number(),
|
|
11
|
+
taxType: z.string().optional(),
|
|
12
|
+
accountCode: z.string().optional(),
|
|
13
|
+
});
|
|
14
|
+
const CreateItemTool = CreateXeroTool("create-item", "Create an item in Xero.", {
|
|
15
|
+
code: z.string(),
|
|
16
|
+
name: z.string(),
|
|
17
|
+
description: z.string().optional(),
|
|
18
|
+
purchaseDescription: z.string().optional(),
|
|
19
|
+
purchaseDetails: purchaseDetailsSchema.optional(),
|
|
20
|
+
salesDetails: salesDetailsSchema.optional(),
|
|
21
|
+
isTrackedAsInventory: z.boolean().optional(),
|
|
22
|
+
inventoryAssetAccountCode: z.string().optional(),
|
|
23
|
+
}, async ({ code, name, description, purchaseDescription, purchaseDetails, salesDetails, isTrackedAsInventory, inventoryAssetAccountCode, }) => {
|
|
24
|
+
const result = await createXeroItem({
|
|
25
|
+
code,
|
|
26
|
+
name,
|
|
27
|
+
description,
|
|
28
|
+
purchaseDescription,
|
|
29
|
+
purchaseDetails,
|
|
30
|
+
salesDetails,
|
|
31
|
+
isTrackedAsInventory,
|
|
32
|
+
inventoryAssetAccountCode,
|
|
33
|
+
});
|
|
34
|
+
if (result.isError) {
|
|
35
|
+
return {
|
|
36
|
+
content: [
|
|
37
|
+
{
|
|
38
|
+
type: "text",
|
|
39
|
+
text: `Error creating item: ${result.error}`,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
const item = result.result;
|
|
45
|
+
return {
|
|
46
|
+
content: [
|
|
47
|
+
{
|
|
48
|
+
type: "text",
|
|
49
|
+
text: [
|
|
50
|
+
"Item created successfully:",
|
|
51
|
+
`ID: ${item?.itemID}`,
|
|
52
|
+
`Code: ${item?.code}`,
|
|
53
|
+
`Name: ${item?.name}`,
|
|
54
|
+
]
|
|
55
|
+
.filter(Boolean)
|
|
56
|
+
.join("\n"),
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
export default CreateItemTool;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { CreateXeroTool } from "../../helpers/create-xero-tool.js";
|
|
3
|
+
import { createXeroManualJournal } from "../../handlers/create-xero-manual-journal.handler.js";
|
|
4
|
+
import { DeepLinkType, getDeepLink } from "../../helpers/get-deeplink.js";
|
|
5
|
+
import { ensureError } from "../../helpers/ensure-error.js";
|
|
6
|
+
const CreateManualJournalTool = CreateXeroTool("create-manual-journal", "Create a manual journal in Xero.\
|
|
7
|
+
Retrieve a list of account codes in Xero to use for the journal lines.\
|
|
8
|
+
Journal lines must contain at least two individual journal lines with account codes, \
|
|
9
|
+
use basic accounting account types pairing when not specified, \
|
|
10
|
+
and make sure journal line pairs have credit and debit balanced.", {
|
|
11
|
+
narration: z
|
|
12
|
+
.string()
|
|
13
|
+
.describe("Description of manual journal being posted"),
|
|
14
|
+
manualJournalLines: z
|
|
15
|
+
.array(z.object({
|
|
16
|
+
lineAmount: z
|
|
17
|
+
.number()
|
|
18
|
+
.describe("Total for manual journal line. Debits are positive, credits are negative value"),
|
|
19
|
+
accountCode: z.string().describe("Account code for the journal line"),
|
|
20
|
+
description: z
|
|
21
|
+
.string()
|
|
22
|
+
.optional()
|
|
23
|
+
.describe("Optional description for manual journal line"),
|
|
24
|
+
taxType: z
|
|
25
|
+
.string()
|
|
26
|
+
.optional()
|
|
27
|
+
.describe("Optional tax type for the manual journal line"),
|
|
28
|
+
// TODO: TODO: tracking can be added here
|
|
29
|
+
}))
|
|
30
|
+
.describe("The manualJournalLines element must contain at least two individual manualJournalLine sub-elements"),
|
|
31
|
+
date: z.string().optional().describe("Optional date in YYYY-MM-DD format"),
|
|
32
|
+
lineAmountTypes: z
|
|
33
|
+
.enum(["EXCLUSIVE", "INCLUSIVE", "NO_TAX"])
|
|
34
|
+
.optional()
|
|
35
|
+
.describe("Optional line amount types (EXCLUSIVE, INCLUSIVE, NO_TAX), NO_TAX by default"),
|
|
36
|
+
status: z
|
|
37
|
+
.enum(["DRAFT", "POSTED", "DELETED", "VOIDED", "ARCHIVED"])
|
|
38
|
+
.optional()
|
|
39
|
+
.describe("Optional status of the manual journal (DRAFT, POSTED, DELETED, VOIDED, ARCHIVED), DRAFT by default"),
|
|
40
|
+
url: z
|
|
41
|
+
.string()
|
|
42
|
+
.optional()
|
|
43
|
+
.describe("Optional URL link to a source document"),
|
|
44
|
+
showOnCashBasisReports: z
|
|
45
|
+
.boolean()
|
|
46
|
+
.optional()
|
|
47
|
+
.describe("Optional boolean to show on cash basis reports, default is true"),
|
|
48
|
+
}, async (args) => {
|
|
49
|
+
try {
|
|
50
|
+
const response = await createXeroManualJournal(args.narration, args.manualJournalLines, args.date, args.lineAmountTypes, args.status, args.url, args.showOnCashBasisReports);
|
|
51
|
+
if (response.isError) {
|
|
52
|
+
return {
|
|
53
|
+
content: [
|
|
54
|
+
{
|
|
55
|
+
type: "text",
|
|
56
|
+
text: `Error creating manual journal: ${response.error}`,
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const manualJournal = response.result;
|
|
62
|
+
const deepLink = manualJournal.manualJournalID
|
|
63
|
+
? await getDeepLink(DeepLinkType.MANUAL_JOURNAL, manualJournal.manualJournalID)
|
|
64
|
+
: null;
|
|
65
|
+
return {
|
|
66
|
+
content: [
|
|
67
|
+
{
|
|
68
|
+
type: "text",
|
|
69
|
+
text: [
|
|
70
|
+
`Manual journal created: ${manualJournal.narration} (ID: ${manualJournal.manualJournalID})`,
|
|
71
|
+
manualJournal.date ? `Date: ${manualJournal.date}` : null,
|
|
72
|
+
manualJournal.status
|
|
73
|
+
? `Status: ${manualJournal.status}`
|
|
74
|
+
: "No status",
|
|
75
|
+
manualJournal.journalLines
|
|
76
|
+
? manualJournal.journalLines.map((line) => ({
|
|
77
|
+
type: "text",
|
|
78
|
+
text: [
|
|
79
|
+
`Line Amount: ${line.lineAmount}`,
|
|
80
|
+
line.accountCode
|
|
81
|
+
? `Account Code: ${line.accountCode}`
|
|
82
|
+
: "No account code",
|
|
83
|
+
line.description
|
|
84
|
+
? `Description: ${line.description}`
|
|
85
|
+
: "No description",
|
|
86
|
+
line.taxType
|
|
87
|
+
? `Tax Type: ${line.taxType}`
|
|
88
|
+
: "No tax type",
|
|
89
|
+
`Tax Amount: ${line.taxAmount}`,
|
|
90
|
+
]
|
|
91
|
+
.filter(Boolean)
|
|
92
|
+
.join("\n"),
|
|
93
|
+
}))
|
|
94
|
+
: [{ type: "text", text: "No journal lines" }],
|
|
95
|
+
`Show on Cash Basis Reports: ${manualJournal.showOnCashBasisReports}`,
|
|
96
|
+
deepLink ? `Link to view: ${deepLink}` : null,
|
|
97
|
+
]
|
|
98
|
+
.filter(Boolean)
|
|
99
|
+
.join("\n"),
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
catch (error) {
|
|
105
|
+
const err = ensureError(error);
|
|
106
|
+
return {
|
|
107
|
+
content: [
|
|
108
|
+
{
|
|
109
|
+
type: "text",
|
|
110
|
+
text: `Error creating manual journal: ${err.message}`,
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
export default CreateManualJournalTool;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { createXeroPayment } from "../../handlers/create-xero-payment.handler.js";
|
|
3
|
+
import { DeepLinkType, getDeepLink } from "../../helpers/get-deeplink.js";
|
|
4
|
+
import { CreateXeroTool } from "../../helpers/create-xero-tool.js";
|
|
5
|
+
const CreatePaymentTool = CreateXeroTool("create-payment", "Create a payment against an invoice in Xero.\
|
|
6
|
+
This tool records a payment transaction against an invoice. \
|
|
7
|
+
You'll need to provide the invoice ID, account ID to make the payment from, and the amount. \
|
|
8
|
+
The amount must be positive and should not exceed the remaining amount due on the invoice. \
|
|
9
|
+
A payment can only be created for an invoice that is status AUTHORIZED \
|
|
10
|
+
A payment can only be created for an invoice that is not fully paid \
|
|
11
|
+
When a payment is created, a deep link to the payment in Xero is returned. \
|
|
12
|
+
This deep link can be used to view the payment in Xero directly. \
|
|
13
|
+
This link should be displayed to the user.", {
|
|
14
|
+
invoiceId: z.string().describe("The ID of the invoice to pay"),
|
|
15
|
+
accountId: z
|
|
16
|
+
.string()
|
|
17
|
+
.describe("The ID of the account the payment is made from"),
|
|
18
|
+
amount: z
|
|
19
|
+
.number()
|
|
20
|
+
.positive()
|
|
21
|
+
.describe("The amount of the payment (must be positive)"),
|
|
22
|
+
date: z
|
|
23
|
+
.string()
|
|
24
|
+
.optional()
|
|
25
|
+
.describe("Optional payment date in YYYY-MM-DD format"),
|
|
26
|
+
reference: z
|
|
27
|
+
.string()
|
|
28
|
+
.optional()
|
|
29
|
+
.describe("Optional payment reference/description"),
|
|
30
|
+
}, async ({ invoiceId, accountId, amount, date, reference }) => {
|
|
31
|
+
const result = await createXeroPayment({
|
|
32
|
+
invoiceId,
|
|
33
|
+
accountId,
|
|
34
|
+
amount,
|
|
35
|
+
date,
|
|
36
|
+
reference,
|
|
37
|
+
});
|
|
38
|
+
if (result.isError) {
|
|
39
|
+
return {
|
|
40
|
+
content: [
|
|
41
|
+
{
|
|
42
|
+
type: "text",
|
|
43
|
+
text: `Error creating payment: ${result.error}`,
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
const payment = result.result;
|
|
49
|
+
const deepLink = payment.paymentID
|
|
50
|
+
? await getDeepLink(DeepLinkType.PAYMENT, payment.paymentID)
|
|
51
|
+
: null;
|
|
52
|
+
return {
|
|
53
|
+
content: [
|
|
54
|
+
{
|
|
55
|
+
type: "text",
|
|
56
|
+
text: [
|
|
57
|
+
"Invoice created successfully:",
|
|
58
|
+
`ID: ${payment?.paymentID}`,
|
|
59
|
+
`Reference: ${payment?.reference}`,
|
|
60
|
+
`Invoice Number: ${payment?.invoiceNumber}`,
|
|
61
|
+
`Amount: ${payment?.amount}`,
|
|
62
|
+
`Status: ${payment?.status}`,
|
|
63
|
+
deepLink ? `Link to view: ${deepLink}` : null,
|
|
64
|
+
]
|
|
65
|
+
.filter(Boolean)
|
|
66
|
+
.join("\n"),
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
export default CreatePaymentTool;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { createXeroPayrollTimesheet, } from "../../handlers/create-xero-payroll-timesheet.handler.js";
|
|
3
|
+
import { CreateXeroTool } from "../../helpers/create-xero-tool.js";
|
|
4
|
+
const CreatePayrollTimesheetTool = CreateXeroTool("create-timesheet", `Create a new payroll timesheet in Xero.
|
|
5
|
+
This allows you to specify details such as the employee ID, payroll calendar ID, start and end dates, and timesheet lines.`, {
|
|
6
|
+
payrollCalendarID: z.string().describe("The ID of the payroll calendar."),
|
|
7
|
+
employeeID: z.string().describe("The ID of the employee."),
|
|
8
|
+
startDate: z.string().describe("The start date of the timesheet period (YYYY-MM-DD)."),
|
|
9
|
+
endDate: z.string().describe("The end date of the timesheet period (YYYY-MM-DD)."),
|
|
10
|
+
timesheetLines: z
|
|
11
|
+
.array(z.object({
|
|
12
|
+
earningsRateID: z.string().describe("The ID of the earnings rate."),
|
|
13
|
+
numberOfUnits: z.number().describe("The number of units for the timesheet line."),
|
|
14
|
+
date: z.string().describe("The date for the timesheet line (YYYY-MM-DD)."),
|
|
15
|
+
}))
|
|
16
|
+
.optional()
|
|
17
|
+
.describe("The lines of the timesheet."),
|
|
18
|
+
}, async (params) => {
|
|
19
|
+
const response = await createXeroPayrollTimesheet(params);
|
|
20
|
+
if (response.isError) {
|
|
21
|
+
return {
|
|
22
|
+
content: [
|
|
23
|
+
{
|
|
24
|
+
type: "text",
|
|
25
|
+
text: `Error creating timesheet: ${response.error}`,
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const timesheet = response.result;
|
|
31
|
+
return {
|
|
32
|
+
content: [
|
|
33
|
+
{
|
|
34
|
+
type: "text",
|
|
35
|
+
text: `Successfully created timesheet with ID: ${timesheet?.timesheetID}`,
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
export default CreatePayrollTimesheetTool;
|