@multitenantkit/sdk 0.1.4 → 0.2.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.
package/README.md CHANGED
@@ -114,14 +114,16 @@ For more control, use the individual functions:
114
114
 
115
115
  ```typescript
116
116
  import {
117
- compose,
117
+ createUseCases,
118
+ createAdapters,
118
119
  buildHandlers,
119
120
  AdapterAuthSupabase,
120
121
  AdapterTransportExpress
121
122
  } from '@multitenantkit/sdk';
122
123
 
123
- // 1. Compose use cases
124
- const { useCases } = compose(envOverrides, toolkitOptions);
124
+ // 1. Create adapters and use cases
125
+ const adapters = createAdapters(envOverrides);
126
+ const useCases = createUseCases(adapters, toolkitOptions);
125
127
 
126
128
  // 2. Build handlers
127
129
  const handlers = buildHandlers(useCases, toolkitOptions);
@@ -147,7 +147,7 @@ export declare function createSupabaseExpressRouter<TUserCustomFields = {}, TOrg
147
147
  * const result = await useCases.users.getUser.execute({
148
148
  * userId: 'user-123',
149
149
  * requestId: crypto.randomUUID(),
150
- * actorUserId: 'system'
150
+ * externalId: 'system'
151
151
  * });
152
152
  * ```
153
153
  */
package/dist/supabase.js CHANGED
@@ -282,7 +282,7 @@ export function createSupabaseExpressRouter(options) {
282
282
  * const result = await useCases.users.getUser.execute({
283
283
  * userId: 'user-123',
284
284
  * requestId: crypto.randomUUID(),
285
- * actorUserId: 'system'
285
+ * externalId: 'system'
286
286
  * });
287
287
  * ```
288
288
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multitenantkit/sdk",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "description": "Complete SDK for building multi-tenant SaaS applications - includes all adapters and options",
5
5
  "keywords": [
6
6
  "multitenantkit",
@@ -55,17 +55,17 @@
55
55
  }
56
56
  },
57
57
  "peerDependencies": {
58
- "@multitenantkit/adapter-auth-supabase": "^0.1.1",
59
- "@multitenantkit/adapter-persistence-json": "^0.1.1",
60
- "@multitenantkit/adapter-persistence-postgres": "^0.1.1",
61
- "@multitenantkit/adapter-system-crypto-uuid": "^0.1.1",
62
- "@multitenantkit/adapter-system-system-clock": "^0.1.1",
63
- "@multitenantkit/adapter-transport-express": "^0.1.1",
64
- "@multitenantkit/api-handlers": "^0.1.2",
65
- "@multitenantkit/api-contracts": "^0.1.1",
66
- "@multitenantkit/domain-contracts": "^0.1.2",
67
- "@multitenantkit/domain": "^0.1.3",
68
- "@multitenantkit/composition": "^0.1.2"
58
+ "@multitenantkit/adapter-auth-supabase": "^0.2.0",
59
+ "@multitenantkit/adapter-persistence-json": "^0.2.0",
60
+ "@multitenantkit/adapter-persistence-postgres": "^0.2.0",
61
+ "@multitenantkit/adapter-system-crypto-uuid": "^0.2.0",
62
+ "@multitenantkit/adapter-system-system-clock": "^0.2.0",
63
+ "@multitenantkit/adapter-transport-express": "^0.2.0",
64
+ "@multitenantkit/api-handlers": "^0.2.0",
65
+ "@multitenantkit/api-contracts": "^0.2.0",
66
+ "@multitenantkit/domain-contracts": "^0.2.0",
67
+ "@multitenantkit/domain": "^0.2.0",
68
+ "@multitenantkit/composition": "^0.2.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "typescript": "^5.0.0"