@fayz-ai/admin 0.60.0 → 0.62.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.
@@ -1,6 +1,20 @@
1
1
  export type BackendConnection = 'online' | 'degraded' | 'server-down' | 'offline' | 'checking';
2
2
  /** One round: decides the state. Exported for tests. */
3
3
  export declare function probeBackend(): Promise<BackendConnection>;
4
+ export interface BackendConnectionDetail {
5
+ state: BackendConnection;
6
+ /** When the last probe finished (ms epoch); null before the first. */
7
+ checkedAt: number | null;
8
+ }
9
+ /** What each state means to an operator, in the product's words. */
10
+ export declare const BACKEND_CONNECTION_COPY: Record<BackendConnection, {
11
+ label: string;
12
+ detail: string;
13
+ }>;
14
+ /** Probes now, outside the schedule (a «Verificar agora» button). */
15
+ export declare function recheckBackend(): void;
16
+ /** The state plus when it was last checked, for a status card. */
17
+ export declare function useBackendConnectionDetail(): BackendConnectionDetail;
4
18
  /** The backend connection as this page sees it; probing runs while anyone reads it. */
5
19
  export declare function useBackendConnection(): BackendConnection;
6
20
  //# sourceMappingURL=connection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/lib/connection.ts"],"names":[],"mappings":"AAyBA,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,CAAA;AA+B9F,wDAAwD;AACxD,wBAAsB,YAAY,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAW/D;AAmDD,uFAAuF;AACvF,wBAAgB,oBAAoB,IAAI,iBAAiB,CAExD"}
1
+ {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/lib/connection.ts"],"names":[],"mappings":"AAyBA,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,CAAA;AAoC9F,wDAAwD;AACxD,wBAAsB,YAAY,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAW/D;AAmDD,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,iBAAiB,CAAA;IACxB,sEAAsE;IACtE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAID,oEAAoE;AACpE,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,iBAAiB,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAMhG,CAAA;AAED,qEAAqE;AACrE,wBAAgB,cAAc,IAAI,IAAI,CAGrC;AAED,kEAAkE;AAClE,wBAAgB,0BAA0B,IAAI,uBAAuB,CAEpE;AAED,uFAAuF;AACvF,wBAAgB,oBAAoB,IAAI,iBAAiB,CAExD"}
package/dist/org/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { ORG_CACHE_TTL_MS, OrgMark, OrgProvider, WorkspaceChooser, WorkspaceChooserGate, WorkspaceSwitching, WorkspaceSwitchingHost, clearOrgSnapshot, createMockOrgAdapter, createSupabaseOrgAdapter, decideWorkspaceChoice, getAutoPick, markWorkspaceSwitch, orgInitials, readOrgSnapshot, setAutoPick, takeWorkspaceSwitch, useOrgAdapter, useOrgAdapterOptional, useTenant, useTenantOptional, useWorkspaceSwitchingStore } from '../chunk-ZB3XIZIK.js';
1
+ export { ORG_CACHE_TTL_MS, OrgMark, OrgProvider, WorkspaceChooser, WorkspaceChooserGate, WorkspaceSwitching, WorkspaceSwitchingHost, clearOrgSnapshot, createMockOrgAdapter, createSupabaseOrgAdapter, decideWorkspaceChoice, getAutoPick, markWorkspaceSwitch, orgInitials, readOrgSnapshot, setAutoPick, takeWorkspaceSwitch, useOrgAdapter, useOrgAdapterOptional, useTenant, useTenantOptional, useWorkspaceSwitchingStore } from '../chunk-IXSY4GPK.js';
2
2
  import '../chunk-UQ2NTFQC.js';
3
3
  export { getPersistedOrgId, persistOrgId, useOrganizationStore } from '../chunk-P6XUDT2P.js';
4
4
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "fayz": {
4
4
  "status": "beta"
5
5
  },
6
- "version": "0.60.0",
6
+ "version": "0.62.0",
7
7
  "description": "Fayz SDK admin layer — the admin shell, CRUD engine, multi-tenancy, billing, permissions and org management",
8
8
  "type": "module",
9
9
  "sideEffects": [
@@ -59,12 +59,12 @@
59
59
  "@radix-ui/react-dialog": "^1.1.0",
60
60
  "@tanstack/react-table": "^8.20.0",
61
61
  "cmdk": "^1.0.0",
62
- "@fayz-ai/auth": "^0.59.0",
63
- "@fayz-ai/core": "^0.59.0",
62
+ "@fayz-ai/auth": "^0.61.0",
63
+ "@fayz-ai/core": "^0.61.0",
64
64
  "@fayz-ai/db": "^0.24.3",
65
- "@fayz-ai/sdk": "^0.59.0",
66
- "@fayz-ai/tasks": "^0.60.0",
67
- "@fayz-ai/ui": "^0.60.0"
65
+ "@fayz-ai/sdk": "^0.61.0",
66
+ "@fayz-ai/tasks": "^0.61.0",
67
+ "@fayz-ai/ui": "^0.61.0"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@supabase/supabase-js": "^2.45.0",
@@ -1,6 +0,0 @@
1
- export { ScheduleEditor } from './chunk-JOBRLBIQ.js';
2
- import './chunk-ZB3XIZIK.js';
3
- import './chunk-UQ2NTFQC.js';
4
- import './chunk-P6XUDT2P.js';
5
- //# sourceMappingURL=ScheduleEditor-YGZQX3X2.js.map
6
- //# sourceMappingURL=ScheduleEditor-YGZQX3X2.js.map
@@ -1,8 +0,0 @@
1
- export { SubscriptionPage } from './chunk-OMRPCQR6.js';
2
- import './chunk-YUHCC7JY.js';
3
- import './chunk-KPYRTOCK.js';
4
- import './chunk-ZB3XIZIK.js';
5
- import './chunk-UQ2NTFQC.js';
6
- import './chunk-P6XUDT2P.js';
7
- //# sourceMappingURL=SubscriptionPage-WW272QQZ.js.map
8
- //# sourceMappingURL=SubscriptionPage-WW272QQZ.js.map