← Files Zuora Coding AgentARCHIVED FILE

references/meter-operators/MAP.json

1.6 KB · Oct 2, 2026 · 00:30 UTC

↓ Download file

{
  "key": "MAP",
  "nodeType": "PROCESSOR",
  "operatorType": "MAP",
  "metadata": {
    "excludedFields": [],
    "mapFields": [
      {
        "sourceField": null,
        "targetField": null,
        "transformType": "direct",
        "formula": null,
        "targetType": "string"
      }
    ]
  },
  "label": "Map",
  "hints": {
    "mapFields[].transformType": "direct | transform",
    "mapFields[].targetType": "string | number | boolean | datetime | object | array — if an EventSchema is available (from call_mediation_api), use the schema field type; do not guess"
  },
  "assumptions": [
    {
      "path": "mapFields[0].transformType",
      "value": "direct",
      "reason": "Direct field copy is the most common mapping operation.",
      "confidence": 0.85
    },
    {
      "path": "mapFields[0].targetType",
      "value": "string",
      "reason": "String is the default output type; change if numeric operations are needed downstream.",
      "confidence": 0.8
    }
  ],
  "blockers": [
    {
      "path": "mapFields[0].sourceField",
      "message": "MAP sourceField is required for each mapping rule. Which event field should be mapped?"
    },
    {
      "path": "mapFields[0].targetField",
      "message": "MAP targetField is required for each mapping rule. What should the output field be named?"
    },
    {
      "path": "mapFields[0].formula",
      "when": {
        "path": "mapFields[0].transformType",
        "equals": "transform"
      },
      "message": "MAP formula is required when transformType is 'transform'. Provide a JavaScript expression (e.g. \"event.quantity * 1.1\")."
    }
  ]
}

SHA-256: 26f080015a0d461b8badf042558e765b315316a600a971818f806d0c4711355c