@daeda/mcp-pro 0.1.21 → 0.1.22

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 (2) hide show
  1. package/dist/index.js +6 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11878,7 +11878,7 @@ var BUILT_IN_ACTION_TYPES = {
11878
11878
  description: "Set, edit, copy, or clear property values for enrolled or associated records",
11879
11879
  connectionType: "SINGLE_CONNECTION",
11880
11880
  fields: [
11881
- { name: "property_name", type: "string", required: true, description: "Internal property name to set" },
11881
+ { name: "property", type: "string", required: true, description: "Internal property name to set" },
11882
11882
  { name: "value", type: "object", required: true, description: "MUST include type: 'STATIC_VALUE' when setting a value, e.g. { type: 'STATIC_VALUE', staticValue: 'value' }. Omitting type causes HTTP 500." },
11883
11883
  { name: "association", type: "object", required: false, description: "Association spec if setting on an associated record: { associationCategory: 'HUBSPOT_DEFINED', associationTypeId: <number> }" }
11884
11884
  ]
@@ -12444,7 +12444,7 @@ var collectWorkflowAssociatedPropertyActionRefs = (actions) => actions.flatMap((
12444
12444
  if (actionTypeId !== "0-5") return [];
12445
12445
  const fields48 = isRecord(action.fields) ? action.fields : void 0;
12446
12446
  const association = isRecord(fields48?.association) ? fields48.association : void 0;
12447
- const propertyName = typeof fields48?.property_name === "string" ? fields48.property_name : void 0;
12447
+ const propertyName = typeof fields48?.property === "string" ? fields48.property : typeof fields48?.property_name === "string" ? fields48.property_name : void 0;
12448
12448
  const associationTypeId = typeof association?.associationTypeId === "number" ? association.associationTypeId : void 0;
12449
12449
  if (!propertyName || associationTypeId === void 0) return [];
12450
12450
  return [{
@@ -12718,10 +12718,9 @@ var normalizeWorkflowActionValues = (actions) => actions.map((action) => {
12718
12718
  if (!fields48) return { ...action };
12719
12719
  const actionTypeId = typeof action.actionTypeId === "string" ? action.actionTypeId : "";
12720
12720
  if (actionTypeId === "0-5") {
12721
- return {
12722
- ...action,
12723
- fields: { ...fields48, value: injectStaticValueType(fields48.value) }
12724
- };
12721
+ const { property_name, ...restFields } = fields48;
12722
+ const normalizedFields = property_name && !restFields.property ? { ...restFields, property: property_name, value: injectStaticValueType(restFields.value) } : { ...restFields, value: injectStaticValueType(restFields.value) };
12723
+ return { ...action, fields: normalizedFields };
12725
12724
  }
12726
12725
  if (actionTypeId === "0-14" && Array.isArray(fields48.properties)) {
12727
12726
  return {
@@ -12753,7 +12752,7 @@ var collectWorkflowPropertyActionRefs = (actions) => actions.flatMap((action) =>
12753
12752
  const fields48 = typeof action.fields === "object" && action.fields !== null ? action.fields : void 0;
12754
12753
  const association = typeof fields48?.association === "object" && fields48.association !== null ? fields48.association : void 0;
12755
12754
  const value = typeof fields48?.value === "object" && fields48.value !== null ? fields48.value : void 0;
12756
- const propertyName = typeof fields48?.property_name === "string" ? fields48.property_name : void 0;
12755
+ const propertyName = typeof fields48?.property === "string" ? fields48.property : typeof fields48?.property_name === "string" ? fields48.property_name : void 0;
12757
12756
  if (!propertyName) return [];
12758
12757
  return [{
12759
12758
  actionId: typeof action.actionId === "string" ? action.actionId : "<missing>",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daeda/mcp-pro",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "MCP server for HubSpot CRM — sync, query, and manage your portal data",
5
5
  "type": "module",
6
6
  "bin": {