{
"type": "object",
"properties": {
"PCID": {
"type": "string",
"description": "Pink Connect ID"
},
"display_name": {
"type": "string",
"description": "Query display name"
},
"warehouse_id": {
"type": "string",
"description": "SQL warehouse ID"
},
"query_text": {
"type": "string",
"description": "SQL query text"
},
"catalog": {
"type": "string",
"description": "Catalog name"
},
"schema": {
"type": "string",
"description": "Schema name"
},
"description": {
"type": "string",
"description": "Query description"
},
"run_as_mode": {
"type": "string",
"enum": [
"OWNER",
"VIEWER"
],
"default": "OWNER",
"description": "Run as: OWNER or VIEWER"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Query tags"
},
"parent_path": {
"type": "string",
"description": "Workspace folder path"
},
"parameters": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Parameter name (use {{name}} in query)"
},
"title": {
"type": "string",
"description": "Display label in UI"
},
"date_range_value": {
"type": "object",
"properties": {
"date_range_value": {
"type": "object",
"properties": {
"start": {
"type": "string",
"description": "Start date"
},
"end": {
"type": "string",
"description": "End date"
}
},
"description": "Static date range"
},
"dynamic_date_range_value": {
"type": "string",
"enum": [
"TODAY",
"YESTERDAY",
"THIS_WEEK",
"THIS_MONTH",
"THIS_YEAR",
"LAST_WEEK",
"LAST_MONTH",
"LAST_YEAR",
"LAST_HOUR",
"LAST_8_HOURS",
"LAST_24_HOURS",
"LAST_7_DAYS",
"LAST_14_DAYS",
"LAST_30_DAYS",
"LAST_60_DAYS",
"LAST_90_DAYS",
"LAST_12_MONTHS"
],
"description": "Dynamic date range"
},
"precision": {
"type": "string",
"enum": [
"DAY_PRECISION",
"MINUTE_PRECISION",
"SECOND_PRECISION"
],
"default": "DAY_PRECISION",
"description": "Date format precision"
},
"start_day_of_week": {
"type": "number",
"description": "Week start day (0=Sun)"
}
},
"description": "Date range parameter"
},
"date_value": {
"type": "object",
"properties": {
"date_value": {
"type": "string",
"description": "Static date"
},
"dynamic_date_value": {
"type": "string",
"enum": [
"NOW",
"YESTERDAY"
],
"description": "Dynamic date"
},
"precision": {
"type": "string",
"enum": [
"DAY_PRECISION",
"MINUTE_PRECISION",
"SECOND_PRECISION"
],
"default": "DAY_PRECISION",
"description": "Date format precision"
}
},
"description": "Date parameter"
},
"enum_value": {
"type": "object",
"properties": {
"enum_options": {
"type": "string",
"description": "Valid values (newline-separated)"
},
"multi_values_options": {
"type": "object",
"properties": {
"prefix": {
"type": "string",
"description": "Value prefix"
},
"separator": {
"type": "string",
"default": ",",
"description": "Value separator"
},
"suffix": {
"type": "string",
"description": "Value suffix"
}
},
"description": "Multi-select config"
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Selected values"
}
},
"description": "Dropdown parameter"
},
"numeric_value": {
"type": "object",
"properties": {
"value": {
"type": "number",
"description": "Numeric value"
}
},
"description": "Number parameter"
},
"query_backed_value": {
"type": "object",
"properties": {
"multi_values_options": {
"type": "object",
"properties": {
"prefix": {
"type": "string",
"description": "Value prefix"
},
"separator": {
"type": "string",
"default": ",",
"description": "Value separator"
},
"suffix": {
"type": "string",
"description": "Value suffix"
}
},
"description": "Multi-select config"
},
"query_id": {
"type": "string",
"description": "Source query UUID"
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Selected values"
}
},
"description": "Query-backed dropdown"
},
"text_value": {
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "Text value"
}
},
"description": "Text parameter"
}
}
},
"description": "Query parameters"
}
},
"required": [
"PCID",
"display_name",
"warehouse_id",
"query_text"
]
}