conductor-node-mcp 12.30.0 → 12.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/code-tool.d.mts +1 -1
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +1 -1
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +40 -6
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +4 -3
- package/code-tool.mjs.map +1 -1
- package/http.d.mts +5 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts +5 -1
- package/http.d.ts.map +1 -1
- package/http.js +7 -9
- package/http.js.map +1 -1
- package/http.mjs +7 -9
- package/http.mjs.map +1 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- package/options.js +2 -2
- package/options.js.map +1 -1
- package/options.mjs +2 -2
- package/options.mjs.map +1 -1
- package/package.json +2 -2
- package/server.d.mts +1 -1
- package/server.d.mts.map +1 -1
- package/server.d.ts +1 -1
- package/server.d.ts.map +1 -1
- package/server.js +8 -8
- package/server.js.map +1 -1
- package/server.mjs +8 -8
- package/server.mjs.map +1 -1
- package/src/code-tool.ts +5 -3
- package/src/http.ts +35 -23
- package/src/index.ts +3 -3
- package/src/options.ts +2 -2
- package/src/server.ts +9 -9
- package/src/tools/index.ts +8 -0
- package/src/tools/qbd/currencies/create-qbd-currencies.ts +92 -0
- package/src/tools/qbd/currencies/list-qbd-currencies.ts +101 -0
- package/src/tools/qbd/currencies/retrieve-qbd-currencies.ts +52 -0
- package/src/tools/qbd/currencies/update-qbd-currencies.ts +101 -0
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +8 -0
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +8 -0
- package/tools/index.mjs.map +1 -1
- package/tools/qbd/currencies/create-qbd-currencies.d.mts +45 -0
- package/tools/qbd/currencies/create-qbd-currencies.d.mts.map +1 -0
- package/tools/qbd/currencies/create-qbd-currencies.d.ts +45 -0
- package/tools/qbd/currencies/create-qbd-currencies.d.ts.map +1 -0
- package/tools/qbd/currencies/create-qbd-currencies.js +78 -0
- package/tools/qbd/currencies/create-qbd-currencies.js.map +1 -0
- package/tools/qbd/currencies/create-qbd-currencies.mjs +74 -0
- package/tools/qbd/currencies/create-qbd-currencies.mjs.map +1 -0
- package/tools/qbd/currencies/list-qbd-currencies.d.mts +45 -0
- package/tools/qbd/currencies/list-qbd-currencies.d.mts.map +1 -0
- package/tools/qbd/currencies/list-qbd-currencies.d.ts +45 -0
- package/tools/qbd/currencies/list-qbd-currencies.d.ts.map +1 -0
- package/tools/qbd/currencies/list-qbd-currencies.js +87 -0
- package/tools/qbd/currencies/list-qbd-currencies.js.map +1 -0
- package/tools/qbd/currencies/list-qbd-currencies.mjs +83 -0
- package/tools/qbd/currencies/list-qbd-currencies.mjs.map +1 -0
- package/tools/qbd/currencies/retrieve-qbd-currencies.d.mts +45 -0
- package/tools/qbd/currencies/retrieve-qbd-currencies.d.mts.map +1 -0
- package/tools/qbd/currencies/retrieve-qbd-currencies.d.ts +45 -0
- package/tools/qbd/currencies/retrieve-qbd-currencies.d.ts.map +1 -0
- package/tools/qbd/currencies/retrieve-qbd-currencies.js +46 -0
- package/tools/qbd/currencies/retrieve-qbd-currencies.js.map +1 -0
- package/tools/qbd/currencies/retrieve-qbd-currencies.mjs +42 -0
- package/tools/qbd/currencies/retrieve-qbd-currencies.mjs.map +1 -0
- package/tools/qbd/currencies/update-qbd-currencies.d.mts +45 -0
- package/tools/qbd/currencies/update-qbd-currencies.d.mts.map +1 -0
- package/tools/qbd/currencies/update-qbd-currencies.d.ts +45 -0
- package/tools/qbd/currencies/update-qbd-currencies.d.ts.map +1 -0
- package/tools/qbd/currencies/update-qbd-currencies.js +86 -0
- package/tools/qbd/currencies/update-qbd-currencies.js.map +1 -0
- package/tools/qbd/currencies/update-qbd-currencies.mjs +82 -0
- package/tools/qbd/currencies/update-qbd-currencies.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=create-qbd-currencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-qbd-currencies.d.ts","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/create-qbd-currencies.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,IAoElB,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,78 @@
|
|
|
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.currencies',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
httpMethod: 'post',
|
|
12
|
+
httpPath: '/quickbooks-desktop/currencies',
|
|
13
|
+
};
|
|
14
|
+
exports.tool = {
|
|
15
|
+
name: 'create_qbd_currencies',
|
|
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\nCreates a user-defined currency with the specified name and currency code. Exchange rates for user-defined currencies are not updated automatically by QuickBooks Desktop; update them manually as needed.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/currency',\n $defs: {\n currency: {\n type: 'object',\n title: 'The Currency object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier assigned by QuickBooks to this currency. This ID is unique across all currencies but not across different QuickBooks object types.'\n },\n asOfDate: {\n type: 'string',\n description: 'The date when the exchange rate for this currency was last updated, in ISO 8601 format (YYYY-MM-DD).',\n format: 'date'\n },\n createdAt: {\n type: 'string',\n description: 'The date and time when this currency was created, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local timezone of the end-user\\'s computer.'\n },\n currencyCode: {\n type: 'string',\n description: 'The internationally accepted currency code used by this currency, typically based on the ISO 4217 standard (for example, USD for US Dollars). Built-in QuickBooks currencies follow ISO 4217. For user-defined currencies, following ISO 4217 is recommended but not required. In many cases, the three-letter code is formed from the country\\'s two-letter internet code plus a currency letter (e.g., BZ + D → BZD for Belize Dollar).'\n },\n currencyFormat: {\n type: 'object',\n title: 'The Currency Format object',\n description: 'Controls how this currency displays thousands separators, grouping, and decimal places.',\n properties: {\n decimalPlaces: {\n type: 'string',\n description: 'Controls the number of decimal places displayed for currency values. Use `0` to hide decimals or `2` to display cents.',\n enum: [ '0',\n '2'\n ]\n },\n decimalSeparator: {\n type: 'string',\n description: 'Controls the decimal separator when displaying currency values (for example, \"1.00\" vs \"1,00\"). Defaults to period.',\n enum: [ 'comma',\n 'period'\n ]\n },\n thousandSeparator: {\n type: 'string',\n description: 'Controls the thousands separator when displaying currency values (for example, \"1,000,000\"). Defaults to comma.',\n enum: [ 'apostrophe',\n 'comma',\n 'period',\n 'space'\n ]\n },\n thousandSeparatorGrouping: {\n type: 'string',\n description: 'Controls how digits are grouped for thousands when displaying currency values (for example, \"10,000,000\").',\n enum: [ 'x_xx_xx_xxx',\n 'xx_xxx_xxx'\n ]\n }\n },\n required: [ 'decimalPlaces',\n 'decimalSeparator',\n 'thousandSeparator',\n 'thousandSeparatorGrouping'\n ]\n },\n exchangeRate: {\n type: 'number',\n description: 'The market exchange rate between this currency\\'s currency and the home currency in QuickBooks at the time of this transaction. Represented as a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).'\n },\n isActive: {\n type: 'boolean',\n description: 'Indicates whether this currency is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.'\n },\n isUserDefinedCurrency: {\n type: 'boolean',\n description: 'Indicates whether this currency was created by a QuickBooks user (`true`) or is a built-in currency (`false`).'\n },\n name: {\n type: 'string',\n description: 'The case-insensitive unique name of this currency, unique across all currencies. For built-in currencies, the name is the internationally accepted currency name and is not editable.\\n\\n**NOTE**: Currencies 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_currency\"`.',\n enum: [ 'qbd_currency'\n ]\n },\n revisionNumber: {\n type: 'string',\n description: 'The current QuickBooks-assigned revision number of this currency 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 updatedAt: {\n type: 'string',\n description: 'The date and time when this currency was last updated, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local timezone of the end-user\\'s computer.'\n }\n },\n required: [ 'id',\n 'asOfDate',\n 'createdAt',\n 'currencyCode',\n 'currencyFormat',\n 'exchangeRate',\n 'isActive',\n 'isUserDefinedCurrency',\n 'name',\n 'objectType',\n 'revisionNumber',\n 'updatedAt'\n ]\n }\n }\n}\n```",
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: {
|
|
20
|
+
currencyCode: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: "The internationally accepted currency code used by this currency, typically based on the ISO 4217 standard (for example, USD for US Dollars). Built-in QuickBooks currencies follow ISO 4217. For user-defined currencies, following ISO 4217 is recommended but not required. In many cases, the three-letter code is formed from the country's two-letter internet code plus a currency letter (e.g., BZ + D → BZD for Belize Dollar).\n\nMaximum length: 3 characters.",
|
|
23
|
+
},
|
|
24
|
+
name: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'The case-insensitive unique name of this currency, unique across all currencies. For built-in currencies, the name is the internationally accepted currency name and is not editable.\n\n**NOTE**: Currencies 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\nMaximum length: 64 characters.',
|
|
27
|
+
},
|
|
28
|
+
conductorEndUserId: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'The ID of the EndUser to receive this request (e.g., `"Conductor-End-User-Id: {{END_USER_ID}}"`).',
|
|
31
|
+
},
|
|
32
|
+
currencyFormat: {
|
|
33
|
+
type: 'object',
|
|
34
|
+
description: 'Controls how this currency displays thousands separators, grouping, and decimal places.',
|
|
35
|
+
properties: {
|
|
36
|
+
decimalPlaces: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
description: 'Controls the number of decimal places displayed for currency values. Use `0` to hide decimals or `2` to display cents.',
|
|
39
|
+
enum: ['0', '2'],
|
|
40
|
+
},
|
|
41
|
+
decimalSeparator: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
description: 'Controls the decimal separator when displaying currency values (for example, "1.00" vs "1,00"). Defaults to period.',
|
|
44
|
+
enum: ['comma', 'period'],
|
|
45
|
+
},
|
|
46
|
+
thousandSeparator: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'Controls the thousands separator when displaying currency values (for example, "1,000,000"). Defaults to comma.',
|
|
49
|
+
enum: ['apostrophe', 'comma', 'period', 'space'],
|
|
50
|
+
},
|
|
51
|
+
thousandSeparatorGrouping: {
|
|
52
|
+
type: 'string',
|
|
53
|
+
description: 'Controls how digits are grouped for thousands when displaying currency values (for example, "10,000,000").',
|
|
54
|
+
enum: ['x_xx_xx_xxx', 'xx_xxx_xxx'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
isActive: {
|
|
59
|
+
type: 'boolean',
|
|
60
|
+
description: 'Indicates whether this currency is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.',
|
|
61
|
+
},
|
|
62
|
+
jq_filter: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
title: 'jq Filter',
|
|
65
|
+
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/).',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
required: ['currencyCode', 'name', 'conductorEndUserId'],
|
|
69
|
+
},
|
|
70
|
+
annotations: {},
|
|
71
|
+
};
|
|
72
|
+
const handler = async (conductor, args) => {
|
|
73
|
+
const { jq_filter, ...body } = args;
|
|
74
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await conductor.qbd.currencies.create(body)));
|
|
75
|
+
};
|
|
76
|
+
exports.handler = handler;
|
|
77
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
78
|
+
//# sourceMappingURL=create-qbd-currencies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-qbd-currencies.js","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/create-qbd-currencies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA2D;AAC3D,0DAA+E;AAKlE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,gCAAgC;CAC3C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,6zLAA6zL;IAC/zL,WAAW,EAAE;QACX,IAAI,EA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yC,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,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACxG,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,74 @@
|
|
|
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.currencies',
|
|
6
|
+
operation: 'write',
|
|
7
|
+
tags: [],
|
|
8
|
+
httpMethod: 'post',
|
|
9
|
+
httpPath: '/quickbooks-desktop/currencies',
|
|
10
|
+
};
|
|
11
|
+
export const tool = {
|
|
12
|
+
name: 'create_qbd_currencies',
|
|
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\nCreates a user-defined currency with the specified name and currency code. Exchange rates for user-defined currencies are not updated automatically by QuickBooks Desktop; update them manually as needed.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/currency',\n $defs: {\n currency: {\n type: 'object',\n title: 'The Currency object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier assigned by QuickBooks to this currency. This ID is unique across all currencies but not across different QuickBooks object types.'\n },\n asOfDate: {\n type: 'string',\n description: 'The date when the exchange rate for this currency was last updated, in ISO 8601 format (YYYY-MM-DD).',\n format: 'date'\n },\n createdAt: {\n type: 'string',\n description: 'The date and time when this currency was created, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local timezone of the end-user\\'s computer.'\n },\n currencyCode: {\n type: 'string',\n description: 'The internationally accepted currency code used by this currency, typically based on the ISO 4217 standard (for example, USD for US Dollars). Built-in QuickBooks currencies follow ISO 4217. For user-defined currencies, following ISO 4217 is recommended but not required. In many cases, the three-letter code is formed from the country\\'s two-letter internet code plus a currency letter (e.g., BZ + D → BZD for Belize Dollar).'\n },\n currencyFormat: {\n type: 'object',\n title: 'The Currency Format object',\n description: 'Controls how this currency displays thousands separators, grouping, and decimal places.',\n properties: {\n decimalPlaces: {\n type: 'string',\n description: 'Controls the number of decimal places displayed for currency values. Use `0` to hide decimals or `2` to display cents.',\n enum: [ '0',\n '2'\n ]\n },\n decimalSeparator: {\n type: 'string',\n description: 'Controls the decimal separator when displaying currency values (for example, \"1.00\" vs \"1,00\"). Defaults to period.',\n enum: [ 'comma',\n 'period'\n ]\n },\n thousandSeparator: {\n type: 'string',\n description: 'Controls the thousands separator when displaying currency values (for example, \"1,000,000\"). Defaults to comma.',\n enum: [ 'apostrophe',\n 'comma',\n 'period',\n 'space'\n ]\n },\n thousandSeparatorGrouping: {\n type: 'string',\n description: 'Controls how digits are grouped for thousands when displaying currency values (for example, \"10,000,000\").',\n enum: [ 'x_xx_xx_xxx',\n 'xx_xxx_xxx'\n ]\n }\n },\n required: [ 'decimalPlaces',\n 'decimalSeparator',\n 'thousandSeparator',\n 'thousandSeparatorGrouping'\n ]\n },\n exchangeRate: {\n type: 'number',\n description: 'The market exchange rate between this currency\\'s currency and the home currency in QuickBooks at the time of this transaction. Represented as a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).'\n },\n isActive: {\n type: 'boolean',\n description: 'Indicates whether this currency is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.'\n },\n isUserDefinedCurrency: {\n type: 'boolean',\n description: 'Indicates whether this currency was created by a QuickBooks user (`true`) or is a built-in currency (`false`).'\n },\n name: {\n type: 'string',\n description: 'The case-insensitive unique name of this currency, unique across all currencies. For built-in currencies, the name is the internationally accepted currency name and is not editable.\\n\\n**NOTE**: Currencies 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_currency\"`.',\n enum: [ 'qbd_currency'\n ]\n },\n revisionNumber: {\n type: 'string',\n description: 'The current QuickBooks-assigned revision number of this currency 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 updatedAt: {\n type: 'string',\n description: 'The date and time when this currency was last updated, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local timezone of the end-user\\'s computer.'\n }\n },\n required: [ 'id',\n 'asOfDate',\n 'createdAt',\n 'currencyCode',\n 'currencyFormat',\n 'exchangeRate',\n 'isActive',\n 'isUserDefinedCurrency',\n 'name',\n 'objectType',\n 'revisionNumber',\n 'updatedAt'\n ]\n }\n }\n}\n```",
|
|
14
|
+
inputSchema: {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
currencyCode: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
description: "The internationally accepted currency code used by this currency, typically based on the ISO 4217 standard (for example, USD for US Dollars). Built-in QuickBooks currencies follow ISO 4217. For user-defined currencies, following ISO 4217 is recommended but not required. In many cases, the three-letter code is formed from the country's two-letter internet code plus a currency letter (e.g., BZ + D → BZD for Belize Dollar).\n\nMaximum length: 3 characters.",
|
|
20
|
+
},
|
|
21
|
+
name: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'The case-insensitive unique name of this currency, unique across all currencies. For built-in currencies, the name is the internationally accepted currency name and is not editable.\n\n**NOTE**: Currencies 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\nMaximum length: 64 characters.',
|
|
24
|
+
},
|
|
25
|
+
conductorEndUserId: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
description: 'The ID of the EndUser to receive this request (e.g., `"Conductor-End-User-Id: {{END_USER_ID}}"`).',
|
|
28
|
+
},
|
|
29
|
+
currencyFormat: {
|
|
30
|
+
type: 'object',
|
|
31
|
+
description: 'Controls how this currency displays thousands separators, grouping, and decimal places.',
|
|
32
|
+
properties: {
|
|
33
|
+
decimalPlaces: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Controls the number of decimal places displayed for currency values. Use `0` to hide decimals or `2` to display cents.',
|
|
36
|
+
enum: ['0', '2'],
|
|
37
|
+
},
|
|
38
|
+
decimalSeparator: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
description: 'Controls the decimal separator when displaying currency values (for example, "1.00" vs "1,00"). Defaults to period.',
|
|
41
|
+
enum: ['comma', 'period'],
|
|
42
|
+
},
|
|
43
|
+
thousandSeparator: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'Controls the thousands separator when displaying currency values (for example, "1,000,000"). Defaults to comma.',
|
|
46
|
+
enum: ['apostrophe', 'comma', 'period', 'space'],
|
|
47
|
+
},
|
|
48
|
+
thousandSeparatorGrouping: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
description: 'Controls how digits are grouped for thousands when displaying currency values (for example, "10,000,000").',
|
|
51
|
+
enum: ['x_xx_xx_xxx', 'xx_xxx_xxx'],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
isActive: {
|
|
56
|
+
type: 'boolean',
|
|
57
|
+
description: 'Indicates whether this currency is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.',
|
|
58
|
+
},
|
|
59
|
+
jq_filter: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
title: 'jq Filter',
|
|
62
|
+
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/).',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
required: ['currencyCode', 'name', 'conductorEndUserId'],
|
|
66
|
+
},
|
|
67
|
+
annotations: {},
|
|
68
|
+
};
|
|
69
|
+
export const handler = async (conductor, args) => {
|
|
70
|
+
const { jq_filter, ...body } = args;
|
|
71
|
+
return asTextContentResult(await maybeFilter(jq_filter, await conductor.qbd.currencies.create(body)));
|
|
72
|
+
};
|
|
73
|
+
export default { metadata, tool, handler };
|
|
74
|
+
//# sourceMappingURL=create-qbd-currencies.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-qbd-currencies.mjs","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/create-qbd-currencies.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,gBAAgB;IAC1B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,gCAAgC;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,6zLAA6zL;IAC/zL,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2cAA2c;aAC9c;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yYAAyY;aAC5Y;YACD,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mGAAmG;aACtG;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yFAAyF;gBAC3F,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+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-currencies.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-qbd-currencies.d.mts","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/list-qbd-currencies.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,IA8ElB,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-currencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-qbd-currencies.d.ts","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/list-qbd-currencies.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,IA8ElB,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,87 @@
|
|
|
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.currencies',
|
|
8
|
+
operation: 'read',
|
|
9
|
+
tags: [],
|
|
10
|
+
httpMethod: 'get',
|
|
11
|
+
httpPath: '/quickbooks-desktop/currencies',
|
|
12
|
+
};
|
|
13
|
+
exports.tool = {
|
|
14
|
+
name: 'list_qbd_currencies',
|
|
15
|
+
description: 'Returns a list of currencies. NOTE: QuickBooks Desktop does not support pagination for currencies; hence, there is no `cursor` parameter. Users typically have few currencies.',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
conductorEndUserId: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'The ID of the EndUser to receive this request (e.g., `"Conductor-End-User-Id: {{END_USER_ID}}"`).',
|
|
22
|
+
},
|
|
23
|
+
ids: {
|
|
24
|
+
type: 'array',
|
|
25
|
+
description: 'Filter for specific currencies by their QuickBooks-assigned unique identifier(s).\n\n**IMPORTANT**: If you include this parameter, QuickBooks will ignore all other query parameters for this request.\n\n**NOTE**: If any of the values you specify in this parameter are not found, the request will return an error.',
|
|
26
|
+
items: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
limit: {
|
|
31
|
+
type: 'integer',
|
|
32
|
+
description: 'The maximum number of objects to return.\n\n**IMPORTANT**: QuickBooks Desktop does not support cursor-based pagination for currencies. This parameter will limit the response size, but you cannot fetch subsequent results using a cursor. For pagination, use the name-range parameters instead (e.g., `nameFrom=A&nameTo=B`).\n\nWhen this parameter is omitted, the endpoint returns all currencies without limit, unlike paginated endpoints which default to 150 records. This is acceptable because currencies typically have low record counts.',
|
|
33
|
+
},
|
|
34
|
+
nameContains: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'Filter for currencies whose `name` contains this substring, case-insensitive.\n\n**NOTE**: If you use this parameter, you cannot also use `nameStartsWith` or `nameEndsWith`.',
|
|
37
|
+
},
|
|
38
|
+
nameEndsWith: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
description: 'Filter for currencies whose `name` ends with this substring, case-insensitive.\n\n**NOTE**: If you use this parameter, you cannot also use `nameContains` or `nameStartsWith`.',
|
|
41
|
+
},
|
|
42
|
+
nameFrom: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
description: 'Filter for currencies whose `name` is alphabetically greater than or equal to this value.',
|
|
45
|
+
},
|
|
46
|
+
names: {
|
|
47
|
+
type: 'array',
|
|
48
|
+
description: 'Filter for specific currencies by their name(s), case-insensitive. Like `id`, `name` is a unique identifier for a currency.\n\n**IMPORTANT**: If you include this parameter, QuickBooks will ignore all other query parameters for this request.\n\n**NOTE**: If any of the values you specify in this parameter are not found, the request will return an error.',
|
|
49
|
+
items: {
|
|
50
|
+
type: 'string',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
nameStartsWith: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
description: 'Filter for currencies whose `name` starts with this substring, case-insensitive.\n\n**NOTE**: If you use this parameter, you cannot also use `nameContains` or `nameEndsWith`.',
|
|
56
|
+
},
|
|
57
|
+
nameTo: {
|
|
58
|
+
type: 'string',
|
|
59
|
+
description: 'Filter for currencies whose `name` is alphabetically less than or equal to this value.',
|
|
60
|
+
},
|
|
61
|
+
status: {
|
|
62
|
+
type: 'string',
|
|
63
|
+
description: 'Filter for currencies that are active, inactive, or both.',
|
|
64
|
+
enum: ['active', 'all', 'inactive'],
|
|
65
|
+
},
|
|
66
|
+
updatedAfter: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
description: "Filter for currencies updated on or after this date/time. Accepts the following ISO 8601 formats:\n- **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the **start of the specified day** in the local timezone of the end-user's computer (e.g., `2025-01-01` → `2025-01-01T00:00:00`).\n- **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop interprets the timestamp in the local timezone of the end-user's computer.\n- **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop interprets the timestamp using the specified timezone.",
|
|
69
|
+
},
|
|
70
|
+
updatedBefore: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
description: "Filter for currencies updated on or before this date/time. Accepts the following ISO 8601 formats:\n- **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the **end of the specified day** in the local timezone of the end-user's computer (e.g., `2025-01-01` → `2025-01-01T23:59:59`).\n- **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop interprets the timestamp in the local timezone of the end-user's computer.\n- **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop interprets the timestamp using the specified timezone.",
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
required: ['conductorEndUserId'],
|
|
76
|
+
},
|
|
77
|
+
annotations: {
|
|
78
|
+
readOnlyHint: true,
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
const handler = async (conductor, args) => {
|
|
82
|
+
const body = args;
|
|
83
|
+
return (0, types_1.asTextContentResult)(await conductor.qbd.currencies.list(body));
|
|
84
|
+
};
|
|
85
|
+
exports.handler = handler;
|
|
86
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
87
|
+
//# sourceMappingURL=list-qbd-currencies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-qbd-currencies.js","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/list-qbd-currencies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA+E;AAKlE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;I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kB;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2kBAA2kB;aAC9kB;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,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACxE,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,83 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { asTextContentResult } from 'conductor-node-mcp/tools/types';
|
|
3
|
+
export const metadata = {
|
|
4
|
+
resource: 'qbd.currencies',
|
|
5
|
+
operation: 'read',
|
|
6
|
+
tags: [],
|
|
7
|
+
httpMethod: 'get',
|
|
8
|
+
httpPath: '/quickbooks-desktop/currencies',
|
|
9
|
+
};
|
|
10
|
+
export const tool = {
|
|
11
|
+
name: 'list_qbd_currencies',
|
|
12
|
+
description: 'Returns a list of currencies. NOTE: QuickBooks Desktop does not support pagination for currencies; hence, there is no `cursor` parameter. Users typically have few currencies.',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
conductorEndUserId: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'The ID of the EndUser to receive this request (e.g., `"Conductor-End-User-Id: {{END_USER_ID}}"`).',
|
|
19
|
+
},
|
|
20
|
+
ids: {
|
|
21
|
+
type: 'array',
|
|
22
|
+
description: 'Filter for specific currencies by their QuickBooks-assigned unique identifier(s).\n\n**IMPORTANT**: If you include this parameter, QuickBooks will ignore all other query parameters for this request.\n\n**NOTE**: If any of the values you specify in this parameter are not found, the request will return an error.',
|
|
23
|
+
items: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
limit: {
|
|
28
|
+
type: 'integer',
|
|
29
|
+
description: 'The maximum number of objects to return.\n\n**IMPORTANT**: QuickBooks Desktop does not support cursor-based pagination for currencies. This parameter will limit the response size, but you cannot fetch subsequent results using a cursor. For pagination, use the name-range parameters instead (e.g., `nameFrom=A&nameTo=B`).\n\nWhen this parameter is omitted, the endpoint returns all currencies without limit, unlike paginated endpoints which default to 150 records. This is acceptable because currencies typically have low record counts.',
|
|
30
|
+
},
|
|
31
|
+
nameContains: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
description: 'Filter for currencies whose `name` contains this substring, case-insensitive.\n\n**NOTE**: If you use this parameter, you cannot also use `nameStartsWith` or `nameEndsWith`.',
|
|
34
|
+
},
|
|
35
|
+
nameEndsWith: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
description: 'Filter for currencies whose `name` ends with this substring, case-insensitive.\n\n**NOTE**: If you use this parameter, you cannot also use `nameContains` or `nameStartsWith`.',
|
|
38
|
+
},
|
|
39
|
+
nameFrom: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'Filter for currencies whose `name` is alphabetically greater than or equal to this value.',
|
|
42
|
+
},
|
|
43
|
+
names: {
|
|
44
|
+
type: 'array',
|
|
45
|
+
description: 'Filter for specific currencies by their name(s), case-insensitive. Like `id`, `name` is a unique identifier for a currency.\n\n**IMPORTANT**: If you include this parameter, QuickBooks will ignore all other query parameters for this request.\n\n**NOTE**: If any of the values you specify in this parameter are not found, the request will return an error.',
|
|
46
|
+
items: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
nameStartsWith: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
description: 'Filter for currencies whose `name` starts with this substring, case-insensitive.\n\n**NOTE**: If you use this parameter, you cannot also use `nameContains` or `nameEndsWith`.',
|
|
53
|
+
},
|
|
54
|
+
nameTo: {
|
|
55
|
+
type: 'string',
|
|
56
|
+
description: 'Filter for currencies whose `name` is alphabetically less than or equal to this value.',
|
|
57
|
+
},
|
|
58
|
+
status: {
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'Filter for currencies that are active, inactive, or both.',
|
|
61
|
+
enum: ['active', 'all', 'inactive'],
|
|
62
|
+
},
|
|
63
|
+
updatedAfter: {
|
|
64
|
+
type: 'string',
|
|
65
|
+
description: "Filter for currencies updated on or after this date/time. Accepts the following ISO 8601 formats:\n- **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the **start of the specified day** in the local timezone of the end-user's computer (e.g., `2025-01-01` → `2025-01-01T00:00:00`).\n- **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop interprets the timestamp in the local timezone of the end-user's computer.\n- **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop interprets the timestamp using the specified timezone.",
|
|
66
|
+
},
|
|
67
|
+
updatedBefore: {
|
|
68
|
+
type: 'string',
|
|
69
|
+
description: "Filter for currencies updated on or before this date/time. Accepts the following ISO 8601 formats:\n- **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the **end of the specified day** in the local timezone of the end-user's computer (e.g., `2025-01-01` → `2025-01-01T23:59:59`).\n- **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop interprets the timestamp in the local timezone of the end-user's computer.\n- **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop interprets the timestamp using the specified timezone.",
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
required: ['conductorEndUserId'],
|
|
73
|
+
},
|
|
74
|
+
annotations: {
|
|
75
|
+
readOnlyHint: true,
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
export const handler = async (conductor, args) => {
|
|
79
|
+
const body = args;
|
|
80
|
+
return asTextContentResult(await conductor.qbd.currencies.list(body));
|
|
81
|
+
};
|
|
82
|
+
export default { metadata, tool, handler };
|
|
83
|
+
//# sourceMappingURL=list-qbd-currencies.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-qbd-currencies.mjs","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/list-qbd-currencies.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,gCAAgC;AAK9E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gCAAgC;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,gLAAgL;IAClL,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mGAAmG;aACtG;YACD,GAAG,EAAE;gBACH,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,yTAAyT;gBAC3T,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,yhBAAyhB;aAC5hB;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,+KAA+K;aAClL;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,gLAAgL;aACnL;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2FAA2F;aAC9F;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,mWAAmW;gBACrW,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,gLAAgL;aACnL;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wFAAwF;aACtG;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2DAA2D;gBACxE,IAAI,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAC;aACpC;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,4kBAA4kB;aAC/kB;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2kBAA2kB;aAC9kB;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,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACxE,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=retrieve-qbd-currencies.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-qbd-currencies.d.mts","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/retrieve-qbd-currencies.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,IA4BlB,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=retrieve-qbd-currencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-qbd-currencies.d.ts","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/retrieve-qbd-currencies.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,IA4BlB,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"}
|