(
integration: Optional["EnvironmentIntegrationModel"],
)
| 113 | |
| 114 | |
| 115 | def map_integration_to_engine( |
| 116 | integration: Optional["EnvironmentIntegrationModel"], |
| 117 | ) -> Optional[IntegrationModel]: |
| 118 | if not integration: |
| 119 | return None |
| 120 | return IntegrationModel( |
| 121 | api_key=integration.api_key, |
| 122 | base_url=integration.base_url, |
| 123 | entity_selector=getattr(integration, "entity_selector", None), |
| 124 | ) |
| 125 | |
| 126 | |
| 127 | def map_webhook_config_to_engine( |
no test coverage detected
searching dependent graphs…