conductor-node-mcp 12.38.0 → 12.39.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 +9 -0
- package/package.json +2 -2
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/server.ts +1 -1
- package/src/tools/index.ts +6 -0
- package/src/tools/qbd/customer-types/create-qbd-customer-types.ts +61 -0
- package/src/tools/qbd/customer-types/list-qbd-customer-types.ts +109 -0
- package/src/tools/qbd/customer-types/retrieve-qbd-customer-types.ts +54 -0
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +6 -0
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +6 -0
- package/tools/index.mjs.map +1 -1
- package/tools/qbd/customer-types/create-qbd-customer-types.d.mts +45 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.d.mts.map +1 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.d.ts +45 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.d.ts.map +1 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.js +52 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.js.map +1 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.mjs +48 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.mjs.map +1 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.d.mts +45 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.d.mts.map +1 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.d.ts +45 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.d.ts.map +1 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.js +93 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.js.map +1 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.mjs +89 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.mjs.map +1 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.d.mts +45 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.d.mts.map +1 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.d.ts +45 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.d.ts.map +1 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.js +46 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.js.map +1 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.mjs +42 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.mjs.map +1 -0
|
@@ -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.customer_types',
|
|
6
|
+
operation: 'read',
|
|
7
|
+
tags: [],
|
|
8
|
+
httpMethod: 'get',
|
|
9
|
+
httpPath: '/quickbooks-desktop/customer-types/{id}',
|
|
10
|
+
};
|
|
11
|
+
export const tool = {
|
|
12
|
+
name: 'retrieve_qbd_customer_types',
|
|
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 customer type by ID.\n\n**IMPORTANT:** If you need to fetch multiple specific customer types by ID, use the list endpoint instead with the `ids` parameter. It accepts an array of IDs so you can batch the request into a single call, which is significantly faster.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/customer_type',\n $defs: {\n customer_type: {\n type: 'object',\n title: 'The Customer Type object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier assigned by QuickBooks to this customer type. This ID is unique across all customer types but not across different QuickBooks object types.'\n },\n createdAt: {\n type: 'string',\n description: 'The date and time when this customer type 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 fullName: {\n type: 'string',\n description: 'The case-insensitive fully-qualified unique name of this customer type, formed by combining the names of its hierarchical parent objects with its own `name`, separated by colons. For example, if a customer type is under \"Industry\" and has the `name` \"Healthcare\", its `fullName` would be \"Industry:Healthcare\".\\n\\n**NOTE**: Unlike `name`, `fullName` is guaranteed to be unique across all customer type objects. However, `fullName` can still be arbitrarily changed by the QuickBooks user when they modify the underlying `name` field.'\n },\n isActive: {\n type: 'boolean',\n description: 'Indicates whether this customer type is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.'\n },\n name: {\n type: 'string',\n description: 'The case-insensitive name of this customer type. Not guaranteed to be unique because it does not include the names of its hierarchical parent objects like `fullName` does. For example, two customer types could both have the `name` \"Healthcare\", but they could have unique `fullName` values, such as \"Industry:Healthcare\" and \"Region:Healthcare\".'\n },\n objectType: {\n type: 'string',\n description: 'The type of object. This value is always `\"qbd_customer_type\"`.',\n enum: [ 'qbd_customer_type'\n ]\n },\n parent: {\n type: 'object',\n description: 'The parent customer type one level above this one in the hierarchy. For example, if this customer type has a `fullName` of \"Industry:Healthcare\", its parent has a `fullName` of \"Industry\". If this customer type is at the top level, this field will be `null`.',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier assigned by QuickBooks to this object. This ID is unique across all objects of the same type, but not across different QuickBooks object types.'\n },\n fullName: {\n type: 'string',\n description: 'The fully-qualified unique name for this object, formed by combining the names of its parent objects with its own `name`, separated by colons. Not case-sensitive.'\n }\n },\n required: [ 'id',\n 'fullName'\n ]\n },\n revisionNumber: {\n type: 'string',\n description: 'The current QuickBooks-assigned revision number of this customer type 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 sublevel: {\n type: 'number',\n description: 'The depth level of this customer type in the hierarchy. A top-level customer type has a `sublevel` of 0; each subsequent sublevel increases this number by 1. For example, a customer type with a `fullName` of \"Industry:Healthcare\" would have a `sublevel` of 1.'\n },\n updatedAt: {\n type: 'string',\n description: 'The date and time when this customer type 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 'createdAt',\n 'fullName',\n 'isActive',\n 'name',\n 'objectType',\n 'parent',\n 'revisionNumber',\n 'sublevel',\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 customer type 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.customerTypes.retrieve(id, body)));
|
|
40
|
+
};
|
|
41
|
+
export default { metadata, tool, handler };
|
|
42
|
+
//# sourceMappingURL=retrieve-qbd-customer-types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-qbd-customer-types.mjs","sourceRoot":"","sources":["../../../src/tools/qbd/customer-types/retr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