@fayz-ai/plugin-agenda 0.8.3 → 0.8.4
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/{chunk-YQO6B4G3.js → chunk-Q2PAWBPR.js} +6 -4
- package/dist/chunk-Q2PAWBPR.js.map +1 -0
- package/dist/{chunk-3KWNHV5A.cjs → chunk-RX2HMWXS.cjs} +5 -3
- package/dist/chunk-RX2HMWXS.cjs.map +1 -0
- package/dist/index.cjs +11 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/migrations/index.d.ts +2 -2
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/public/index.cjs +4 -4
- package/dist/public/index.js +2 -2
- package/package.json +5 -5
- package/src/migrations/001_public_booking.sql +7 -2
- package/src/migrations/013_normalize_v_appointments.sql +72 -34
- package/src/migrations/index.ts +80 -37
- package/src/public/data.supabase.ts +4 -4
- package/dist/chunk-3KWNHV5A.cjs.map +0 -1
- package/dist/chunk-YQO6B4G3.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createMockAgendaProvider, createSupabasePublicBookingProvider } from './chunk-
|
|
2
|
-
export { createMockAgendaProvider } from './chunk-
|
|
1
|
+
import { createMockAgendaProvider, createSupabasePublicBookingProvider } from './chunk-Q2PAWBPR.js';
|
|
2
|
+
export { createMockAgendaProvider } from './chunk-Q2PAWBPR.js';
|
|
3
3
|
import React13, { useState, useEffect, useCallback, useMemo, useRef } from 'react';
|
|
4
4
|
import { getSupabaseClientOptional, getActiveTenantId, registerTranslations, createSafeDataProvider, usePluginRuntimeOptional, useTranslation, getCurrentLocale, useDataChanged, formatCurrency } from '@fayz-ai/core';
|
|
5
5
|
import { createPluginContext, setScheduleBlockConfig, getScheduleBlockConfig, PluginSettingsPanel, dedup, useTenantPluginSettings, SettingsGroup, ToggleRow, SelectRow, usePluginPrefs, PersonLink, useLimitGuard, CrudFormPage, CrudDetailPage, ContactPicker, invalidateLimit } from '@fayz-ai/saas';
|
|
@@ -4399,7 +4399,10 @@ CREATE INDEX IF NOT EXISTS appointments_assignee_time
|
|
|
4399
4399
|
WHERE status NOT IN ('cancelled', 'no_show');
|
|
4400
4400
|
|
|
4401
4401
|
-- \xA72 \u2014 admin read model (security_invoker \u2192 underlying RLS applies; anon sees 0 rows)
|
|
4402
|
-
CREATE OR REPLACE
|
|
4402
|
+
-- DROP first: 013 widens this view and CREATE OR REPLACE cannot narrow a live
|
|
4403
|
+
-- view on replay ("cannot drop columns from view"). 013 replays right after.
|
|
4404
|
+
DROP VIEW IF EXISTS public.v_appointments;
|
|
4405
|
+
CREATE VIEW public.v_appointments
|
|
4403
4406
|
WITH (security_invoker = true) AS
|
|
4404
4407
|
SELECT
|
|
4405
4408
|
b.id, b.tenant_id, b.kind, b.starts_at, b.ends_at, b.status, b.notes,
|
|
@@ -4427,7 +4430,9 @@ GRANT SELECT ON public.v_appointments TO authenticated, service_role;
|
|
|
4427
4430
|
REVOKE SELECT ON public.v_appointments FROM anon;
|
|
4428
4431
|
|
|
4429
4432
|
-- \xA73 \u2014 anon-readable public catalog (owner-rights view = deliberate, whitelisted)
|
|
4430
|
-
|
|
4433
|
+
-- DROP first: 010 widens this view (curation columns) \u2014 same replay rule as \xA72.
|
|
4434
|
+
DROP VIEW IF EXISTS public.v_public_services;
|
|
4435
|
+
CREATE VIEW public.v_public_services AS
|
|
4431
4436
|
SELECT
|
|
4432
4437
|
s.id, s.tenant_id, s.name, s.description, s.price, s.currency,
|
|
4433
4438
|
COALESCE(s.duration_minutes, 30) AS duration_minutes,
|