@fayz-ai/saas 0.2.0 → 0.5.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/dist/db.cjs +14 -0
- package/dist/db.cjs.map +1 -0
- package/dist/db.d.ts +2 -0
- package/dist/db.d.ts.map +1 -0
- package/dist/db.js +3 -0
- package/dist/db.js.map +1 -0
- package/dist/index.cjs +21 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/ui.cjs +14 -0
- package/dist/ui.cjs.map +1 -0
- package/dist/ui.d.ts +2 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +3 -0
- package/dist/ui.js.map +1 -0
- package/package.json +18 -4
- package/src/db.ts +12 -0
- package/src/index.ts +16 -0
- package/src/ui.ts +7 -0
package/dist/ui.cjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ui = require('@fayz-ai/ui');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(ui).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return ui[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=ui.cjs.map
|
|
14
|
+
//# sourceMappingURL=ui.cjs.map
|
package/dist/ui.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"ui.cjs","sourcesContent":[]}
|
package/dist/ui.d.ts
ADDED
package/dist/ui.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAMA,cAAc,aAAa,CAAA"}
|
package/dist/ui.js
ADDED
package/dist/ui.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"ui.js","sourcesContent":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fayz-ai/saas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Fayz SDK SaaS layer — multi-tenancy, billing, permissions, org management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -13,6 +13,18 @@
|
|
|
13
13
|
"import": "./dist/index.js",
|
|
14
14
|
"require": "./dist/index.cjs"
|
|
15
15
|
},
|
|
16
|
+
"./ui": {
|
|
17
|
+
"source": "./src/ui.ts",
|
|
18
|
+
"types": "./dist/ui.d.ts",
|
|
19
|
+
"import": "./dist/ui.js",
|
|
20
|
+
"require": "./dist/ui.cjs"
|
|
21
|
+
},
|
|
22
|
+
"./db": {
|
|
23
|
+
"source": "./src/db.ts",
|
|
24
|
+
"types": "./dist/db.d.ts",
|
|
25
|
+
"import": "./dist/db.js",
|
|
26
|
+
"require": "./dist/db.cjs"
|
|
27
|
+
},
|
|
16
28
|
"./org": {
|
|
17
29
|
"source": "./src/org/index.ts",
|
|
18
30
|
"types": "./dist/org/index.d.ts",
|
|
@@ -47,9 +59,11 @@
|
|
|
47
59
|
"@tanstack/react-table": "^8.20.0",
|
|
48
60
|
"cmdk": "^1.0.0",
|
|
49
61
|
"@radix-ui/react-dialog": "^1.1.0",
|
|
50
|
-
"@fayz-ai/
|
|
51
|
-
"@fayz-ai/
|
|
52
|
-
"@fayz-ai/
|
|
62
|
+
"@fayz-ai/auth": "^0.5.0",
|
|
63
|
+
"@fayz-ai/core": "^0.5.0",
|
|
64
|
+
"@fayz-ai/db": "^0.1.2",
|
|
65
|
+
"@fayz-ai/ui": "^0.5.0",
|
|
66
|
+
"@fayz-ai/sdk": "^0.5.0"
|
|
53
67
|
},
|
|
54
68
|
"devDependencies": {
|
|
55
69
|
"@types/react": "^18.3.0",
|
package/src/db.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Front-door re-export of @fayz-ai/db.
|
|
2
|
+
//
|
|
3
|
+
// Apps built on @fayz-ai/saas import drizzle builders + the cross-schema spine
|
|
4
|
+
// (tenants/persons/orders/bookings, tenantId/timestamps helpers) from
|
|
5
|
+
// `@fayz-ai/saas/db` instead of depending on @fayz-ai/db directly — keeping a
|
|
6
|
+
// single drizzle-orm instance and a single fayz front door.
|
|
7
|
+
//
|
|
8
|
+
// NOTE: this subpath is consumed by drizzle-kit (db:generate/check), which uses
|
|
9
|
+
// raw Node resolution — so unlike `@fayz-ai/saas/ui`, it only works once this
|
|
10
|
+
// package is published with the `./db` export. There is no local-source alias
|
|
11
|
+
// fallback for the drizzle-kit toolchain.
|
|
12
|
+
export * from '@fayz-ai/db'
|
package/src/index.ts
CHANGED
|
@@ -136,8 +136,24 @@ export type {
|
|
|
136
136
|
// Billing
|
|
137
137
|
BillingConfig,
|
|
138
138
|
Plan,
|
|
139
|
+
// Entities / connectors
|
|
140
|
+
EntityDef,
|
|
141
|
+
ConnectorDefinition,
|
|
139
142
|
} from '@fayz-ai/core'
|
|
140
143
|
|
|
144
|
+
// Commonly needed @fayz-ai/core *runtime* helpers, re-exported so apps built on
|
|
145
|
+
// top of @fayz-ai/saas can import them from the single front-door package.
|
|
146
|
+
export {
|
|
147
|
+
renderApp,
|
|
148
|
+
getSupabaseClientOptional,
|
|
149
|
+
getActiveTenantId,
|
|
150
|
+
setCurrentLocale,
|
|
151
|
+
} from '@fayz-ai/core'
|
|
152
|
+
|
|
153
|
+
// Base SDK client + table-query contracts, surfaced through the saas front door.
|
|
154
|
+
export { fayz } from '@fayz-ai/sdk'
|
|
155
|
+
export type { FayzTableFilter } from '@fayz-ai/sdk'
|
|
156
|
+
|
|
141
157
|
// ---------------------------------------------------------------------------
|
|
142
158
|
// Page helpers
|
|
143
159
|
// ---------------------------------------------------------------------------
|
package/src/ui.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Front-door re-export of @fayz-ai/ui.
|
|
2
|
+
//
|
|
3
|
+
// Apps built on @fayz-ai/saas import design-system primitives from
|
|
4
|
+
// `@fayz-ai/saas/ui` instead of depending on @fayz-ai/ui directly. Kept on its
|
|
5
|
+
// own subpath (not folded into the main entry) so importing a saas hook does
|
|
6
|
+
// not drag the entire UI graph (recharts/radix/cmdk) into the dep-optimizer.
|
|
7
|
+
export * from '@fayz-ai/ui'
|