conductor-node-mcp 12.18.2 → 12.20.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/README.md +11 -0
- package/package.json +2 -2
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/server.ts +1 -1
- package/src/tools/index.ts +10 -0
- package/src/tools/qbd/other-charge-items/create-qbd-other-charge-items.ts +158 -0
- package/src/tools/qbd/other-charge-items/list-qbd-other-charge-items.ts +116 -0
- package/src/tools/qbd/other-charge-items/retrieve-qbd-other-charge-items.ts +44 -0
- package/src/tools/qbd/other-charge-items/update-qbd-other-charge-items.ts +175 -0
- package/src/tools/qbd/templates/list-qbd-templates.ts +48 -0
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +10 -0
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +10 -0
- package/tools/index.mjs.map +1 -1
- package/tools/qbd/other-charge-items/create-qbd-other-charge-items.d.mts +45 -0
- package/tools/qbd/other-charge-items/create-qbd-other-charge-items.d.mts.map +1 -0
- package/tools/qbd/other-charge-items/create-qbd-other-charge-items.d.ts +45 -0
- package/tools/qbd/other-charge-items/create-qbd-other-charge-items.d.ts.map +1 -0
- package/tools/qbd/other-charge-items/create-qbd-other-charge-items.js +138 -0
- package/tools/qbd/other-charge-items/create-qbd-other-charge-items.js.map +1 -0
- package/tools/qbd/other-charge-items/create-qbd-other-charge-items.mjs +134 -0
- package/tools/qbd/other-charge-items/create-qbd-other-charge-items.mjs.map +1 -0
- package/tools/qbd/other-charge-items/list-qbd-other-charge-items.d.mts +45 -0
- package/tools/qbd/other-charge-items/list-qbd-other-charge-items.d.mts.map +1 -0
- package/tools/qbd/other-charge-items/list-qbd-other-charge-items.d.ts +45 -0
- package/tools/qbd/other-charge-items/list-qbd-other-charge-items.d.ts.map +1 -0
- package/tools/qbd/other-charge-items/list-qbd-other-charge-items.js +99 -0
- package/tools/qbd/other-charge-items/list-qbd-other-charge-items.js.map +1 -0
- package/tools/qbd/other-charge-items/list-qbd-other-charge-items.mjs +95 -0
- package/tools/qbd/other-charge-items/list-qbd-other-charge-items.mjs.map +1 -0
- package/tools/qbd/other-charge-items/retrieve-qbd-other-charge-items.d.mts +45 -0
- package/tools/qbd/other-charge-items/retrieve-qbd-other-charge-items.d.mts.map +1 -0
- package/tools/qbd/other-charge-items/retrieve-qbd-other-charge-items.d.ts +45 -0
- package/tools/qbd/other-charge-items/retrieve-qbd-other-charge-items.d.ts.map +1 -0
- package/tools/qbd/other-charge-items/retrieve-qbd-other-charge-items.js +40 -0
- package/tools/qbd/other-charge-items/retrieve-qbd-other-charge-items.js.map +1 -0
- package/tools/qbd/other-charge-items/retrieve-qbd-other-charge-items.mjs +36 -0
- package/tools/qbd/other-charge-items/retrieve-qbd-other-charge-items.mjs.map +1 -0
- package/tools/qbd/other-charge-items/update-qbd-other-charge-items.d.mts +45 -0
- package/tools/qbd/other-charge-items/update-qbd-other-charge-items.d.mts.map +1 -0
- package/tools/qbd/other-charge-items/update-qbd-other-charge-items.d.ts +45 -0
- package/tools/qbd/other-charge-items/update-qbd-other-charge-items.d.ts.map +1 -0
- package/tools/qbd/other-charge-items/update-qbd-other-charge-items.js +152 -0
- package/tools/qbd/other-charge-items/update-qbd-other-charge-items.js.map +1 -0
- package/tools/qbd/other-charge-items/update-qbd-other-charge-items.mjs +148 -0
- package/tools/qbd/other-charge-items/update-qbd-other-charge-items.mjs.map +1 -0
- package/tools/qbd/templates/list-qbd-templates.d.mts +45 -0
- package/tools/qbd/templates/list-qbd-templates.d.mts.map +1 -0
- package/tools/qbd/templates/list-qbd-templates.d.ts +45 -0
- package/tools/qbd/templates/list-qbd-templates.d.ts.map +1 -0
- package/tools/qbd/templates/list-qbd-templates.js +42 -0
- package/tools/qbd/templates/list-qbd-templates.js.map +1 -0
- package/tools/qbd/templates/list-qbd-templates.mjs +38 -0
- package/tools/qbd/templates/list-qbd-templates.mjs.map +1 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from 'conductor-node-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import Conductor from 'conductor-node';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (conductor: Conductor, args: Record<string, unknown> | undefined) => Promise<import("conductor-node-mcp/tools/types").ToolCallResult>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (conductor: Conductor, args: Record<string, unknown> | undefined) => Promise<import("conductor-node-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=update-qbd-other-charge-items.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-qbd-other-charge-items.d.mts","sourceRoot":"","sources":["../../../src/tools/qbd/other-charge-items/update-qbd-other-charge-items.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,gCAAgC;OAEvE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwJlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,WAAW,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,qEAG5F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAHuC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK7F,wBAA2C"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from 'conductor-node-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import Conductor from 'conductor-node';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (conductor: Conductor, args: Record<string, unknown> | undefined) => Promise<import("conductor-node-mcp/tools/types").ToolCallResult>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (conductor: Conductor, args: Record<string, unknown> | undefined) => Promise<import("conductor-node-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=update-qbd-other-charge-items.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-qbd-other-charge-items.d.ts","sourceRoot":"","sources":["../../../src/tools/qbd/other-charge-items/update-qbd-other-charge-items.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,gCAAgC;OAEvE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwJlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,WAAW,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,qEAG5F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAHuC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK7F,wBAA2C"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
const types_1 = require("conductor-node-mcp/tools/types");
|
|
6
|
+
exports.metadata = {
|
|
7
|
+
resource: 'qbd.other_charge_items',
|
|
8
|
+
operation: 'write',
|
|
9
|
+
tags: [],
|
|
10
|
+
httpMethod: 'post',
|
|
11
|
+
httpPath: '/quickbooks-desktop/other-charge-items/{id}',
|
|
12
|
+
};
|
|
13
|
+
exports.tool = {
|
|
14
|
+
name: 'update_qbd_other_charge_items',
|
|
15
|
+
description: 'Updates an existing other charge item.',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'The QuickBooks-assigned unique identifier of the other charge item to update.',
|
|
22
|
+
},
|
|
23
|
+
revisionNumber: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
description: "The current QuickBooks-assigned revision number of the other charge item object you are updating, which you can get by fetching the object first. Provide the most recent `revisionNumber` to ensure you're working with the latest data; otherwise, the update will return an error.",
|
|
26
|
+
},
|
|
27
|
+
conductorEndUserId: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
description: 'The ID of the EndUser to receive this request (e.g., `"Conductor-End-User-Id: {{END_USER_ID}}"`).',
|
|
30
|
+
},
|
|
31
|
+
barcode: {
|
|
32
|
+
type: 'object',
|
|
33
|
+
description: "The other charge item's barcode.",
|
|
34
|
+
properties: {
|
|
35
|
+
allowOverride: {
|
|
36
|
+
type: 'boolean',
|
|
37
|
+
description: 'Indicates whether to allow the barcode to be overridden.',
|
|
38
|
+
},
|
|
39
|
+
assignEvenIfUsed: {
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
description: 'Indicates whether to assign the barcode even if it is already used.',
|
|
42
|
+
},
|
|
43
|
+
value: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: "The item's barcode value.",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
classId: {
|
|
50
|
+
type: 'string',
|
|
51
|
+
description: "The other charge item's class. Classes can be used to categorize objects into meaningful segments, such as department, location, or type of work. In QuickBooks, class tracking is off by default.",
|
|
52
|
+
},
|
|
53
|
+
isActive: {
|
|
54
|
+
type: 'boolean',
|
|
55
|
+
description: 'Indicates whether this other charge item is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.',
|
|
56
|
+
},
|
|
57
|
+
name: {
|
|
58
|
+
type: 'string',
|
|
59
|
+
description: 'The case-insensitive name of this other charge item. Not guaranteed to be unique because it does not include the names of its hierarchical parent objects like `fullName` does. For example, two other charge items could both have the `name` "Overnight Delivery", but they could have unique `fullName` values, such as "Shipping Charges:Overnight Delivery" and "Misc Fees:Overnight Delivery".\n\nMaximum length: 31 characters.',
|
|
60
|
+
},
|
|
61
|
+
parentId: {
|
|
62
|
+
type: 'string',
|
|
63
|
+
description: 'The parent other charge item one level above this one in the hierarchy. For example, if this other charge item has a `fullName` of "Shipping Charges:Overnight Delivery", its parent has a `fullName` of "Shipping Charges". If this other charge item is at the top level, this field will be `null`.',
|
|
64
|
+
},
|
|
65
|
+
salesAndPurchaseDetails: {
|
|
66
|
+
type: 'object',
|
|
67
|
+
description: 'Details for other charge items that are both purchased and sold, such as reimbursable expenses or inventory items that are bought from vendors and sold to customers.\n\n**IMPORTANT**: You cannot specify both `salesAndPurchaseDetails` and `salesOrPurchaseDetails` when modifying an other charge item because an item cannot have both configurations.',
|
|
68
|
+
properties: {
|
|
69
|
+
expenseAccountId: {
|
|
70
|
+
type: 'string',
|
|
71
|
+
description: 'The expense account used to track costs from purchases of this item.',
|
|
72
|
+
},
|
|
73
|
+
incomeAccountId: {
|
|
74
|
+
type: 'string',
|
|
75
|
+
description: 'The income account used to track revenue from sales of this item.',
|
|
76
|
+
},
|
|
77
|
+
preferredVendorId: {
|
|
78
|
+
type: 'string',
|
|
79
|
+
description: 'The preferred vendor from whom this item is typically purchased.',
|
|
80
|
+
},
|
|
81
|
+
purchaseCost: {
|
|
82
|
+
type: 'string',
|
|
83
|
+
description: 'The cost at which this item is purchased from vendors, represented as a decimal string.',
|
|
84
|
+
},
|
|
85
|
+
purchaseDescription: {
|
|
86
|
+
type: 'string',
|
|
87
|
+
description: 'The description of this item that appears on purchase forms (e.g., checks, bills, item receipts) when it is ordered or bought from vendors.',
|
|
88
|
+
},
|
|
89
|
+
purchaseTaxCodeId: {
|
|
90
|
+
type: 'string',
|
|
91
|
+
description: 'The tax code applied to purchases of this item. Applicable in regions where purchase taxes are used, such as Canada or the UK.',
|
|
92
|
+
},
|
|
93
|
+
salesDescription: {
|
|
94
|
+
type: 'string',
|
|
95
|
+
description: 'The description of this item that appears on sales forms (e.g., invoices, sales receipts) when sold to customers.',
|
|
96
|
+
},
|
|
97
|
+
salesPrice: {
|
|
98
|
+
type: 'string',
|
|
99
|
+
description: 'The price at which this item is sold to customers, represented as a decimal string.',
|
|
100
|
+
},
|
|
101
|
+
updateExistingTransactionsExpenseAccount: {
|
|
102
|
+
type: 'boolean',
|
|
103
|
+
description: 'When `true`, applies the new expense account (specified by the `expenseAccountId` field) to all existing transactions that use this item. This updates historical data and should be used with caution. The update will fail if any affected transaction falls within a closed accounting period. If this parameter is not specified, QuickBooks will prompt the user before making any changes.',
|
|
104
|
+
},
|
|
105
|
+
updateExistingTransactionsIncomeAccount: {
|
|
106
|
+
type: 'boolean',
|
|
107
|
+
description: 'When `true`, applies the new income account (specified by the `incomeAccountId` field) to all existing transactions that use this item. This updates historical data and should be used with caution. The update will fail if any affected transaction falls within a closed accounting period. If this parameter is not specified, QuickBooks will prompt the user before making any changes.',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
salesOrPurchaseDetails: {
|
|
112
|
+
type: 'object',
|
|
113
|
+
description: "Details for other charge items that are exclusively sold or exclusively purchased, but not both. This typically applies to non-inventory items (like a purchased office supply that isn't resold) or service items (like consulting services that are sold but not purchased).\n\n**IMPORTANT**: You cannot specify both `salesOrPurchaseDetails` and `salesAndPurchaseDetails` when modifying an other charge item because an item cannot have both configurations.",
|
|
114
|
+
properties: {
|
|
115
|
+
description: {
|
|
116
|
+
type: 'string',
|
|
117
|
+
description: 'A description of this item.',
|
|
118
|
+
},
|
|
119
|
+
postingAccountId: {
|
|
120
|
+
type: 'string',
|
|
121
|
+
description: 'The posting account to which transactions involving this item are posted. This could be an income account when selling or an expense account when purchasing.',
|
|
122
|
+
},
|
|
123
|
+
price: {
|
|
124
|
+
type: 'string',
|
|
125
|
+
description: 'The price at which this item is purchased or sold, represented as a decimal string.',
|
|
126
|
+
},
|
|
127
|
+
pricePercentage: {
|
|
128
|
+
type: 'string',
|
|
129
|
+
description: "The price of this item expressed as a percentage, used instead of `price` when the item's cost is calculated as a percentage of another amount. For example, a service item that costs a percentage of another item's price.",
|
|
130
|
+
},
|
|
131
|
+
updateExistingTransactionsAccount: {
|
|
132
|
+
type: 'boolean',
|
|
133
|
+
description: 'When `true`, applies the new account (specified by the `accountId` field) to all existing transactions associated with this item. This updates historical data and should be used with caution. The update will fail if any affected transaction falls within a closed accounting period. If this parameter is not specified, QuickBooks will prompt the user before making any changes.',
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
salesTaxCodeId: {
|
|
138
|
+
type: 'string',
|
|
139
|
+
description: 'The default sales-tax code for this other charge item, determining whether it is taxable or non-taxable. This can be overridden at the transaction-line level.\n\nDefault codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes can also be created in QuickBooks. If QuickBooks is not set up to charge sales tax (via the "Do You Charge Sales Tax?" preference), it will assign the default non-taxable code to all sales.',
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
required: ['id', 'revisionNumber', 'conductorEndUserId'],
|
|
143
|
+
},
|
|
144
|
+
annotations: {},
|
|
145
|
+
};
|
|
146
|
+
const handler = async (conductor, args) => {
|
|
147
|
+
const { id, ...body } = args;
|
|
148
|
+
return (0, types_1.asTextContentResult)(await conductor.qbd.otherChargeItems.update(id, body));
|
|
149
|
+
};
|
|
150
|
+
exports.handler = handler;
|
|
151
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
152
|
+
//# sourceMappingURL=update-qbd-other-charge-items.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-qbd-other-charge-items.js","sourceRoot":"","sources":["../../../src/tools/qbd/other-charge-items/update-qbd-other-charge-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA+E;AAKlE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,wBAAwB;IAClC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,6CAA6C;CACxD,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE,wCAAwC;IACrD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+EAA+E;aAC7F;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,uRAAuR;aAC1R;YACD,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mGAAmG;aACtG;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kCAAkC;gBAC/C,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,0DAA0D;qBACxE;oBACD,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,q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+
import { asTextContentResult } from 'conductor-node-mcp/tools/types';
|
|
3
|
+
export const metadata = {
|
|
4
|
+
resource: 'qbd.other_charge_items',
|
|
5
|
+
operation: 'write',
|
|
6
|
+
tags: [],
|
|
7
|
+
httpMethod: 'post',
|
|
8
|
+
httpPath: '/quickbooks-desktop/other-charge-items/{id}',
|
|
9
|
+
};
|
|
10
|
+
export const tool = {
|
|
11
|
+
name: 'update_qbd_other_charge_items',
|
|
12
|
+
description: 'Updates an existing other charge item.',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
id: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'The QuickBooks-assigned unique identifier of the other charge item to update.',
|
|
19
|
+
},
|
|
20
|
+
revisionNumber: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: "The current QuickBooks-assigned revision number of the other charge item object you are updating, which you can get by fetching the object first. Provide the most recent `revisionNumber` to ensure you're working with the latest data; otherwise, the update will return an error.",
|
|
23
|
+
},
|
|
24
|
+
conductorEndUserId: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'The ID of the EndUser to receive this request (e.g., `"Conductor-End-User-Id: {{END_USER_ID}}"`).',
|
|
27
|
+
},
|
|
28
|
+
barcode: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
description: "The other charge item's barcode.",
|
|
31
|
+
properties: {
|
|
32
|
+
allowOverride: {
|
|
33
|
+
type: 'boolean',
|
|
34
|
+
description: 'Indicates whether to allow the barcode to be overridden.',
|
|
35
|
+
},
|
|
36
|
+
assignEvenIfUsed: {
|
|
37
|
+
type: 'boolean',
|
|
38
|
+
description: 'Indicates whether to assign the barcode even if it is already used.',
|
|
39
|
+
},
|
|
40
|
+
value: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
description: "The item's barcode value.",
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
classId: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: "The other charge item's class. Classes can be used to categorize objects into meaningful segments, such as department, location, or type of work. In QuickBooks, class tracking is off by default.",
|
|
49
|
+
},
|
|
50
|
+
isActive: {
|
|
51
|
+
type: 'boolean',
|
|
52
|
+
description: 'Indicates whether this other charge item is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.',
|
|
53
|
+
},
|
|
54
|
+
name: {
|
|
55
|
+
type: 'string',
|
|
56
|
+
description: 'The case-insensitive name of this other charge item. Not guaranteed to be unique because it does not include the names of its hierarchical parent objects like `fullName` does. For example, two other charge items could both have the `name` "Overnight Delivery", but they could have unique `fullName` values, such as "Shipping Charges:Overnight Delivery" and "Misc Fees:Overnight Delivery".\n\nMaximum length: 31 characters.',
|
|
57
|
+
},
|
|
58
|
+
parentId: {
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'The parent other charge item one level above this one in the hierarchy. For example, if this other charge item has a `fullName` of "Shipping Charges:Overnight Delivery", its parent has a `fullName` of "Shipping Charges". If this other charge item is at the top level, this field will be `null`.',
|
|
61
|
+
},
|
|
62
|
+
salesAndPurchaseDetails: {
|
|
63
|
+
type: 'object',
|
|
64
|
+
description: 'Details for other charge items that are both purchased and sold, such as reimbursable expenses or inventory items that are bought from vendors and sold to customers.\n\n**IMPORTANT**: You cannot specify both `salesAndPurchaseDetails` and `salesOrPurchaseDetails` when modifying an other charge item because an item cannot have both configurations.',
|
|
65
|
+
properties: {
|
|
66
|
+
expenseAccountId: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
description: 'The expense account used to track costs from purchases of this item.',
|
|
69
|
+
},
|
|
70
|
+
incomeAccountId: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
description: 'The income account used to track revenue from sales of this item.',
|
|
73
|
+
},
|
|
74
|
+
preferredVendorId: {
|
|
75
|
+
type: 'string',
|
|
76
|
+
description: 'The preferred vendor from whom this item is typically purchased.',
|
|
77
|
+
},
|
|
78
|
+
purchaseCost: {
|
|
79
|
+
type: 'string',
|
|
80
|
+
description: 'The cost at which this item is purchased from vendors, represented as a decimal string.',
|
|
81
|
+
},
|
|
82
|
+
purchaseDescription: {
|
|
83
|
+
type: 'string',
|
|
84
|
+
description: 'The description of this item that appears on purchase forms (e.g., checks, bills, item receipts) when it is ordered or bought from vendors.',
|
|
85
|
+
},
|
|
86
|
+
purchaseTaxCodeId: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'The tax code applied to purchases of this item. Applicable in regions where purchase taxes are used, such as Canada or the UK.',
|
|
89
|
+
},
|
|
90
|
+
salesDescription: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
description: 'The description of this item that appears on sales forms (e.g., invoices, sales receipts) when sold to customers.',
|
|
93
|
+
},
|
|
94
|
+
salesPrice: {
|
|
95
|
+
type: 'string',
|
|
96
|
+
description: 'The price at which this item is sold to customers, represented as a decimal string.',
|
|
97
|
+
},
|
|
98
|
+
updateExistingTransactionsExpenseAccount: {
|
|
99
|
+
type: 'boolean',
|
|
100
|
+
description: 'When `true`, applies the new expense account (specified by the `expenseAccountId` field) to all existing transactions that use this item. This updates historical data and should be used with caution. The update will fail if any affected transaction falls within a closed accounting period. If this parameter is not specified, QuickBooks will prompt the user before making any changes.',
|
|
101
|
+
},
|
|
102
|
+
updateExistingTransactionsIncomeAccount: {
|
|
103
|
+
type: 'boolean',
|
|
104
|
+
description: 'When `true`, applies the new income account (specified by the `incomeAccountId` field) to all existing transactions that use this item. This updates historical data and should be used with caution. The update will fail if any affected transaction falls within a closed accounting period. If this parameter is not specified, QuickBooks will prompt the user before making any changes.',
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
salesOrPurchaseDetails: {
|
|
109
|
+
type: 'object',
|
|
110
|
+
description: "Details for other charge items that are exclusively sold or exclusively purchased, but not both. This typically applies to non-inventory items (like a purchased office supply that isn't resold) or service items (like consulting services that are sold but not purchased).\n\n**IMPORTANT**: You cannot specify both `salesOrPurchaseDetails` and `salesAndPurchaseDetails` when modifying an other charge item because an item cannot have both configurations.",
|
|
111
|
+
properties: {
|
|
112
|
+
description: {
|
|
113
|
+
type: 'string',
|
|
114
|
+
description: 'A description of this item.',
|
|
115
|
+
},
|
|
116
|
+
postingAccountId: {
|
|
117
|
+
type: 'string',
|
|
118
|
+
description: 'The posting account to which transactions involving this item are posted. This could be an income account when selling or an expense account when purchasing.',
|
|
119
|
+
},
|
|
120
|
+
price: {
|
|
121
|
+
type: 'string',
|
|
122
|
+
description: 'The price at which this item is purchased or sold, represented as a decimal string.',
|
|
123
|
+
},
|
|
124
|
+
pricePercentage: {
|
|
125
|
+
type: 'string',
|
|
126
|
+
description: "The price of this item expressed as a percentage, used instead of `price` when the item's cost is calculated as a percentage of another amount. For example, a service item that costs a percentage of another item's price.",
|
|
127
|
+
},
|
|
128
|
+
updateExistingTransactionsAccount: {
|
|
129
|
+
type: 'boolean',
|
|
130
|
+
description: 'When `true`, applies the new account (specified by the `accountId` field) to all existing transactions associated with this item. This updates historical data and should be used with caution. The update will fail if any affected transaction falls within a closed accounting period. If this parameter is not specified, QuickBooks will prompt the user before making any changes.',
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
salesTaxCodeId: {
|
|
135
|
+
type: 'string',
|
|
136
|
+
description: 'The default sales-tax code for this other charge item, determining whether it is taxable or non-taxable. This can be overridden at the transaction-line level.\n\nDefault codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes can also be created in QuickBooks. If QuickBooks is not set up to charge sales tax (via the "Do You Charge Sales Tax?" preference), it will assign the default non-taxable code to all sales.',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
required: ['id', 'revisionNumber', 'conductorEndUserId'],
|
|
140
|
+
},
|
|
141
|
+
annotations: {},
|
|
142
|
+
};
|
|
143
|
+
export const handler = async (conductor, args) => {
|
|
144
|
+
const { id, ...body } = args;
|
|
145
|
+
return asTextContentResult(await conductor.qbd.otherChargeItems.update(id, body));
|
|
146
|
+
};
|
|
147
|
+
export default { metadata, tool, handler };
|
|
148
|
+
//# sourceMappingURL=update-qbd-other-charge-items.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-qbd-other-charge-items.mjs","sourceRoot":"","sources":["../../../src/tools/qbd/other-charge-items/update-qbd-other-charge-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,gCAAgC;AAK9E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,wBAAwB;IAClC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,6CAA6C;CACxD,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE,wCAAwC;IACrD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+EAA+E;aAC7F;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,uRAAuR;aAC1R;YACD,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mGAAmG;aACtG;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kCAAkC;gBAC/C,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,0DAA0D;qBACxE;oBACD,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,qEAAqE;qBACnF;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,2BAA2B;qBACzC;iBACF;aACF;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,oMAAoM;aACvM;YACD,QAAQ,EAAE;gB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d,WAAW,EAAE,6BAA6B;qBAC3C;oBACD,gBAAgB,EAAE;wBAChB,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,+JAA+J;qBAClK;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,qFAAqF;qBACxF;oBACD,eAAe,EAAE;wBACf,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,8NAA8N;qBACjO;oBACD,iCAAiC,EAAE;wBACjC,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,0XAA0X;qBAC7X;iBACF;aACF;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,ibAAib;aACpb;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,oBAAoB,CAAC;KACzD;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,SAAoB,EAAE,IAAyC,EAAE,EAAE;IAC/F,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACpC,OAAO,mBAAmB,CAAC,MAAM,SAAS,CAAC,GAAG,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;AACpF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from 'conductor-node-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import Conductor from 'conductor-node';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (conductor: Conductor, args: Record<string, unknown> | undefined) => Promise<import("conductor-node-mcp/tools/types").ToolCallResult>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (conductor: Conductor, args: Record<string, unknown> | undefined) => Promise<import("conductor-node-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=list-qbd-templates.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-qbd-templates.d.mts","sourceRoot":"","sources":["../../../src/tools/qbd/templates/list-qbd-templates.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,gCAAgC;OAEvE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,WAAW,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,qEAG5F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAHuC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK7F,wBAA2C"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from 'conductor-node-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import Conductor from 'conductor-node';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (conductor: Conductor, args: Record<string, unknown> | undefined) => Promise<import("conductor-node-mcp/tools/types").ToolCallResult>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (conductor: Conductor, args: Record<string, unknown> | undefined) => Promise<import("conductor-node-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=list-qbd-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-qbd-templates.d.ts","sourceRoot":"","sources":["../../../src/tools/qbd/templates/list-qbd-templates.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,gCAAgC;OAEvE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAMtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,WAAW,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,qEAG5F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAHuC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK7F,wBAA2C"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
const filtering_1 = require("conductor-node-mcp/filtering");
|
|
6
|
+
const types_1 = require("conductor-node-mcp/tools/types");
|
|
7
|
+
exports.metadata = {
|
|
8
|
+
resource: 'qbd.templates',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
httpMethod: 'get',
|
|
12
|
+
httpPath: '/quickbooks-desktop/templates',
|
|
13
|
+
};
|
|
14
|
+
exports.tool = {
|
|
15
|
+
name: 'list_qbd_templates',
|
|
16
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nReturns a list of templates. Use the `cursor` parameter to paginate through the results.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n description: 'The array of templates.',\n items: {\n $ref: '#/$defs/template'\n }\n },\n hasMore: {\n type: 'boolean',\n description: 'Indicates whether there are more objects to be fetched.'\n },\n nextCursor: {\n type: 'string',\n description: 'The `nextCursor` is a pagination token returned in the response when you use the `limit` parameter in your request. To retrieve subsequent pages of results, include this token as the value of the `cursor` request parameter in your following API calls.\\n\\n**NOTE**: The `nextCursor` value remains constant throughout the pagination process for a specific list instance; continue to use the same `nextCursor` token in each request to fetch additional pages.'\n },\n objectType: {\n type: 'string',\n description: 'The type of object. This value is always `\"list\"`.',\n enum: [ 'list'\n ]\n },\n remainingCount: {\n type: 'number',\n description: 'The number of objects remaining to be fetched.'\n },\n url: {\n type: 'string',\n description: 'The endpoint URL where this list can be accessed.'\n }\n },\n required: [ 'data',\n 'hasMore',\n 'nextCursor',\n 'objectType',\n 'remainingCount',\n 'url'\n ],\n $defs: {\n template: {\n type: 'object',\n title: 'The Template object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier assigned by QuickBooks to this template. This ID is unique across all templates but not across different QuickBooks object types.'\n },\n createdAt: {\n type: 'string',\n description: 'The date and time when this template was created, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user\\'s time zone in QuickBooks.'\n },\n isActive: {\n type: 'boolean',\n description: 'Indicates whether this template is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.'\n },\n name: {\n type: 'string',\n description: 'The case-insensitive unique name of this template, unique across all templates.\\n\\n**NOTE**: Templates do not have a `fullName` field because they are not hierarchical objects, which is why `name` is unique for them but not for objects that have parents.'\n },\n objectType: {\n type: 'string',\n description: 'The type of object. This value is always `\"qbd_template\"`.',\n enum: [ 'qbd_template'\n ]\n },\n revisionNumber: {\n type: 'string',\n description: 'The current QuickBooks-assigned revision number of this template object, which changes each time the object is modified. When updating this object, you must provide the most recent `revisionNumber` to ensure you\\'re working with the latest data; otherwise, the update will return an error.'\n },\n templateType: {\n type: 'string',\n description: 'The type of transaction that this template is used for.',\n enum: [ 'bill_payment',\n 'build_assembly',\n 'credit_memo',\n 'estimate',\n 'invoice',\n 'payment_receipt',\n 'purchase_order',\n 'sales_order',\n 'sales_receipt'\n ]\n },\n updatedAt: {\n type: 'string',\n description: 'The date and time when this template was last updated, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user\\'s time zone in QuickBooks.'\n }\n },\n required: [ 'id',\n 'createdAt',\n 'isActive',\n 'name',\n 'objectType',\n 'revisionNumber',\n 'templateType',\n 'updatedAt'\n ]\n }\n }\n}\n```",
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: {
|
|
20
|
+
conductorEndUserId: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'The ID of the EndUser to receive this request (e.g., `"Conductor-End-User-Id: {{END_USER_ID}}"`).',
|
|
23
|
+
},
|
|
24
|
+
jq_filter: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
title: 'jq Filter',
|
|
27
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
required: ['conductorEndUserId'],
|
|
31
|
+
},
|
|
32
|
+
annotations: {
|
|
33
|
+
readOnlyHint: true,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
const handler = async (conductor, args) => {
|
|
37
|
+
const { jq_filter, ...body } = args;
|
|
38
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await conductor.qbd.templates.list(body)));
|
|
39
|
+
};
|
|
40
|
+
exports.handler = handler;
|
|
41
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
42
|
+
//# sourceMappingURL=list-qbd-templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-qbd-templates.js","sourceRoot":"","sources":["../../../src/tools/qbd/templates/list-qbd-templates.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA2D;AAC3D,0DAA+E;AAKlE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,+BAA+B;CAC1C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,suIAAsuI;IACxuI,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mGAAmG;aACtG;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,oBAAoB,CAAC;KACjC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,SAAoB,EAAE,IAAyC,EAAE,EAAE;IAC/F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { maybeFilter } from 'conductor-node-mcp/filtering';
|
|
3
|
+
import { asTextContentResult } from 'conductor-node-mcp/tools/types';
|
|
4
|
+
export const metadata = {
|
|
5
|
+
resource: 'qbd.templates',
|
|
6
|
+
operation: 'read',
|
|
7
|
+
tags: [],
|
|
8
|
+
httpMethod: 'get',
|
|
9
|
+
httpPath: '/quickbooks-desktop/templates',
|
|
10
|
+
};
|
|
11
|
+
export const tool = {
|
|
12
|
+
name: 'list_qbd_templates',
|
|
13
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nReturns a list of templates. Use the `cursor` parameter to paginate through the results.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n description: 'The array of templates.',\n items: {\n $ref: '#/$defs/template'\n }\n },\n hasMore: {\n type: 'boolean',\n description: 'Indicates whether there are more objects to be fetched.'\n },\n nextCursor: {\n type: 'string',\n description: 'The `nextCursor` is a pagination token returned in the response when you use the `limit` parameter in your request. To retrieve subsequent pages of results, include this token as the value of the `cursor` request parameter in your following API calls.\\n\\n**NOTE**: The `nextCursor` value remains constant throughout the pagination process for a specific list instance; continue to use the same `nextCursor` token in each request to fetch additional pages.'\n },\n objectType: {\n type: 'string',\n description: 'The type of object. This value is always `\"list\"`.',\n enum: [ 'list'\n ]\n },\n remainingCount: {\n type: 'number',\n description: 'The number of objects remaining to be fetched.'\n },\n url: {\n type: 'string',\n description: 'The endpoint URL where this list can be accessed.'\n }\n },\n required: [ 'data',\n 'hasMore',\n 'nextCursor',\n 'objectType',\n 'remainingCount',\n 'url'\n ],\n $defs: {\n template: {\n type: 'object',\n title: 'The Template object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier assigned by QuickBooks to this template. This ID is unique across all templates but not across different QuickBooks object types.'\n },\n createdAt: {\n type: 'string',\n description: 'The date and time when this template was created, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user\\'s time zone in QuickBooks.'\n },\n isActive: {\n type: 'boolean',\n description: 'Indicates whether this template is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.'\n },\n name: {\n type: 'string',\n description: 'The case-insensitive unique name of this template, unique across all templates.\\n\\n**NOTE**: Templates do not have a `fullName` field because they are not hierarchical objects, which is why `name` is unique for them but not for objects that have parents.'\n },\n objectType: {\n type: 'string',\n description: 'The type of object. This value is always `\"qbd_template\"`.',\n enum: [ 'qbd_template'\n ]\n },\n revisionNumber: {\n type: 'string',\n description: 'The current QuickBooks-assigned revision number of this template object, which changes each time the object is modified. When updating this object, you must provide the most recent `revisionNumber` to ensure you\\'re working with the latest data; otherwise, the update will return an error.'\n },\n templateType: {\n type: 'string',\n description: 'The type of transaction that this template is used for.',\n enum: [ 'bill_payment',\n 'build_assembly',\n 'credit_memo',\n 'estimate',\n 'invoice',\n 'payment_receipt',\n 'purchase_order',\n 'sales_order',\n 'sales_receipt'\n ]\n },\n updatedAt: {\n type: 'string',\n description: 'The date and time when this template was last updated, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user\\'s time zone in QuickBooks.'\n }\n },\n required: [ 'id',\n 'createdAt',\n 'isActive',\n 'name',\n 'objectType',\n 'revisionNumber',\n 'templateType',\n 'updatedAt'\n ]\n }\n }\n}\n```",
|
|
14
|
+
inputSchema: {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
conductorEndUserId: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
description: 'The ID of the EndUser to receive this request (e.g., `"Conductor-End-User-Id: {{END_USER_ID}}"`).',
|
|
20
|
+
},
|
|
21
|
+
jq_filter: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
title: 'jq Filter',
|
|
24
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
required: ['conductorEndUserId'],
|
|
28
|
+
},
|
|
29
|
+
annotations: {
|
|
30
|
+
readOnlyHint: true,
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
export const handler = async (conductor, args) => {
|
|
34
|
+
const { jq_filter, ...body } = args;
|
|
35
|
+
return asTextContentResult(await maybeFilter(jq_filter, await conductor.qbd.templates.list(body)));
|
|
36
|
+
};
|
|
37
|
+
export default { metadata, tool, handler };
|
|
38
|
+
//# sourceMappingURL=list-qbd-templates.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-qbd-templates.mjs","sourceRoot":"","sources":["../../../src/tools/qbd/templates/list-qbd-templates.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAY,mBAAmB,EAAE,MAAM,gCAAgC;AAK9E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,+BAA+B;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,suIAAsuI;IACxuI,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mGAAmG;aACtG;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,oBAAoB,CAAC;KACjC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,SAAoB,EAAE,IAAyC,EAAE,EAAE;IAC/F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|