Overview
The@databite/types
package provides comprehensive TypeScript type definitions for the entire Databite SDK ecosystem. It includes types for connectors, integrations, connections, flows, actions, and syncs, ensuring type safety across all packages.
Installation
Core Types
Connector
The main connector type that defines the blueprint for API integrations:Integration
An instance of a connector with specific configuration values:Connection
An active connection to an external service using an integration:Flow Types
Flow
Defines a workflow with blocks and execution order:FlowBlock
Individual block within a flow:Action Types
Action
Defines an action that can be executed on a connection:Sync
Defines a data synchronization operation:Enum Types
ConnectionStatus
Status of a connection:ConnectorCategory
Categories for organizing connectors:Usage Examples
Basic Type Usage
Flow Type Usage
Action Type Usage
Utility Types
Generic Type Helpers
Action Parameter Types
Advanced Type Patterns
Conditional Types
Mapped Types
Best Practices
1. Use Strict Type Definitions
2. Leverage Type Inference
3. Create Type Guards
Related Packages
- @databite/build - Core connector builder SDK
- @databite/flow - Flow engine for complex workflows
- @databite/connectors - Pre-built connector library
- @databite/engine - Data synchronization and execution engine