conductor-node-mcp 12.24.0 → 12.26.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.
Files changed (76) hide show
  1. package/README.md +28 -4
  2. package/compat.d.mts +3 -1
  3. package/compat.d.mts.map +1 -1
  4. package/compat.d.ts +3 -1
  5. package/compat.d.ts.map +1 -1
  6. package/compat.js +3 -1
  7. package/compat.js.map +1 -1
  8. package/compat.mjs +2 -0
  9. package/compat.mjs.map +1 -1
  10. package/headers.js +1 -1
  11. package/headers.js.map +1 -1
  12. package/headers.mjs +1 -1
  13. package/headers.mjs.map +1 -1
  14. package/http.d.mts.map +1 -1
  15. package/http.d.ts.map +1 -1
  16. package/http.js +18 -1
  17. package/http.js.map +1 -1
  18. package/http.mjs +18 -1
  19. package/http.mjs.map +1 -1
  20. package/index.js +1 -1
  21. package/index.js.map +1 -1
  22. package/index.mjs +2 -2
  23. package/index.mjs.map +1 -1
  24. package/options.d.mts +2 -1
  25. package/options.d.mts.map +1 -1
  26. package/options.d.ts +2 -1
  27. package/options.d.ts.map +1 -1
  28. package/options.js +112 -2
  29. package/options.js.map +1 -1
  30. package/options.mjs +111 -2
  31. package/options.mjs.map +1 -1
  32. package/package.json +6 -4
  33. package/server.js +4 -2
  34. package/server.js.map +1 -1
  35. package/server.mjs +2 -1
  36. package/server.mjs.map +1 -1
  37. package/src/compat.ts +3 -1
  38. package/src/headers.ts +1 -1
  39. package/src/http.ts +23 -2
  40. package/src/index.ts +2 -2
  41. package/src/options.ts +120 -1
  42. package/src/server.ts +1 -1
  43. package/src/tools/index.ts +6 -0
  44. package/src/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.ts +120 -0
  45. package/src/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.ts +102 -0
  46. package/src/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.ts +54 -0
  47. package/tools/index.d.mts.map +1 -1
  48. package/tools/index.d.ts.map +1 -1
  49. package/tools/index.js +6 -0
  50. package/tools/index.js.map +1 -1
  51. package/tools/index.mjs +6 -0
  52. package/tools/index.mjs.map +1 -1
  53. package/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.d.mts +45 -0
  54. package/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.d.mts.map +1 -0
  55. package/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.d.ts +45 -0
  56. package/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.d.ts.map +1 -0
  57. package/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.js +103 -0
  58. package/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.js.map +1 -0
  59. package/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.mjs +99 -0
  60. package/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.mjs.map +1 -0
  61. package/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.d.mts +45 -0
  62. package/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.d.mts.map +1 -0
  63. package/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.d.ts +45 -0
  64. package/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.d.ts.map +1 -0
  65. package/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.js +87 -0
  66. package/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.js.map +1 -0
  67. package/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.mjs +83 -0
  68. package/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.mjs.map +1 -0
  69. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.d.mts +45 -0
  70. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.d.mts.map +1 -0
  71. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.d.ts +45 -0
  72. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.d.ts.map +1 -0
  73. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.js +46 -0
  74. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.js.map +1 -0
  75. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.mjs +42 -0
  76. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.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-unit-of-measure-sets.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-qbd-unit-of-measure-sets.d.mts","sourceRoot":"","sources":["../../../src/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.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,IAiGlB,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=create-qbd-unit-of-measure-sets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-qbd-unit-of-measure-sets.d.ts","sourceRoot":"","sources":["../../../src/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.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,IAiGlB,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,103 @@
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.unit_of_measure_sets',
8
+ operation: 'write',
9
+ tags: [],
10
+ httpMethod: 'post',
11
+ httpPath: '/quickbooks-desktop/unit-of-measure-sets',
12
+ };
13
+ exports.tool = {
14
+ name: 'create_qbd_unit_of_measure_sets',
15
+ description: 'Creates a new unit-of-measure set.\n\nNOTE: The QuickBooks company file must have unit-of-measure enabled (either a single unit per item or multiple units per item). To support both configurations, prefix all UOM set names with "By the" (for example, "By the Barrel"); otherwise, the set may not appear in the QuickBooks UI when the company file is configured for a single unit per item.',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ baseUnit: {
20
+ type: 'object',
21
+ description: "The unit-of-measure set's base unit used to track and price item quantities. If the company file is enabled for a single unit of measure per item, the base unit is the only unit available on transaction line items. If enabled for multiple units per item, the base unit is the default unless overridden by the set's default units.",
22
+ properties: {
23
+ abbreviation: {
24
+ type: 'string',
25
+ description: "The base unit's short identifier shown in the QuickBooks U/M field on transaction line items.\n\nMaximum length: 31 characters.",
26
+ },
27
+ name: {
28
+ type: 'string',
29
+ description: 'The case-insensitive unique name of this base unit, unique across all base units.\n\n**NOTE**: Base units 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: 31 characters.',
30
+ },
31
+ },
32
+ required: ['abbreviation', 'name'],
33
+ },
34
+ name: {
35
+ type: 'string',
36
+ description: 'The case-insensitive unique name of this unit-of-measure set, unique across all unit-of-measure sets. To ensure this set appears in the QuickBooks UI for companies configured with a single unit per item, prefix the name with "By the" (e.g., "By the Barrel").\n\n**NOTE**: Unit-of-measure sets 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: 31 characters.',
37
+ },
38
+ unitOfMeasureType: {
39
+ type: 'string',
40
+ description: 'The unit-of-measure set\'s type. Use "other" for a custom type defined in QuickBooks.',
41
+ enum: ['area', 'count', 'length', 'other', 'time', 'volume', 'weight'],
42
+ },
43
+ conductorEndUserId: {
44
+ type: 'string',
45
+ description: 'The ID of the EndUser to receive this request (e.g., `"Conductor-End-User-Id: {{END_USER_ID}}"`).',
46
+ },
47
+ defaultUnits: {
48
+ type: 'array',
49
+ description: "The unit-of-measure set's default units to appear in the U/M field on transaction line items. You can specify separate defaults for purchases, sales, and shipping.",
50
+ items: {
51
+ type: 'object',
52
+ properties: {
53
+ unit: {
54
+ type: 'string',
55
+ description: 'The unit name for this default unit, as displayed in the U/M field. If the company file is enabled for multiple units per item, this appears as an available unit for the item. Must correspond to the base unit or a related unit defined in this set.\n\nMaximum length: 31 characters.',
56
+ },
57
+ unitUsedFor: {
58
+ type: 'string',
59
+ description: 'Where this default unit is used as the default: purchase line items, sales line items, or shipping lines.',
60
+ enum: ['purchase', 'sales', 'shipping'],
61
+ },
62
+ },
63
+ required: ['unit', 'unitUsedFor'],
64
+ },
65
+ },
66
+ isActive: {
67
+ type: 'boolean',
68
+ description: 'Indicates whether this unit-of-measure set is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.',
69
+ },
70
+ relatedUnits: {
71
+ type: 'array',
72
+ description: "The unit-of-measure set's related units, each specifying how many base units they represent (conversion ratio).",
73
+ items: {
74
+ type: 'object',
75
+ properties: {
76
+ abbreviation: {
77
+ type: 'string',
78
+ description: "The related unit's short identifier shown in the QuickBooks U/M field on transaction line items.\n\nMaximum length: 31 characters.",
79
+ },
80
+ conversionRatio: {
81
+ type: 'string',
82
+ description: 'The number of base units in this related unit, represented as a decimal string. For example, if the base unit is "box" and this related unit is "case" with `conversionRatio` = "10", that means there are 10 boxes in one case.',
83
+ },
84
+ name: {
85
+ type: 'string',
86
+ description: 'The case-insensitive unique name of this related unit, unique across all related units.\n\n**NOTE**: Related units 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: 31 characters.',
87
+ },
88
+ },
89
+ required: ['abbreviation', 'conversionRatio', 'name'],
90
+ },
91
+ },
92
+ },
93
+ required: ['baseUnit', 'name', 'unitOfMeasureType', 'conductorEndUserId'],
94
+ },
95
+ annotations: {},
96
+ };
97
+ const handler = async (conductor, args) => {
98
+ const body = args;
99
+ return (0, types_1.asTextContentResult)(await conductor.qbd.unitOfMeasureSets.create(body));
100
+ };
101
+ exports.handler = handler;
102
+ exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
103
+ //# sourceMappingURL=create-qbd-unit-of-measure-sets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-qbd-unit-of-measure-sets.js","sourceRoot":"","sources":["../../../src/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA+E;AAKlE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,0CAA0C;CACrD,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,iCAAiC;IACvC,WAAW,EACT,qYAAqY;IACvY,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2UAA2U;gBAC7U,UAAU,EAAE;oBACV,YAAY,EAAE;wBACZ,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,iIAAiI;qBACpI;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,qSAAqS;qBACxS;iBACF;gBACD,QAAQ,EAAE,CAAC,cAAc,EAAE,MAAM,CAAC;aACnC;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,geAAge;aACne;YACD,iBAAiB,EAAE;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uFAAuF;gBACpG,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC;aACvE;YACD,kBAAkB,EAAE;gBAClB,IAAI,EAA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C,MAAM,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACjF,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,99 @@
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.unit_of_measure_sets',
5
+ operation: 'write',
6
+ tags: [],
7
+ httpMethod: 'post',
8
+ httpPath: '/quickbooks-desktop/unit-of-measure-sets',
9
+ };
10
+ export const tool = {
11
+ name: 'create_qbd_unit_of_measure_sets',
12
+ description: 'Creates a new unit-of-measure set.\n\nNOTE: The QuickBooks company file must have unit-of-measure enabled (either a single unit per item or multiple units per item). To support both configurations, prefix all UOM set names with "By the" (for example, "By the Barrel"); otherwise, the set may not appear in the QuickBooks UI when the company file is configured for a single unit per item.',
13
+ inputSchema: {
14
+ type: 'object',
15
+ properties: {
16
+ baseUnit: {
17
+ type: 'object',
18
+ description: "The unit-of-measure set's base unit used to track and price item quantities. If the company file is enabled for a single unit of measure per item, the base unit is the only unit available on transaction line items. If enabled for multiple units per item, the base unit is the default unless overridden by the set's default units.",
19
+ properties: {
20
+ abbreviation: {
21
+ type: 'string',
22
+ description: "The base unit's short identifier shown in the QuickBooks U/M field on transaction line items.\n\nMaximum length: 31 characters.",
23
+ },
24
+ name: {
25
+ type: 'string',
26
+ description: 'The case-insensitive unique name of this base unit, unique across all base units.\n\n**NOTE**: Base units 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: 31 characters.',
27
+ },
28
+ },
29
+ required: ['abbreviation', 'name'],
30
+ },
31
+ name: {
32
+ type: 'string',
33
+ description: 'The case-insensitive unique name of this unit-of-measure set, unique across all unit-of-measure sets. To ensure this set appears in the QuickBooks UI for companies configured with a single unit per item, prefix the name with "By the" (e.g., "By the Barrel").\n\n**NOTE**: Unit-of-measure sets 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: 31 characters.',
34
+ },
35
+ unitOfMeasureType: {
36
+ type: 'string',
37
+ description: 'The unit-of-measure set\'s type. Use "other" for a custom type defined in QuickBooks.',
38
+ enum: ['area', 'count', 'length', 'other', 'time', 'volume', 'weight'],
39
+ },
40
+ conductorEndUserId: {
41
+ type: 'string',
42
+ description: 'The ID of the EndUser to receive this request (e.g., `"Conductor-End-User-Id: {{END_USER_ID}}"`).',
43
+ },
44
+ defaultUnits: {
45
+ type: 'array',
46
+ description: "The unit-of-measure set's default units to appear in the U/M field on transaction line items. You can specify separate defaults for purchases, sales, and shipping.",
47
+ items: {
48
+ type: 'object',
49
+ properties: {
50
+ unit: {
51
+ type: 'string',
52
+ description: 'The unit name for this default unit, as displayed in the U/M field. If the company file is enabled for multiple units per item, this appears as an available unit for the item. Must correspond to the base unit or a related unit defined in this set.\n\nMaximum length: 31 characters.',
53
+ },
54
+ unitUsedFor: {
55
+ type: 'string',
56
+ description: 'Where this default unit is used as the default: purchase line items, sales line items, or shipping lines.',
57
+ enum: ['purchase', 'sales', 'shipping'],
58
+ },
59
+ },
60
+ required: ['unit', 'unitUsedFor'],
61
+ },
62
+ },
63
+ isActive: {
64
+ type: 'boolean',
65
+ description: 'Indicates whether this unit-of-measure set is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.',
66
+ },
67
+ relatedUnits: {
68
+ type: 'array',
69
+ description: "The unit-of-measure set's related units, each specifying how many base units they represent (conversion ratio).",
70
+ items: {
71
+ type: 'object',
72
+ properties: {
73
+ abbreviation: {
74
+ type: 'string',
75
+ description: "The related unit's short identifier shown in the QuickBooks U/M field on transaction line items.\n\nMaximum length: 31 characters.",
76
+ },
77
+ conversionRatio: {
78
+ type: 'string',
79
+ description: 'The number of base units in this related unit, represented as a decimal string. For example, if the base unit is "box" and this related unit is "case" with `conversionRatio` = "10", that means there are 10 boxes in one case.',
80
+ },
81
+ name: {
82
+ type: 'string',
83
+ description: 'The case-insensitive unique name of this related unit, unique across all related units.\n\n**NOTE**: Related units 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: 31 characters.',
84
+ },
85
+ },
86
+ required: ['abbreviation', 'conversionRatio', 'name'],
87
+ },
88
+ },
89
+ },
90
+ required: ['baseUnit', 'name', 'unitOfMeasureType', 'conductorEndUserId'],
91
+ },
92
+ annotations: {},
93
+ };
94
+ export const handler = async (conductor, args) => {
95
+ const body = args;
96
+ return asTextContentResult(await conductor.qbd.unitOfMeasureSets.create(body));
97
+ };
98
+ export default { metadata, tool, handler };
99
+ //# sourceMappingURL=create-qbd-unit-of-measure-sets.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-qbd-unit-of-measure-sets.mjs","sourceRoot":"","sources":["../../../src/tools/qbd/unit-of-measure-sets/create-qbd-unit-of-measure-sets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,gCAAgC;AAK9E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,0CAA0C;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iCAAiC;IACvC,WAAW,EACT,qYAAqY;IACvY,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2UAA2U;gBAC7U,UAAU,EAAE;oBACV,YAAY,EAAE;wBACZ,IAAI,EAAE,QAAQ;wBACd,WAAW,E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AQ;4BACd,WAAW,EACT,kOAAkO;yBACrO;wBACD,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,8SAA8S;yBACjT;qBACF;oBACD,QAAQ,EAAE,CAAC,cAAc,EAAE,iBAAiB,EAAE,MAAM,CAAC;iBACtD;aACF;SACF;QACD,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,mBAAmB,EAAE,oBAAoB,CAAC;KAC1E;IACD,WAAW,EAAE,EAAE;CAChB,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,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACjF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { Metadata } from 'conductor-node-mcp/tools/types';
2
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
+ import Conductor from 'conductor-node';
4
+ export declare const metadata: Metadata;
5
+ export declare const tool: Tool;
6
+ export declare const handler: (conductor: Conductor, args: Record<string, unknown> | undefined) => Promise<import("conductor-node-mcp/tools/types").ToolCallResult>;
7
+ declare const _default: {
8
+ metadata: Metadata;
9
+ tool: {
10
+ [x: string]: unknown;
11
+ name: string;
12
+ inputSchema: {
13
+ [x: string]: unknown;
14
+ type: "object";
15
+ properties?: {
16
+ [x: string]: unknown;
17
+ } | undefined;
18
+ required?: string[] | undefined;
19
+ };
20
+ title?: string | undefined;
21
+ description?: string | undefined;
22
+ outputSchema?: {
23
+ [x: string]: unknown;
24
+ type: "object";
25
+ properties?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
28
+ required?: string[] | undefined;
29
+ } | undefined;
30
+ annotations?: {
31
+ [x: string]: unknown;
32
+ title?: string | undefined;
33
+ readOnlyHint?: boolean | undefined;
34
+ destructiveHint?: boolean | undefined;
35
+ idempotentHint?: boolean | undefined;
36
+ openWorldHint?: boolean | undefined;
37
+ } | undefined;
38
+ _meta?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ };
42
+ handler: (conductor: Conductor, args: Record<string, unknown> | undefined) => Promise<import("conductor-node-mcp/tools/types").ToolCallResult>;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=list-qbd-unit-of-measure-sets.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-qbd-unit-of-measure-sets.d.mts","sourceRoot":"","sources":["../../../src/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.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,IA+ElB,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-unit-of-measure-sets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-qbd-unit-of-measure-sets.d.ts","sourceRoot":"","sources":["../../../src/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.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,IA+ElB,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.unit_of_measure_sets',
8
+ operation: 'read',
9
+ tags: [],
10
+ httpMethod: 'get',
11
+ httpPath: '/quickbooks-desktop/unit-of-measure-sets',
12
+ };
13
+ exports.tool = {
14
+ name: 'list_qbd_unit_of_measure_sets',
15
+ description: 'Lists all unit-of-measure sets. NOTE: QuickBooks Desktop does not support pagination for unit-of-measure sets; hence, there is no cursor parameter. Users typically have few unit-of-measure sets.\n\nNOTE: The QuickBooks company file must have unit-of-measure enabled (either a single unit per item or multiple units per item).',
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 unit-of-measure sets 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 unit-of-measure sets. 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 unit-of-measure sets without limit, unlike paginated endpoints which default to 150 records. This is acceptable because unit-of-measure sets typically have low record counts.',
33
+ },
34
+ nameContains: {
35
+ type: 'string',
36
+ description: 'Filter for unit-of-measure sets 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 unit-of-measure sets 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 unit-of-measure sets whose `name` is alphabetically greater than or equal to this value.',
45
+ },
46
+ names: {
47
+ type: 'array',
48
+ description: 'Filter for specific unit-of-measure sets by their name(s), case-insensitive. Like `id`, `name` is a unique identifier for an unit-of-measure set.\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 unit-of-measure sets 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 unit-of-measure sets whose `name` is alphabetically less than or equal to this value.',
60
+ },
61
+ status: {
62
+ type: 'string',
63
+ description: 'Filter for unit-of-measure sets that are active, inactive, or both.',
64
+ enum: ['active', 'all', 'inactive'],
65
+ },
66
+ updatedAfter: {
67
+ type: 'string',
68
+ description: 'Filter for unit-of-measure sets updated on or after this date and time, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD), the time is assumed to be 00:00:00 of that day.',
69
+ },
70
+ updatedBefore: {
71
+ type: 'string',
72
+ description: 'Filter for unit-of-measure sets updated on or before this date and time, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD), the time is assumed to be 23:59:59 of that day.',
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.unitOfMeasureSets.list(body));
84
+ };
85
+ exports.handler = handler;
86
+ exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
87
+ //# sourceMappingURL=list-qbd-unit-of-measure-sets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-qbd-unit-of-measure-sets.js","sourceRoot":"","sources":["../../../src/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA+E;AAKlE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,0BAA0B;IACpC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,0CAA0C;CACrD,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,uUAAuU;IACzU,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,mUAAmU;gBACrU,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,ujBAAujB;aAC1jB;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yLAAyL;aAC5L;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0LAA0L;aAC7L;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,qGAAqG;aACxG;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,yXAAyX;gBAC3X,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0LAA0L;aAC7L;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,kGAAkG;aACrG;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qEAAqE;gBAClF,IAAI,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAC;aACpC;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,4MAA4M;aAC/M;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,6MAA6M;aAChN;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,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/E,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.unit_of_measure_sets',
5
+ operation: 'read',
6
+ tags: [],
7
+ httpMethod: 'get',
8
+ httpPath: '/quickbooks-desktop/unit-of-measure-sets',
9
+ };
10
+ export const tool = {
11
+ name: 'list_qbd_unit_of_measure_sets',
12
+ description: 'Lists all unit-of-measure sets. NOTE: QuickBooks Desktop does not support pagination for unit-of-measure sets; hence, there is no cursor parameter. Users typically have few unit-of-measure sets.\n\nNOTE: The QuickBooks company file must have unit-of-measure enabled (either a single unit per item or multiple units per item).',
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 unit-of-measure sets 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 unit-of-measure sets. 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 unit-of-measure sets without limit, unlike paginated endpoints which default to 150 records. This is acceptable because unit-of-measure sets typically have low record counts.',
30
+ },
31
+ nameContains: {
32
+ type: 'string',
33
+ description: 'Filter for unit-of-measure sets 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 unit-of-measure sets 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 unit-of-measure sets whose `name` is alphabetically greater than or equal to this value.',
42
+ },
43
+ names: {
44
+ type: 'array',
45
+ description: 'Filter for specific unit-of-measure sets by their name(s), case-insensitive. Like `id`, `name` is a unique identifier for an unit-of-measure set.\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 unit-of-measure sets 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 unit-of-measure sets whose `name` is alphabetically less than or equal to this value.',
57
+ },
58
+ status: {
59
+ type: 'string',
60
+ description: 'Filter for unit-of-measure sets that are active, inactive, or both.',
61
+ enum: ['active', 'all', 'inactive'],
62
+ },
63
+ updatedAfter: {
64
+ type: 'string',
65
+ description: 'Filter for unit-of-measure sets updated on or after this date and time, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD), the time is assumed to be 00:00:00 of that day.',
66
+ },
67
+ updatedBefore: {
68
+ type: 'string',
69
+ description: 'Filter for unit-of-measure sets updated on or before this date and time, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD), the time is assumed to be 23:59:59 of that day.',
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.unitOfMeasureSets.list(body));
81
+ };
82
+ export default { metadata, tool, handler };
83
+ //# sourceMappingURL=list-qbd-unit-of-measure-sets.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-qbd-unit-of-measure-sets.mjs","sourceRoot":"","sources":["../../../src/tools/qbd/unit-of-measure-sets/list-qbd-unit-of-measure-sets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,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