@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
36 lines (35 loc) • 997 B
JavaScript
/**
* @simplyhomes/sos-sdk
*
* TypeScript SDK for Simply Homes SoS API v4
*
* @example
* ```typescript
* import SimplyHomesSDK, { V4 } from '@simplyhomes/sos-sdk';
*
* const sdk = new SimplyHomesSDK({
* environment: 'production',
* authToken: 'Bearer your-token-here',
* organizationId: 'your-org-id'
* });
*
* // Use the SDK
* const transactions = await sdk.v4.transactions.list.all();
*
* // Use types
* const property: V4.SoSPropertyEntityBase = { ... };
* ```
*/
// Main client class
export { SimplyHomesSDK } from './client';
// V4 Namespace for models (future-proof for V5, V6, etc.)
// Import all generated types and re-export as V4 namespace
import * as V4 from './generated';
export { V4 };
// Also export all types directly for convenience
export * from './generated';
// Export utilities - wildcard export for future-proofing
export * from './utils';
// Default export for convenience
import { SimplyHomesSDK } from './client';
export default SimplyHomesSDK;