MCPcopy Index your code
hub / github.com/simstudioai/sim / getIntegrationMetadata

Function getIntegrationMetadata

apps/sim/lib/logs/get-trigger-options.ts:101–113  ·  view source on GitHub ↗
(triggerType: string)

Source from the content-addressed store, hash-verified

99 * Gets integration metadata (label and color) for a specific trigger type.
100 */
101export function getIntegrationMetadata(triggerType: string): { label: string; color: string } {
102 const metadataMap = initializeTriggerMetadataMap()
103 const found = metadataMap.get(triggerType)
104
105 if (found) {
106 return found
107 }
108
109 return {
110 label: formatProviderName(triggerType),
111 color: '#6b7280', // gray
112 }
113}

Callers 1

TriggerBadgeFunction · 0.90

Calls 3

formatProviderNameFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected