@rio.js/enterprise 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +89 -0
  2. package/dist/adapter-factory-BTRALCLD-kJBwe70v.mjs +836 -0
  3. package/dist/better-auth-CStoaWiq.d.mts +10 -0
  4. package/dist/better-auth-CqfhQJYE.mjs +558 -0
  5. package/dist/better-auth.d.mts +2 -0
  6. package/dist/better-auth.mjs +17 -0
  7. package/dist/bun-sqlite-dialect-2R9nCsVF-DFs6tpGr.mjs +155 -0
  8. package/dist/client--1_AEBPu-8Ae9icC9.mjs +125 -0
  9. package/dist/client.d.mts +17 -0
  10. package/dist/client.mjs +381 -0
  11. package/dist/db-BVXTgOd3.mjs +681 -0
  12. package/dist/db-BadqSwVl.d.mts +9542 -0
  13. package/dist/db-schema.final-DWleoQm0.mjs +785 -0
  14. package/dist/db.d.mts +2 -0
  15. package/dist/db.mjs +3 -0
  16. package/dist/dialect-C6_pK3V9-CPJHWkYR.mjs +72 -0
  17. package/dist/dist-CygcgJYk.mjs +422 -0
  18. package/dist/env-DwlNAN_D-C1zHd0cf-Cdlw8sNp.mjs +289 -0
  19. package/dist/esm-C5TuvtGn.mjs +15816 -0
  20. package/dist/index.d.mts +6 -0
  21. package/dist/index.mjs +17 -0
  22. package/dist/init-D8lwWc90.mjs +27 -0
  23. package/dist/json-oFuWgANh-O1U6k3bL.mjs +3811 -0
  24. package/dist/kysely-adapter-D_seG51p.mjs +297 -0
  25. package/dist/memory-adapter-CY-oDozb.mjs +215 -0
  26. package/dist/misc-CbURQDlR-sLtUwwQY.mjs +7 -0
  27. package/dist/node-sqlite-dialect-CdC7L-ji-QLbJGmDc.mjs +155 -0
  28. package/dist/parser-bL7W2mQ0-YdTgjtji.mjs +140 -0
  29. package/dist/plugins-BNFht2HW.mjs +23358 -0
  30. package/dist/plugins.d.mts +1 -0
  31. package/dist/plugins.mjs +13 -0
  32. package/dist/react--VZQu7s1.mjs +560 -0
  33. package/dist/react.d.mts +1 -0
  34. package/dist/react.mjs +6 -0
  35. package/dist/server.d.mts +10 -0
  36. package/dist/server.mjs +45 -0
  37. package/dist/social-providers-DNfE9Ak7-Be5zMAEe.mjs +2920 -0
  38. package/dist/social-providers.d.mts +1 -0
  39. package/dist/social-providers.mjs +6 -0
  40. package/dist/verify-CN5Qc0e-.mjs +1183 -0
  41. package/package.json +98 -0
package/README.md ADDED
@@ -0,0 +1,89 @@
1
+ # Enterprise Service
2
+
3
+ Enterprise SaaS platform service built with Elysia and Bun.
4
+
5
+ ## Getting Started
6
+
7
+ ### Prerequisites
8
+
9
+ - [Bun](https://bun.sh) installed (latest version)
10
+
11
+ ### Installation
12
+
13
+ ```bash
14
+ bun install
15
+ ```
16
+
17
+ ## Development
18
+
19
+ ### Start Development Server
20
+
21
+ ```bash
22
+ bun run dev
23
+ ```
24
+
25
+ The server will start on http://localhost:3001 (check `src/index.ts` for the port).
26
+
27
+ ### Run Tests
28
+
29
+ ```bash
30
+ # Run all tests
31
+ bun test
32
+
33
+ # Run tests in watch mode
34
+ bun test:watch
35
+ ```
36
+
37
+ ## Project Structure
38
+
39
+ ```
40
+ src/
41
+ ├── database/ # Database schemas and configuration
42
+ │ ├── domains/ # Domain-specific table definitions
43
+ │ └── utils.ts # Database utilities
44
+ ├── modules/ # Feature modules
45
+ │ ├── subscriptions/ # Subscription management
46
+ │ └── organizations/ # Organization management
47
+ ├── utils/ # Shared utilities
48
+ │ └── errors.ts # Custom error handling
49
+ └── index.ts # Application entry point
50
+ ```
51
+
52
+ ## Testing
53
+
54
+ We use Bun's built-in test runner. All tests should be written in TypeScript with the `.test.ts` suffix.
55
+
56
+ ### Writing Tests
57
+
58
+ See [CONTRIBUTING.md](./CONTRIBUTING.md) for detailed testing guidelines.
59
+
60
+ Example:
61
+
62
+ ```typescript
63
+ import { describe, expect, it } from "bun:test"
64
+
65
+ describe("Feature", () => {
66
+ it("should work correctly", () => {
67
+ expect(true).toBe(true)
68
+ })
69
+ })
70
+ ```
71
+
72
+ ## Contributing
73
+
74
+ Please read [CONTRIBUTING.md](./CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.
75
+
76
+ ## Error Handling
77
+
78
+ This project uses a custom error handling system. See `src/utils/errors.ts` for details.
79
+
80
+ All modules should:
81
+
82
+ 1. Create error classes using `createErrorClasses`
83
+ 2. Register errors with Elysia
84
+ 3. Handle errors in `.onError()` hook
85
+ 4. Throw custom errors in business logic
86
+
87
+ ## License
88
+
89
+ [Add your license here]