Enterprise
A shared package that provides enterprise-related queries, types, and utility functions for use across Rhapsody applications.
Features
- Enterprise data queries using React Query
- TypeScript types for enterprise data
- Centralized enterprise API management
Usage
import { useEnterpriseQuery, type EnterpriseResponse } from '@shared/enterprise'
function MyComponent() {
const { data: enterpriseData, isLoading } = useEnterpriseQuery({
enabled: true
})
const hasEnterprise = !!enterpriseData?.data?.name
// Use enterprise data...
}
API
Hooks
useEnterpriseQuery(options)- Query hook for fetching enterprise data
Types
EnterpriseResponse- Type definition for enterprise API response