conductor-node-mcp 12.30.0 → 12.31.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 +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,46 @@
|
|
|
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: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
httpMethod: 'get',
|
|
12
|
+
httpPath: '/quickbooks-desktop/currencies/{id}',
|
|
13
|
+
};
|
|
14
|
+
exports.tool = {
|
|
15
|
+
name: 'retrieve_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\nRetrieves a currency by ID.\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
|
+
id: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'The QuickBooks-assigned unique identifier of the currency to retrieve.',
|
|
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
|
+
jq_filter: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
title: 'jq Filter',
|
|
31
|
+
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/).',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
required: ['id', 'conductorEndUserId'],
|
|
35
|
+
},
|
|
36
|
+
annotations: {
|
|
37
|
+
readOnlyHint: true,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
const handler = async (conductor, args) => {
|
|
41
|
+
const { id, jq_filter, ...body } = args;
|
|
42
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await conductor.qbd.currencies.retrieve(id, body)));
|
|
43
|
+
};
|
|
44
|
+
exports.handler = handler;
|
|
45
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
46
|
+
//# sourceMappingURL=retrieve-qbd-currencies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-qbd-currencies.js","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/retrieve-qbd-currencies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA2D;AAC3D,0DAA+E;AAKlE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qCAAqC;CAChD,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,8oLAA8oL;IAChpL,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wEAAwE;aACtF;YACD,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,IAAI,EAAE,oBAAoB,CAAC;KACvC;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,EAAE,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC/C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AAC9G,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,42 @@
|
|
|
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: 'read',
|
|
7
|
+
tags: [],
|
|
8
|
+
httpMethod: 'get',
|
|
9
|
+
httpPath: '/quickbooks-desktop/currencies/{id}',
|
|
10
|
+
};
|
|
11
|
+
export const tool = {
|
|
12
|
+
name: 'retrieve_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\nRetrieves a currency by ID.\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
|
+
id: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
description: 'The QuickBooks-assigned unique identifier of the currency to retrieve.',
|
|
20
|
+
},
|
|
21
|
+
conductorEndUserId: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'The ID of the EndUser to receive this request (e.g., `"Conductor-End-User-Id: {{END_USER_ID}}"`).',
|
|
24
|
+
},
|
|
25
|
+
jq_filter: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
title: 'jq Filter',
|
|
28
|
+
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/).',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
required: ['id', 'conductorEndUserId'],
|
|
32
|
+
},
|
|
33
|
+
annotations: {
|
|
34
|
+
readOnlyHint: true,
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
export const handler = async (conductor, args) => {
|
|
38
|
+
const { id, jq_filter, ...body } = args;
|
|
39
|
+
return asTextContentResult(await maybeFilter(jq_filter, await conductor.qbd.currencies.retrieve(id, body)));
|
|
40
|
+
};
|
|
41
|
+
export default { metadata, tool, handler };
|
|
42
|
+
//# sourceMappingURL=retrieve-qbd-currencies.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-qbd-currencies.mjs","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/retrieve-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,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qCAAqC;CAChD,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,8oLAA8oL;IAChpL,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wEAAwE;aACtF;YACD,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,IAAI,EAAE,oBAAoB,CAAC;KACvC;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,EAAE,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC/C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AAC9G,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=update-qbd-currencies.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-qbd-currencies.d.mts","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/update-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,IA6ElB,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-currencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-qbd-currencies.d.ts","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/update-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,IA6ElB,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,86 @@
|
|
|
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/{id}',
|
|
13
|
+
};
|
|
14
|
+
exports.tool = {
|
|
15
|
+
name: 'update_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\nUpdates an existing currency. For built-in currencies, only the `isActive` status can be changed; name and currency code are not editable. For user-defined currencies, all fields in this request are editable.\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
|
+
id: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'The QuickBooks-assigned unique identifier of the currency to update.',
|
|
23
|
+
},
|
|
24
|
+
revisionNumber: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: "The current QuickBooks-assigned revision number of the currency 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.",
|
|
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
|
+
currencyCode: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
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.",
|
|
35
|
+
},
|
|
36
|
+
currencyFormat: {
|
|
37
|
+
type: 'object',
|
|
38
|
+
description: 'Controls how this currency displays thousands separators, grouping, and decimal places.',
|
|
39
|
+
properties: {
|
|
40
|
+
decimalPlaces: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
description: 'Controls the number of decimal places displayed for currency values. Use `0` to hide decimals or `2` to display cents.',
|
|
43
|
+
enum: ['0', '2'],
|
|
44
|
+
},
|
|
45
|
+
decimalSeparator: {
|
|
46
|
+
type: 'string',
|
|
47
|
+
description: 'Controls the decimal separator when displaying currency values (for example, "1.00" vs "1,00"). Defaults to period.',
|
|
48
|
+
enum: ['comma', 'period'],
|
|
49
|
+
},
|
|
50
|
+
thousandSeparator: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
description: 'Controls the thousands separator when displaying currency values (for example, "1,000,000"). Defaults to comma.',
|
|
53
|
+
enum: ['apostrophe', 'comma', 'period', 'space'],
|
|
54
|
+
},
|
|
55
|
+
thousandSeparatorGrouping: {
|
|
56
|
+
type: 'string',
|
|
57
|
+
description: 'Controls how digits are grouped for thousands when displaying currency values (for example, "10,000,000").',
|
|
58
|
+
enum: ['x_xx_xx_xxx', 'xx_xxx_xxx'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
isActive: {
|
|
63
|
+
type: 'boolean',
|
|
64
|
+
description: 'Indicates whether this currency is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.',
|
|
65
|
+
},
|
|
66
|
+
name: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
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.',
|
|
69
|
+
},
|
|
70
|
+
jq_filter: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
title: 'jq Filter',
|
|
73
|
+
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/).',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
required: ['id', 'revisionNumber', 'conductorEndUserId'],
|
|
77
|
+
},
|
|
78
|
+
annotations: {},
|
|
79
|
+
};
|
|
80
|
+
const handler = async (conductor, args) => {
|
|
81
|
+
const { id, jq_filter, ...body } = args;
|
|
82
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await conductor.qbd.currencies.update(id, body)));
|
|
83
|
+
};
|
|
84
|
+
exports.handler = handler;
|
|
85
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
86
|
+
//# sourceMappingURL=update-qbd-currencies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-qbd-currencies.js","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/update-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,qCAAqC;CAChD,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,m0LAAm0L;IACr0L,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sEAAsE;aACpF;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,8QAA8Q;aACjR;YACD,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mGAAmG;aACtG;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2cAA2c;aAC9c;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yFAAyF;gBAC3F,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,wHAAwH;wBAC1H,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;qBACjB;oBACD,gBAAgB,EAAE;wBAChB,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,qHAAqH;wBACvH,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;qBAC1B;oBACD,iBAAiB,EAAE;wBACjB,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,iHAAiH;wBACnH,IAAI,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;qBACjD;oBACD,yBAAyB,EAAE;wBACzB,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,4GAA4G;wBAC9G,IAAI,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;qBACpC;iBACF;aACF;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,4IAA4I;aAC/I;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yYAAyY;aAC5Y;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,oBAAoB,CAAC;KACzD;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,SAAoB,EAAE,IAAyC,EAAE,EAAE;IAC/F,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC/C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AAC5G,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,82 @@
|
|
|
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/{id}',
|
|
10
|
+
};
|
|
11
|
+
export const tool = {
|
|
12
|
+
name: 'update_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\nUpdates an existing currency. For built-in currencies, only the `isActive` status can be changed; name and currency code are not editable. For user-defined currencies, all fields in this request are editable.\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
|
+
id: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
description: 'The QuickBooks-assigned unique identifier of the currency to update.',
|
|
20
|
+
},
|
|
21
|
+
revisionNumber: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: "The current QuickBooks-assigned revision number of the currency 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.",
|
|
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
|
+
currencyCode: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
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.",
|
|
32
|
+
},
|
|
33
|
+
currencyFormat: {
|
|
34
|
+
type: 'object',
|
|
35
|
+
description: 'Controls how this currency displays thousands separators, grouping, and decimal places.',
|
|
36
|
+
properties: {
|
|
37
|
+
decimalPlaces: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
description: 'Controls the number of decimal places displayed for currency values. Use `0` to hide decimals or `2` to display cents.',
|
|
40
|
+
enum: ['0', '2'],
|
|
41
|
+
},
|
|
42
|
+
decimalSeparator: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
description: 'Controls the decimal separator when displaying currency values (for example, "1.00" vs "1,00"). Defaults to period.',
|
|
45
|
+
enum: ['comma', 'period'],
|
|
46
|
+
},
|
|
47
|
+
thousandSeparator: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
description: 'Controls the thousands separator when displaying currency values (for example, "1,000,000"). Defaults to comma.',
|
|
50
|
+
enum: ['apostrophe', 'comma', 'period', 'space'],
|
|
51
|
+
},
|
|
52
|
+
thousandSeparatorGrouping: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
description: 'Controls how digits are grouped for thousands when displaying currency values (for example, "10,000,000").',
|
|
55
|
+
enum: ['x_xx_xx_xxx', 'xx_xxx_xxx'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
isActive: {
|
|
60
|
+
type: 'boolean',
|
|
61
|
+
description: 'Indicates whether this currency is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.',
|
|
62
|
+
},
|
|
63
|
+
name: {
|
|
64
|
+
type: 'string',
|
|
65
|
+
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.',
|
|
66
|
+
},
|
|
67
|
+
jq_filter: {
|
|
68
|
+
type: 'string',
|
|
69
|
+
title: 'jq Filter',
|
|
70
|
+
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/).',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
required: ['id', 'revisionNumber', 'conductorEndUserId'],
|
|
74
|
+
},
|
|
75
|
+
annotations: {},
|
|
76
|
+
};
|
|
77
|
+
export const handler = async (conductor, args) => {
|
|
78
|
+
const { id, jq_filter, ...body } = args;
|
|
79
|
+
return asTextContentResult(await maybeFilter(jq_filter, await conductor.qbd.currencies.update(id, body)));
|
|
80
|
+
};
|
|
81
|
+
export default { metadata, tool, handler };
|
|
82
|
+
//# sourceMappingURL=update-qbd-currencies.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-qbd-currencies.mjs","sourceRoot":"","sources":["../../../src/tools/qbd/currencies/update-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,qCAAqC;CAChD,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,m0LAAm0L;IACr0L,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sEAAsE;aACpF;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,8QAA8Q;aACjR;YACD,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mGAAmG;aACtG;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2cAA2c;aAC9c;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yFAAyF;gBAC3F,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,wHAAwH;wBAC1H,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;qBACjB;oBACD,gBAAgB,EAAE;wBAChB,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,qHAAqH;wBACvH,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;qBAC1B;oBACD,iBAAiB,EAAE;wBACjB,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,iHAAiH;wBACnH,IAAI,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;qBACjD;oBACD,yBAAyB,EAAE;wBACzB,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,4GAA4G;wBAC9G,IAAI,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;qBACpC;iBACF;aACF;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,4IAA4I;aAC/I;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yYAAyY;aAC5Y;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;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,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC/C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AAC5G,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|