{"_id":"@business-os/sdk","name":"@business-os/sdk","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@business-os/sdk","version":"1.0.0","description":"TypeScript SDK for Knibo Platform - Restaurant OS, Handwerker, and more","keywords":["restaurant","handwerker","api","sdk","typescript","menu","events","blog"],"homepage":"https://github.com/knibo/restaurant-os#readme","bugs":{"url":"https://github.com/knibo/restaurant-os/issues"},"repository":{"type":"git","url":"git+https://github.com/knibo/restaurant-os.git","directory":"packages/sdk"},"license":"MIT","author":{"name":"Knibo"},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./restaurant":{"types":"./dist/restaurant/index.d.ts","import":"./dist/restaurant/index.js"},"./handwerker":{"types":"./dist/handwerker/index.d.ts","import":"./dist/handwerker/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js"}},"main":"./dist/index.js","types":"./dist/index.d.ts","devDependencies":{"typescript":"^5"},"publishConfig":{"access":"public"},"engines":{"node":">=18"},"scripts":{"build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_id":"@business-os/sdk@1.0.0","_integrity":"sha512-85uLvzHkRJamQ1nrWIRT8fMyh9i3SBtr1cb1b9xLO8PGiaCq4eONJaCUVAa8I0c0qbc6TCO+ANIdNoeuLeJuqw==","_resolved":"/tmp/54bc41075b508098de01eaa5e64ac897/business-os-sdk-1.0.0.tgz","_from":"file:business-os-sdk-1.0.0.tgz","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-85uLvzHkRJamQ1nrWIRT8fMyh9i3SBtr1cb1b9xLO8PGiaCq4eONJaCUVAa8I0c0qbc6TCO+ANIdNoeuLeJuqw==","shasum":"abea6a2f0fc614b8859d26ed7de004d64eb4c7b5","tarball":"https://registry.npmjs.org/@business-os/sdk/-/sdk-1.0.0.tgz","fileCount":42,"unpackedSize":66566,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFcZ0Jv+5LR4dHwJNFx28rpIRf3sCJjV6hE2TD21NGw6AiBVg9zOH7Mv0LBZ5fw5Pskci2VZurRVKFwCYVxPzeHKVQ=="}]},"_npmUser":{"name":"business-os","email":"alexander@knibo-invest.de"},"directories":{},"maintainers":[{"name":"business-os","email":"alexander@knibo-invest.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_1.0.0_1764960101374_0.22779380160390206"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-05T18:41:41.236Z","1.0.0":"2025-12-05T18:41:41.513Z","modified":"2025-12-05T18:41:41.859Z"},"maintainers":[{"name":"business-os","email":"alexander@knibo-invest.de"}],"description":"TypeScript SDK for Knibo Platform - Restaurant OS, Handwerker, and more","homepage":"https://github.com/knibo/restaurant-os#readme","keywords":["restaurant","handwerker","api","sdk","typescript","menu","events","blog"],"repository":{"type":"git","url":"git+https://github.com/knibo/restaurant-os.git","directory":"packages/sdk"},"author":{"name":"Knibo"},"bugs":{"url":"https://github.com/knibo/restaurant-os/issues"},"license":"MIT","readme":"# @knibo/sdk\n\nTypeScript SDK for the Knibo Platform - a multi-industry business management platform.\n\n## Installation\n\n```bash\npnpm add @knibo/sdk\n# or\nnpm install @knibo/sdk\n```\n\n## Industries\n\n- **Restaurant** - Menu management, events, blog, reviews\n- **Handwerker** - Services, portfolio, leads (coming soon)\n\n## Usage\n\n### Restaurant\n\n```typescript\nimport { RestaurantClient } from '@knibo/sdk'\n\nconst client = new RestaurantClient({\n  apiUrl: 'https://restaurant-os-three.vercel.app',\n  businessId: 'your-restaurant-id',\n  revalidate: 60 // cache time in seconds\n})\n\n// Menu\nconst menu = await client.getHauptspeisekarte()\nconst drinks = await client.getGetraenkekarte()\nconst seasonal = await client.getSaisonkarte()\nconst lunch = await client.getCurrentMittagskarte()\n\n// Events\nconst events = await client.getUpcomingEvents()\n\n// Blog\nconst posts = await client.getBlogPosts()\nconst post = await client.getBlogPostBySlug('my-post')\n\n// Reviews\nconst reviews = await client.getReviews({ limit: 5, minRating: 4 })\nconst stats = await client.getReviewStats()\n```\n\n### Handwerker (Tradesman)\n\n```typescript\nimport { HandwerkerClient } from '@knibo/sdk'\n\nconst client = new HandwerkerClient({\n  apiUrl: 'https://restaurant-os-three.vercel.app',\n  businessId: 'your-handwerker-id'\n})\n\n// Services\nconst services = await client.getServices()\nconst byCategory = await client.getServicesByCategory()\nconst emergency = await client.getEmergencyServices()\n\n// Portfolio\nconst projects = await client.getPortfolio()\nconst featured = await client.getFeaturedProjects()\n\n// Leads\nawait client.submitLead({\n  name: 'John Doe',\n  email: 'john@example.com',\n  phone: '+49 123 456789',\n  message: 'I need help with...',\n  source: 'website'\n})\n```\n\n### Tree-shaking\n\nImport only what you need:\n\n```typescript\n// Only restaurant types\nimport { RestaurantClient, type MenuItem } from '@knibo/sdk/restaurant'\n\n// Only handwerker types\nimport { HandwerkerClient, type Service } from '@knibo/sdk/handwerker'\n\n// Only shared types\nimport { type BlogPost, type Review } from '@knibo/sdk/core'\n```\n\n## Migration from @restaurant-os/sdk\n\n```typescript\n// Old\nimport { RestaurantOSClient, RestaurantOSConfig } from '@restaurant-os/sdk'\n\n// New (backwards compatible)\nimport { RestaurantOSClient, RestaurantOSConfig } from '@knibo/sdk'\n\n// Or use new names\nimport { RestaurantClient, RestaurantClientConfig } from '@knibo/sdk'\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-e1e3960ca7ffd50aa4f241507b85f9c6"}