@fayz-ai/plugin-reservations 0.1.1
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/LICENSE +21 -0
- package/dist/ReservationsPage-5RF5SYZT.js +1157 -0
- package/dist/ReservationsPage-5RF5SYZT.js.map +1 -0
- package/dist/chunk-7KXGSUHT.js +335 -0
- package/dist/chunk-7KXGSUHT.js.map +1 -0
- package/dist/components/CapacityStrip.d.ts +25 -0
- package/dist/components/CapacityStrip.d.ts.map +1 -0
- package/dist/components/ReservationModal.d.ts +23 -0
- package/dist/components/ReservationModal.d.ts.map +1 -0
- package/dist/components/SeatDialog.d.ts +16 -0
- package/dist/components/SeatDialog.d.ts.map +1 -0
- package/dist/context.d.ts +49 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/data/core-supabase.d.ts +32 -0
- package/dist/data/core-supabase.d.ts.map +1 -0
- package/dist/data/mock.d.ts +3 -0
- package/dist/data/mock.d.ts.map +1 -0
- package/dist/data/types.d.ts +37 -0
- package/dist/data/types.d.ts.map +1 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +870 -0
- package/dist/index.js.map +1 -0
- package/dist/locales/en.d.ts +2 -0
- package/dist/locales/en.d.ts.map +1 -0
- package/dist/locales/index.d.ts +2 -0
- package/dist/locales/index.d.ts.map +1 -0
- package/dist/locales/pt-BR.d.ts +2 -0
- package/dist/locales/pt-BR.d.ts.map +1 -0
- package/dist/migrations/index.d.ts +6 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/store.d.ts +48 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/types.d.ts +174 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/views/CapacitySettingsView.d.ts +3 -0
- package/dist/views/CapacitySettingsView.d.ts.map +1 -0
- package/dist/views/ReservationsListView.d.ts +5 -0
- package/dist/views/ReservationsListView.d.ts.map +1 -0
- package/dist/views/ReservationsPage.d.ts +27 -0
- package/dist/views/ReservationsPage.d.ts.map +1 -0
- package/dist/views/ServiceDayView.d.ts +15 -0
- package/dist/views/ServiceDayView.d.ts.map +1 -0
- package/package.json +62 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { PluginManifest, PluginScope, VerticalId, EntityDef } from '@fayz-ai/core';
|
|
2
|
+
import type { EntityLookup } from '@fayz-ai/admin';
|
|
3
|
+
import type { ReservationsDataProvider } from './data/types';
|
|
4
|
+
import type { ReservationsPluginLabels, ReservationStatusOption, OccasionOption } from './context';
|
|
5
|
+
export interface ReservationsPluginOptions {
|
|
6
|
+
labels?: Partial<ReservationsPluginLabels>;
|
|
7
|
+
statuses?: ReservationStatusOption[];
|
|
8
|
+
occasions?: OccasionOption[];
|
|
9
|
+
dayWindow?: {
|
|
10
|
+
start: string;
|
|
11
|
+
end: string;
|
|
12
|
+
};
|
|
13
|
+
navPosition?: number;
|
|
14
|
+
navSection?: 'main' | 'secondary' | 'settings';
|
|
15
|
+
scope?: PluginScope;
|
|
16
|
+
verticalId?: VerticalId;
|
|
17
|
+
dataProvider?: ReservationsDataProvider;
|
|
18
|
+
/** Ver ResolvedReservationsConfig: quem reservou e uma pessoa cadastrada. */
|
|
19
|
+
clientKind?: string;
|
|
20
|
+
contactLookup?: EntityLookup;
|
|
21
|
+
clientEntityDef?: EntityDef;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Reservations — the seats of a room, held for a time window.
|
|
25
|
+
*
|
|
26
|
+
* NOT `createAgendaPlugin({ bookingKind: 'reservation' })`, which is what
|
|
27
|
+
* resto-saas shipped before this and which drew nine professional columns under
|
|
28
|
+
* the word "Reservas". The agenda schedules a PERSON's time; a restaurant
|
|
29
|
+
* reservation spends a ROOM's capacity. A booking kind renames the axis; it
|
|
30
|
+
* cannot change which resource is scarce.
|
|
31
|
+
*
|
|
32
|
+
* What the two genuinely share is drawn from @fayz-ai/ui — `MiniCalendar` and
|
|
33
|
+
* `DotBadge`, both lifted out of plugin-agenda when this plugin needed them.
|
|
34
|
+
*/
|
|
35
|
+
export declare function createReservationsPlugin(options?: ReservationsPluginOptions): PluginManifest;
|
|
36
|
+
export type { ReservationsDataProvider } from './data/types';
|
|
37
|
+
export { createMockReservationsProvider } from './data/mock';
|
|
38
|
+
export { createCoreReservationsProvider, DEFAULT_SETTINGS, type CoreReservationsProviderOptions, type CoreReservationsWriteOptions, } from './data/core-supabase';
|
|
39
|
+
export type { ResolvedReservationsConfig, ReservationsPluginLabels, ReservationStatusOption, OccasionOption } from './context';
|
|
40
|
+
export type { Reservation, ReservationStatus, CapacityMode, CapacityRule, CapacityException, ReservationSettings, DaySlot, ReservationZone, ReservationTable, Occasion, CreateReservationInput, ReservationQuery, SeatReservationInput, ReservationsSummary, } from './types';
|
|
41
|
+
export { RESERVATION_STATUSES, CAPACITY_MODES, OCCASIONS } from './types';
|
|
42
|
+
export { MIGRATIONS as reservationsMigrations } from './migrations';
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAI5D,OAAO,KAAK,EAA8B,wBAAwB,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AA2C9H,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAA;IAC1C,QAAQ,CAAC,EAAE,uBAAuB,EAAE,CAAA;IACpC,SAAS,CAAC,EAAE,cAAc,EAAE,CAAA;IAC5B,SAAS,CAAC,EAAE;QAAE,KAAK,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