(config: HubSpotWebhookConfig)
| 486 | } |
| 487 | |
| 488 | function resolveObjectType(config: HubSpotWebhookConfig): string { |
| 489 | const raw = config.objectType?.trim() |
| 490 | if (raw === 'custom') { |
| 491 | return config.customObjectTypeId?.trim() ?? '' |
| 492 | } |
| 493 | return raw ?? '' |
| 494 | } |
| 495 | |
| 496 | function resolveRequestedProperties( |
| 497 | config: HubSpotWebhookConfig, |