slotlock 0.7.0 → 0.9.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/CHANGELOG.md +281 -0
- package/agent-server.d.ts +25 -5
- package/agent-server.js +152 -7
- package/agent-store-backend.d.ts +6 -1
- package/agent-store-backend.js +861 -55
- package/application-api.d.ts +19 -1
- package/application-api.js +578 -21
- package/approvals.d.ts +2 -0
- package/approvals.js +12 -5
- package/assistant.d.ts +64 -9
- package/assistant.js +450 -82
- package/availability-store.d.ts +193 -0
- package/availability-store.js +558 -0
- package/booking-rules.d.ts +92 -5
- package/booking-rules.js +243 -15
- package/dashboard-assistant-ui.d.ts +21 -0
- package/dashboard-assistant-ui.js +539 -0
- package/dashboard-markdown.d.ts +2 -0
- package/dashboard-markdown.js +157 -0
- package/dashboard-settings-ui.d.ts +1 -0
- package/dashboard-settings-ui.js +78 -0
- package/dashboard.d.ts +84 -11
- package/dashboard.js +1654 -384
- package/ddl.d.ts +5 -1
- package/ddl.js +760 -9
- package/event-feed.d.ts +1 -1
- package/event-feed.js +18 -0
- package/holiday-import.d.ts +38 -0
- package/holiday-import.js +57 -0
- package/holidays.d.ts +38 -0
- package/holidays.js +150 -0
- package/hours.d.ts +125 -0
- package/hours.js +224 -0
- package/index.d.ts +14 -3
- package/index.js +10 -2
- package/interop.d.ts +25 -7
- package/interop.js +145 -17
- package/lifecycle.d.ts +31 -0
- package/lifecycle.js +115 -0
- package/maintenance.d.ts +19 -0
- package/maintenance.js +55 -1
- package/metrics.js +3 -0
- package/openapi.json +16237 -7795
- package/package.json +1 -1
- package/ranges.d.ts +28 -0
- package/ranges.js +135 -0
- package/resource-search.d.ts +19 -0
- package/resource-search.js +153 -0
- package/rest-api.js +7 -0
- package/rules.d.ts +2 -0
- package/rules.js +2 -0
- package/self-host.d.ts +1 -1
- package/self-host.js +221 -21
- package/slotlock.manifest.json +1 -1
- package/store.d.ts +367 -24
- package/store.js +1567 -97
- package/types.d.ts +198 -0
package/ddl.d.ts
CHANGED
|
@@ -54,6 +54,10 @@ export declare const SLOTLOCK_USAGE_FUNCTIONS: readonly ["slotlock.record_usage(
|
|
|
54
54
|
export declare const SLOTLOCK_QUOTA_FUNCTIONS: readonly ["slotlock.tenant_plan(text)", "slotlock.tenant_quota_usage(text, date)", "slotlock.note_usage_threshold(text, date, text, integer, bigint, bigint)"];
|
|
55
55
|
/** What a plan's monthly quotas count (quotas.ts): operations run and bookings made. */
|
|
56
56
|
export declare const SLOTLOCK_QUOTA_METRICS: readonly ["operations", "bookings"];
|
|
57
|
+
/** The most conversations a member keeps with the dashboard assistant: past it, the least recent goes. */
|
|
58
|
+
export declare const SLOTLOCK_ASSISTANT_MAX_CHATS = 100;
|
|
59
|
+
/** How a conversation with the assistant is named: 16 URL-safe characters. */
|
|
60
|
+
export declare const SLOTLOCK_ASSISTANT_CHAT_ID: RegExp;
|
|
57
61
|
/** The shares of a quota, in percent, at which a tenant is told once a month (usage.threshold_reached). */
|
|
58
62
|
export declare const SLOTLOCK_QUOTA_NOTICE_PERCENTS: readonly [80, 100];
|
|
59
63
|
/** The most bookings past the roll-up cursor one quota read counts: more than any plan allows. */
|
|
@@ -116,7 +120,7 @@ export declare const SLOTLOCK_TENANT_CONTEXT_SETTING = "slotlock.tenant_ref";
|
|
|
116
120
|
* `slotlock.rls_policy_contracts` and `slotlock.deployment_lifted_row_security` are
|
|
117
121
|
* deployment-only and deliberately absent.
|
|
118
122
|
*/
|
|
119
|
-
export declare const SLOTLOCK_TENANT_TABLES: readonly ["resources", "reservations", "reservation_tombstones", "reservation_conflict_archive", "calendar_events", "calendar_event_attendees", "calendar_event_reminders", "calendar_event_exceptions", "calendar_event_occurrences", "calendar_event_tombstones", "calendar_event_commands", "calendar_coverage", "hold_commands", "outbox", "outbox_pruned", "webhook_endpoints", "waitlist_entries", "booking_rule_defaults", "assistant_settings", "assistant_conversations", "locations", "resource_groups", "resource_group_members", "pool_settings", "composite_claims", "approval_policies", "approvals"];
|
|
123
|
+
export declare const SLOTLOCK_TENANT_TABLES: readonly ["resources", "reservations", "reservation_tombstones", "reservation_conflict_archive", "calendar_events", "calendar_event_attendees", "calendar_event_reminders", "calendar_event_exceptions", "calendar_event_occurrences", "calendar_event_tombstones", "calendar_event_commands", "calendar_coverage", "hold_commands", "outbox", "outbox_pruned", "webhook_endpoints", "waitlist_entries", "booking_rule_defaults", "assistant_settings", "assistant_conversations", "assistant_chats", "locations", "resource_groups", "resource_group_members", "pool_settings", "composite_claims", "approval_policies", "approvals", "availability_defaults", "availability_exceptions", "holiday_calendars", "contacts", "reminder_dispatches", "reservation_reminder_dispatches", "hold_payments", "source_busy"];
|
|
120
124
|
/**
|
|
121
125
|
* Build the grants for the application role: USAGE on the schema, DML on the store's tables and
|
|
122
126
|
* EXECUTE on the API key and dashboard functions, nothing else. The role must not be able to leave
|