@fayz-ai/admin 0.18.0 → 0.19.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/CommandPalette-GQ6SPITD.js +297 -0
- package/dist/CommandPalette-GQ6SPITD.js.map +1 -0
- package/dist/{ScheduleEditor-63TVSCJC.js → ScheduleEditor-YZPOCBTW.js} +6 -6
- package/dist/{ScheduleEditor-63TVSCJC.js.map → ScheduleEditor-YZPOCBTW.js.map} +1 -1
- package/dist/SubscriptionPage-JXJ56OOH.js +8 -0
- package/dist/{SubscriptionPage-5PJ25YAD.js.map → SubscriptionPage-JXJ56OOH.js.map} +1 -1
- package/dist/access/headless.d.ts +2 -2
- package/dist/access/limits-registry.d.ts +6 -3
- package/dist/access/limits-registry.d.ts.map +1 -1
- package/dist/app/AdminShell.d.ts.map +1 -1
- package/dist/app/admin-app.d.ts.map +1 -1
- package/dist/app/settings-tabs.store.d.ts +21 -0
- package/dist/app/settings-tabs.store.d.ts.map +1 -0
- package/dist/billing/index.js +2 -2
- package/dist/{chunk-7DFJEXCR.js → chunk-5GWUM4SM.js} +3 -3
- package/dist/{chunk-7DFJEXCR.js.map → chunk-5GWUM4SM.js.map} +1 -1
- package/dist/{chunk-ERDS4OJS.js → chunk-HYDNIBN6.js} +3 -3
- package/dist/{chunk-ERDS4OJS.js.map → chunk-HYDNIBN6.js.map} +1 -1
- package/dist/{chunk-WN6PGQSG.js → chunk-NB6X5O5L.js} +81 -10
- package/dist/chunk-NB6X5O5L.js.map +1 -0
- package/dist/{chunk-LZRLWKJ2.js → chunk-UHHEPU4A.js} +379 -88
- package/dist/chunk-UHHEPU4A.js.map +1 -0
- package/dist/{chunk-VTEP2AQX.js → chunk-WJ3H3RJN.js} +5 -3
- package/dist/chunk-WJ3H3RJN.js.map +1 -0
- package/dist/{chunk-G5PBC5OB.js → chunk-ZNV7Q2TO.js} +8 -8
- package/dist/chunk-ZNV7Q2TO.js.map +1 -0
- package/dist/components/GetStarted.d.ts +45 -0
- package/dist/components/GetStarted.d.ts.map +1 -0
- package/dist/components/RightRail.d.ts.map +1 -1
- package/dist/components/TeachMe.d.ts +83 -0
- package/dist/components/TeachMe.d.ts.map +1 -0
- package/dist/components/auth/SplitLogin.d.ts.map +1 -1
- package/dist/components/billing/SoftLimitProbes.d.ts +5 -0
- package/dist/components/billing/SoftLimitProbes.d.ts.map +1 -0
- package/dist/components/billing/SoftLimitWidget.d.ts +3 -0
- package/dist/components/billing/SoftLimitWidget.d.ts.map +1 -0
- package/dist/components/billing/index.d.ts +3 -1
- package/dist/components/billing/index.d.ts.map +1 -1
- package/dist/components/billing/soft-limit.store.d.ts +23 -0
- package/dist/components/billing/soft-limit.store.d.ts.map +1 -0
- package/dist/components/chat/ChatConversation.d.ts.map +1 -1
- package/dist/components/chat/ChatHistory.d.ts.map +1 -1
- package/dist/components/chat/ChatMessages.d.ts.map +1 -1
- package/dist/components/chat/ConfirmActionCard.d.ts +5 -1
- package/dist/components/chat/ConfirmActionCard.d.ts.map +1 -1
- package/dist/components/chat/index.d.ts +0 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/connect/ConnectorRuns.d.ts +1 -1
- package/dist/components/connect/ConnectorsPanel.d.ts.map +1 -1
- package/dist/components/connect/ConnectorsTab.d.ts.map +1 -1
- package/dist/components/connect/connector-status.d.ts +1 -1
- package/dist/components/connect/model.d.ts +1 -1
- package/dist/components/layout/CommandPalette.d.ts.map +1 -1
- package/dist/components/organization/PermissionProfilesTab.d.ts.map +1 -1
- package/dist/components/settings/LocationsCrudPage.d.ts.map +1 -1
- package/dist/components/settings/SettingsPage.d.ts.map +1 -1
- package/dist/components/shared/RecordPickerModal.d.ts +24 -1
- package/dist/components/shared/RecordPickerModal.d.ts.map +1 -1
- package/dist/components/survey/PublicSurveyPage.d.ts +8 -0
- package/dist/components/survey/PublicSurveyPage.d.ts.map +1 -0
- package/dist/crud/CrudDetailPage.d.ts.map +1 -1
- package/dist/crud/CrudFormPage.d.ts.map +1 -1
- package/dist/crud/CrudListView.d.ts +3 -1
- package/dist/crud/CrudListView.d.ts.map +1 -1
- package/dist/crud/CrudPage.d.ts.map +1 -1
- package/dist/crud/CrudRecordModal.d.ts.map +1 -1
- package/dist/crud/LookupCreateInline.d.ts.map +1 -1
- package/dist/crud/RelatedListTab.d.ts +10 -0
- package/dist/crud/RelatedListTab.d.ts.map +1 -0
- package/dist/crud/archetypes/BookableToggle.d.ts +12 -0
- package/dist/crud/archetypes/BookableToggle.d.ts.map +1 -0
- package/dist/crud/archetypes/DetailTabHeader.d.ts +23 -0
- package/dist/crud/archetypes/DetailTabHeader.d.ts.map +1 -0
- package/dist/crud/archetypes/KanbanBoard.d.ts +89 -0
- package/dist/crud/archetypes/KanbanBoard.d.ts.map +1 -0
- package/dist/crud/archetypes/OrderAmount.d.ts +25 -0
- package/dist/crud/archetypes/OrderAmount.d.ts.map +1 -0
- package/dist/crud/archetypes/OrderBoardView.d.ts +61 -0
- package/dist/crud/archetypes/OrderBoardView.d.ts.map +1 -0
- package/dist/crud/archetypes/OrderCreateScreen.d.ts +116 -0
- package/dist/crud/archetypes/OrderCreateScreen.d.ts.map +1 -0
- package/dist/crud/archetypes/OrderDetailPage.d.ts +35 -0
- package/dist/crud/archetypes/OrderDetailPage.d.ts.map +1 -0
- package/dist/crud/archetypes/OrderDetailRail.d.ts +97 -0
- package/dist/crud/archetypes/OrderDetailRail.d.ts.map +1 -0
- package/dist/crud/archetypes/OrderDetailView.d.ts.map +1 -1
- package/dist/crud/archetypes/OrderFormView.d.ts +20 -1
- package/dist/crud/archetypes/OrderFormView.d.ts.map +1 -1
- package/dist/crud/archetypes/OrderListView.d.ts +59 -1
- package/dist/crud/archetypes/OrderListView.d.ts.map +1 -1
- package/dist/crud/archetypes/OrderPaymentChip.d.ts +8 -0
- package/dist/crud/archetypes/OrderPaymentChip.d.ts.map +1 -0
- package/dist/crud/archetypes/PaymentStatusBadge.d.ts +47 -0
- package/dist/crud/archetypes/PaymentStatusBadge.d.ts.map +1 -0
- package/dist/crud/archetypes/PersonDetailTabs.d.ts.map +1 -1
- package/dist/crud/archetypes/orderVocabulary.d.ts +19 -0
- package/dist/crud/archetypes/orderVocabulary.d.ts.map +1 -0
- package/dist/crud/archetypes/useOrderEditor.d.ts +20 -0
- package/dist/crud/archetypes/useOrderEditor.d.ts.map +1 -0
- package/dist/crud/archetypes/useOrderReceivable.d.ts +46 -0
- package/dist/crud/archetypes/useOrderReceivable.d.ts.map +1 -0
- package/dist/crud/archetypes/useOrdersPaymentStatus.d.ts +15 -0
- package/dist/crud/archetypes/useOrdersPaymentStatus.d.ts.map +1 -0
- package/dist/crud/createCrudPage.d.ts +3 -0
- package/dist/crud/createCrudPage.d.ts.map +1 -1
- package/dist/crud/relation-field.d.ts.map +1 -1
- package/dist/directory/AppSwitcher.d.ts +48 -0
- package/dist/directory/AppSwitcher.d.ts.map +1 -0
- package/dist/directory/FamilyWordmark.d.ts +20 -0
- package/dist/directory/FamilyWordmark.d.ts.map +1 -0
- package/dist/directory/app-id.d.ts +21 -0
- package/dist/directory/app-id.d.ts.map +1 -0
- package/dist/directory/directory.store.d.ts +20 -0
- package/dist/directory/directory.store.d.ts.map +1 -0
- package/dist/directory/index.d.ts +7 -0
- package/dist/directory/index.d.ts.map +1 -0
- package/dist/directory/types.d.ts +43 -0
- package/dist/directory/types.d.ts.map +1 -0
- package/dist/directory/useAppDirectory.d.ts +14 -0
- package/dist/directory/useAppDirectory.d.ts.map +1 -0
- package/dist/hooks/useAITools.d.ts +7 -0
- package/dist/hooks/useAITools.d.ts.map +1 -1
- package/dist/hooks/useAppConfig.d.ts.map +1 -1
- package/dist/hooks/useChat.d.ts +4 -0
- package/dist/hooks/useChat.d.ts.map +1 -1
- package/dist/hooks/useTenant.d.ts +12 -12
- package/dist/hooks/useTenant.d.ts.map +1 -1
- package/dist/index.d.ts +43 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25069 -21491
- package/dist/index.js.map +1 -1
- package/dist/lib/agent-staff.d.ts +46 -96
- package/dist/lib/agent-staff.d.ts.map +1 -1
- package/dist/lib/ai-tool-handlers.d.ts +24 -7
- package/dist/lib/ai-tool-handlers.d.ts.map +1 -1
- package/dist/lib/assistant-invite.d.ts.map +1 -1
- package/dist/lib/bookable-service.d.ts +7 -0
- package/dist/lib/bookable-service.d.ts.map +1 -0
- package/dist/lib/core-ai-tools.d.ts +0 -17
- package/dist/lib/core-ai-tools.d.ts.map +1 -1
- package/dist/lib/fayz-agent.d.ts +2 -0
- package/dist/lib/fayz-agent.d.ts.map +1 -1
- package/dist/lib/product-name.d.ts +38 -0
- package/dist/lib/product-name.d.ts.map +1 -0
- package/dist/lib/tool-search.d.ts +82 -0
- package/dist/lib/tool-search.d.ts.map +1 -0
- package/dist/onboarding/ActivationAgentSurface.d.ts.map +1 -1
- package/dist/onboarding/ActivationChecklistCard.d.ts +11 -1
- package/dist/onboarding/ActivationChecklistCard.d.ts.map +1 -1
- package/dist/onboarding/ActivationProvider.d.ts.map +1 -1
- package/dist/onboarding/WorkspaceSetupFlow.d.ts.map +1 -1
- package/dist/onboarding/business-profile.d.ts +67 -0
- package/dist/onboarding/business-profile.d.ts.map +1 -0
- package/dist/onboarding/checklist.d.ts +10 -0
- package/dist/onboarding/checklist.d.ts.map +1 -1
- package/dist/onboarding/decide.d.ts +23 -0
- package/dist/onboarding/decide.d.ts.map +1 -1
- package/dist/onboarding/guided-runner.d.ts +11 -0
- package/dist/onboarding/guided-runner.d.ts.map +1 -1
- package/dist/onboarding/guided.d.ts +21 -1
- package/dist/onboarding/guided.d.ts.map +1 -1
- package/dist/onboarding/index.d.ts +4 -2
- package/dist/onboarding/index.d.ts.map +1 -1
- package/dist/onboarding/packs/retail.d.ts.map +1 -1
- package/dist/onboarding/programs.d.ts +25 -1
- package/dist/onboarding/programs.d.ts.map +1 -1
- package/dist/onboarding/useWorkspaceSetupGate.d.ts.map +1 -1
- package/dist/onboarding/welcome.d.ts +27 -0
- package/dist/onboarding/welcome.d.ts.map +1 -0
- package/dist/org/WorkspaceChooser.d.ts +20 -0
- package/dist/org/WorkspaceChooser.d.ts.map +1 -0
- package/dist/org/WorkspaceChooserGate.d.ts +21 -0
- package/dist/org/WorkspaceChooserGate.d.ts.map +1 -0
- package/dist/org/WorkspaceSwitching.d.ts +25 -0
- package/dist/org/WorkspaceSwitching.d.ts.map +1 -0
- package/dist/org/WorkspaceSwitchingHost.d.ts +11 -0
- package/dist/org/WorkspaceSwitchingHost.d.ts.map +1 -0
- package/dist/org/adapters/supabase.d.ts +1 -1
- package/dist/org/adapters/supabase.d.ts.map +1 -1
- package/dist/org/choice.d.ts +41 -0
- package/dist/org/choice.d.ts.map +1 -0
- package/dist/org/context.d.ts +8 -0
- package/dist/org/context.d.ts.map +1 -1
- package/dist/org/index.d.ts +12 -1
- package/dist/org/index.d.ts.map +1 -1
- package/dist/org/index.js +4 -4
- package/dist/org/self.d.ts.map +1 -1
- package/dist/org/store.d.ts +2 -1
- package/dist/org/store.d.ts.map +1 -1
- package/dist/org/switching.store.d.ts +27 -0
- package/dist/org/switching.store.d.ts.map +1 -0
- package/dist/permissions/context.d.ts +26 -0
- package/dist/permissions/context.d.ts.map +1 -1
- package/dist/permissions/index.js +1 -1
- package/dist/projects/SeuSiteWidget.d.ts.map +1 -1
- package/dist/setup/SetupAgentSurface.d.ts +2 -0
- package/dist/setup/SetupAgentSurface.d.ts.map +1 -0
- package/dist/setup/format.d.ts +21 -0
- package/dist/setup/format.d.ts.map +1 -0
- package/dist/setup/registry.d.ts +29 -0
- package/dist/setup/registry.d.ts.map +1 -0
- package/dist/setup/validate.d.ts +26 -0
- package/dist/setup/validate.d.ts.map +1 -0
- package/dist/stores/chat.store.d.ts +15 -18
- package/dist/stores/chat.store.d.ts.map +1 -1
- package/dist/stores/createCrudStore.d.ts +2 -0
- package/dist/stores/createCrudStore.d.ts.map +1 -1
- package/dist/tasks/components/TaskDetail.d.ts.map +1 -1
- package/dist/units/UnitMenuSection.d.ts.map +1 -1
- package/dist/units/UnitSwitcher.d.ts.map +1 -1
- package/dist/units/UnitSwitching.d.ts +24 -0
- package/dist/units/UnitSwitching.d.ts.map +1 -0
- package/dist/units/UnitSwitchingHost.d.ts +11 -0
- package/dist/units/UnitSwitchingHost.d.ts.map +1 -0
- package/dist/units/data.d.ts +30 -4
- package/dist/units/data.d.ts.map +1 -1
- package/dist/units/index.d.ts +2 -0
- package/dist/units/index.d.ts.map +1 -1
- package/dist/units/switching.store.d.ts +31 -0
- package/dist/units/switching.store.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/CommandPalette-XY3VOEAV.js +0 -291
- package/dist/CommandPalette-XY3VOEAV.js.map +0 -1
- package/dist/SubscriptionPage-5PJ25YAD.js +0 -8
- package/dist/chunk-G5PBC5OB.js.map +0 -1
- package/dist/chunk-LZRLWKJ2.js.map +0 -1
- package/dist/chunk-VTEP2AQX.js.map +0 -1
- package/dist/chunk-WN6PGQSG.js.map +0 -1
- package/dist/components/billing/SoftLimitBanner.d.ts +0 -5
- package/dist/components/billing/SoftLimitBanner.d.ts.map +0 -1
- package/dist/components/chat/StaffHireView.d.ts +0 -21
- package/dist/components/chat/StaffHireView.d.ts.map +0 -1
- package/dist/components/chat/StaffPitchCard.d.ts +0 -15
- package/dist/components/chat/StaffPitchCard.d.ts.map +0 -1
- package/dist/components/chat/StaffSwitcher.d.ts +0 -23
- package/dist/components/chat/StaffSwitcher.d.ts.map +0 -1
- package/dist/lib/staff-cards.d.ts +0 -11
- package/dist/lib/staff-cards.d.ts.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { OrderListColumn } from './OrderListView';
|
|
2
|
+
export declare const ORDER_KIND_LABELS: Record<string, string>;
|
|
3
|
+
/**
|
|
4
|
+
* The document's own status, as `public.orders` actually holds it.
|
|
5
|
+
*
|
|
6
|
+
* Measured, not invented: these seven are the distinct values in the column
|
|
7
|
+
* today. A fifth vertical vocabulary is exactly what this file exists to stop,
|
|
8
|
+
* so anything not listed falls through to the raw value rather than being
|
|
9
|
+
* guessed at — a status nobody named should look unnamed.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ORDER_STATUS_LABELS: Record<string, string>;
|
|
12
|
+
/** Which of the shared tones a document status reads as. */
|
|
13
|
+
export declare function orderStatusTone(status: string): 'success' | 'warning' | 'destructive' | 'muted' | 'info';
|
|
14
|
+
export declare const ORDER_CHANNEL_LABELS: Record<string, string>;
|
|
15
|
+
/** Venda · Compra · Curso · Compromisso. */
|
|
16
|
+
export declare function orderKindColumn<T>(kindOf: (row: T) => string | null | undefined, header?: string): OrderListColumn<T>;
|
|
17
|
+
/** Balcão · Loja · Salão · Delivery. */
|
|
18
|
+
export declare function orderChannelColumn<T>(channelOf: (row: T) => string | null | undefined, header?: string): OrderListColumn<T>;
|
|
19
|
+
//# sourceMappingURL=orderVocabulary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orderVocabulary.d.ts","sourceRoot":"","sources":["../../../src/crud/archetypes/orderVocabulary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAetD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CASpD,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAStD,CAAA;AAED,4DAA4D;AAC5D,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,OAAO,GAAG,MAAM,CAMxG;AAED,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKvD,CAAA;AAUD,4CAA4C;AAC5C,wBAAgB,eAAe,CAAC,CAAC,EAC/B,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7C,MAAM,SAAS,GACd,eAAe,CAAC,CAAC,CAAC,CAUpB;AAED,wCAAwC;AACxC,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,EAChD,MAAM,SAAU,GACf,eAAe,CAAC,CAAC,CAAC,CAUpB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type OrderDetailRailOrder } from './OrderDetailRail';
|
|
2
|
+
import type { OrderCreateLine } from './OrderCreateScreen';
|
|
3
|
+
export interface OrderEditorSaveResult {
|
|
4
|
+
ok: boolean;
|
|
5
|
+
error?: string;
|
|
6
|
+
}
|
|
7
|
+
/** The archetype's own answer to "is this order still open to changes". */
|
|
8
|
+
export declare function orderIsEditable(order: Pick<OrderDetailRailOrder, 'status'> | null): boolean;
|
|
9
|
+
export declare function useOrderEditor(orderId: string | null): {
|
|
10
|
+
order: OrderDetailRailOrder | null;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
error: string | null;
|
|
13
|
+
lines: OrderCreateLine[];
|
|
14
|
+
setLines: (next: OrderCreateLine[]) => void;
|
|
15
|
+
dirty: boolean;
|
|
16
|
+
saving: boolean;
|
|
17
|
+
editable: boolean;
|
|
18
|
+
save: () => Promise<OrderEditorSaveResult>;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=useOrderEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOrderEditor.d.ts","sourceRoot":"","sources":["../../../src/crud/archetypes/useOrderEditor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAuB1D,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,OAAO,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,GAAG,IAAI,GAAG,OAAO,CAM3F;AA8BD,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG;IACtD,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,KAAK,EAAE,eAAe,EAAE,CAAA;IACxB,QAAQ,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,IAAI,CAAA;IAC3C,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAA;CAC3C,CAoGA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { OrderDetailReceivable, OrderDetailTone } from './OrderDetailView';
|
|
3
|
+
interface InvoiceBalanceRow {
|
|
4
|
+
reference_number?: string | null;
|
|
5
|
+
status: string;
|
|
6
|
+
amount: number;
|
|
7
|
+
paid: number;
|
|
8
|
+
balance: number;
|
|
9
|
+
}
|
|
10
|
+
interface BillRow {
|
|
11
|
+
installment_number?: number | null;
|
|
12
|
+
amount: number;
|
|
13
|
+
paid_amount?: number | null;
|
|
14
|
+
status: string;
|
|
15
|
+
due_date?: string | null;
|
|
16
|
+
}
|
|
17
|
+
export interface OrderReceivable {
|
|
18
|
+
balance: InvoiceBalanceRow;
|
|
19
|
+
bills: BillRow[];
|
|
20
|
+
}
|
|
21
|
+
/** Drop a cached receivable — after a write that changes it. */
|
|
22
|
+
export declare function invalidateOrderReceivable(orderId?: string): void;
|
|
23
|
+
export declare const RECEIVABLE_LABEL: Record<string, string>;
|
|
24
|
+
export declare function receivableTone(value: string): OrderDetailTone;
|
|
25
|
+
export declare function useOrderReceivable(orderId: string | null | undefined): {
|
|
26
|
+
receivable: OrderReceivable | null;
|
|
27
|
+
loading: boolean;
|
|
28
|
+
reload: (force?: boolean) => Promise<void>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* The receivable as the shared block wants it.
|
|
32
|
+
*
|
|
33
|
+
* `money` comes from the caller because currency and locale are the product's,
|
|
34
|
+
* and `actions` because "Registrar recebimento" needs a writer this hook does
|
|
35
|
+
* not have.
|
|
36
|
+
*
|
|
37
|
+
* One instalment is still shown. Hiding it as "not really a schedule" also hid
|
|
38
|
+
* the balance and the button that settles it, on every one-shot order — which
|
|
39
|
+
* is most of them.
|
|
40
|
+
*/
|
|
41
|
+
export declare function toOrderDetailReceivable(receivable: OrderReceivable | null, money: (value: number) => string, options?: {
|
|
42
|
+
actions?: React.ReactNode;
|
|
43
|
+
dateOnly?: (value?: string | null) => string;
|
|
44
|
+
}): OrderDetailReceivable | null;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=useOrderReceivable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOrderReceivable.d.ts","sourceRoot":"","sources":["../../../src/crud/archetypes/useOrderReceivable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AA0B/E,UAAU,iBAAiB;IACzB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,UAAU,OAAO;IACf,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,iBAAiB,CAAA;IAC1B,KAAK,EAAE,OAAO,EAAE,CAAA;CACjB;AAID,gEAAgE;AAChE,wBAAgB,yBAAyB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAGhE;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOnD,CAAA;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAM7D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG;IACtE,UAAU,EAAE,eAAe,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3C,CA6BA;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,eAAe,GAAG,IAAI,EAClC,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EAChC,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAA;CAAO,GACxF,qBAAqB,GAAG,IAAI,CAuB9B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PaymentStatus } from './PaymentStatusBadge';
|
|
2
|
+
export interface OrderPaymentSummary {
|
|
3
|
+
status: PaymentStatus;
|
|
4
|
+
amount: number;
|
|
5
|
+
paid: number;
|
|
6
|
+
balance: number;
|
|
7
|
+
}
|
|
8
|
+
/** Esquece o que se sabia de um pedido — depois de faturar ou receber. */
|
|
9
|
+
export declare function invalidateOrdersPaymentStatus(orderId?: string): void;
|
|
10
|
+
export declare function useOrdersPaymentStatus(orderIds: Array<string | null | undefined>): {
|
|
11
|
+
byOrder: Map<string, OrderPaymentSummary>;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
reload: () => Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useOrdersPaymentStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOrdersPaymentStatus.d.ts","sourceRoot":"","sources":["../../../src/crud/archetypes/useOrdersPaymentStatus.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAmBzD,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,aAAa,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AAiBD,0EAA0E;AAC1E,wBAAgB,6BAA6B,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAGpE;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG;IAClF,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;IACzC,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5B,CA8CA"}
|
|
@@ -27,6 +27,9 @@ interface CreateCrudPageOptions<T extends {
|
|
|
27
27
|
/** Offer "Criar com IA" on the list and lend the assistant this store's write
|
|
28
28
|
* path. See CrudPage.aiCreate / CrudAgentSurface. */
|
|
29
29
|
aiCreate?: CrudAiCreate;
|
|
30
|
+
/** This CRUD is a SECTION of another screen (a related list on a detail page,
|
|
31
|
+
* a cadastro inside a settings tab). See CrudListView.embedded. */
|
|
32
|
+
embedded?: boolean;
|
|
30
33
|
}
|
|
31
34
|
export declare function createCrudPage<T extends {
|
|
32
35
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCrudPage.d.ts","sourceRoot":"","sources":["../../src/crud/createCrudPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAI/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,UAAU,qBAAqB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE;IACtD,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAA;IACd,YAAY,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;IAC9B,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IAC3B,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,UAAU,EAAE,CAAA;IAC5B,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,YAAY,EAAE,CAAA;IAC5D;0DACsD;IACtD,QAAQ,CAAC,EAAE,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"createCrudPage.d.ts","sourceRoot":"","sources":["../../src/crud/createCrudPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAI/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,UAAU,qBAAqB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE;IACtD,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAA;IACd,YAAY,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;IAC9B,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IAC3B,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,UAAU,EAAE,CAAA;IAC5B,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,YAAY,EAAE,CAAA;IAC5D;0DACsD;IACtD,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB;wEACoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EACrD,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,EACvB,OAAO,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,GACjC,KAAK,CAAC,aAAa,GAAG;IAAE,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,CAyDnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relation-field.d.ts","sourceRoot":"","sources":["../../src/crud/relation-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAGlD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAQlD,KAAK,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"relation-field.d.ts","sourceRoot":"","sources":["../../src/crud/relation-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAGlD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAQlD,KAAK,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAqC9C,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAMvE;AAED,gFAAgF;AAChF,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,aAAa,GAAG,SAAS,GAAG;IAChE,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAA;CACjC,CAeA;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,GACZ,EAAE;IACD,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,KAAK,EAAE,GAAG,CAAA;IACV,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,qBAeA;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,GAAG,CAAA;CAAE,qBAKzF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DirectoryApp } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* The brand exactly as the rail has always drawn it.
|
|
5
|
+
*
|
|
6
|
+
* Was `ShellBrand`, local to AdminShell; it lives here now because the switcher
|
|
7
|
+
* has to fall back to it byte for byte, and two copies of "what the brand looks
|
|
8
|
+
* like" is how they drift apart.
|
|
9
|
+
*/
|
|
10
|
+
export declare function BrandFace({ mark, logo, collapsed, }: {
|
|
11
|
+
mark?: React.ReactNode;
|
|
12
|
+
logo?: React.ReactNode;
|
|
13
|
+
collapsed?: boolean;
|
|
14
|
+
}): React.JSX.Element | null;
|
|
15
|
+
/** The launcher body. Split out so it can be asserted without opening a portal. */
|
|
16
|
+
export declare function AppDirectoryMenu({ apps, label, currentMark, pendingId, onSelect, }: {
|
|
17
|
+
apps: DirectoryApp[];
|
|
18
|
+
label?: string;
|
|
19
|
+
/** The host app's own markLogo, for the current row when it has no icon. */
|
|
20
|
+
currentMark?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* The row whose app is being opened right now.
|
|
23
|
+
*
|
|
24
|
+
* The handoff builds a URL and assigns `location`, and between the click and
|
|
25
|
+
* the browser actually leaving there is a gap the user has no account of —
|
|
26
|
+
* long enough on a cold destination to be clicked again. The spinner is that
|
|
27
|
+
* account, and it sits in the same 16px the arrow occupied so the row cannot
|
|
28
|
+
* reflow under the pointer at the exact moment it is being used.
|
|
29
|
+
*/
|
|
30
|
+
pendingId?: string | null;
|
|
31
|
+
onSelect: (app: DirectoryApp) => void;
|
|
32
|
+
}): React.JSX.Element;
|
|
33
|
+
export interface AppSwitcherViewProps {
|
|
34
|
+
apps: DirectoryApp[] | null;
|
|
35
|
+
mark?: React.ReactNode;
|
|
36
|
+
logo?: React.ReactNode;
|
|
37
|
+
/** Handed down by the sidebar slot (see Sidebar's withCollapsed). */
|
|
38
|
+
collapsed?: boolean;
|
|
39
|
+
label?: string;
|
|
40
|
+
onSelect: (app: DirectoryApp) => void;
|
|
41
|
+
}
|
|
42
|
+
export declare function AppSwitcherView({ apps, mark, logo, collapsed, label, onSelect }: AppSwitcherViewProps): React.JSX.Element;
|
|
43
|
+
export declare function AppSwitcher({ mark, logo, collapsed, }: {
|
|
44
|
+
mark?: React.ReactNode;
|
|
45
|
+
logo?: React.ReactNode;
|
|
46
|
+
collapsed?: boolean;
|
|
47
|
+
}): React.JSX.Element;
|
|
48
|
+
//# sourceMappingURL=AppSwitcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppSwitcher.d.ts","sourceRoot":"","sources":["../../src/directory/AppSwitcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAe9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AA0L3C;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,IAAI,EACJ,SAAiB,GAClB,EAAE;IACD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,4BAOA;AAED,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAsB,EACtB,WAAW,EACX,SAAgB,EAChB,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,YAAY,EAAE,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4EAA4E;IAC5E,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,QAAQ,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,IAAI,CAAA;CACtC,qBAgEA;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;IAC3B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,qEAAqE;IACrE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,IAAI,CAAA;CACtC;AAgDD,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAiB,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,oBAAoB,qBAuK7G;AAmCD,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,IAAI,EACJ,SAAiB,GAClB,EAAE;IACD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,qBAQA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface FamilyWordmarkProps {
|
|
3
|
+
/** The product's OUTWARD name, e.g. "StoreControl". */
|
|
4
|
+
name: string;
|
|
5
|
+
/** The app's own glyph. Never animated — it is the anchor. */
|
|
6
|
+
mark?: React.ReactNode;
|
|
7
|
+
/** Menu open: the suffix comes apart and the launcher takes its place. */
|
|
8
|
+
open: boolean;
|
|
9
|
+
/** Pointer or focus is on the trigger — warms the suffix, does not dissolve it. */
|
|
10
|
+
warm: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* `[◎] Store Control` where `Control` is the door.
|
|
14
|
+
*
|
|
15
|
+
* Returns `null` when the name is not a family name — the caller falls back to
|
|
16
|
+
* the app's own logo node, which is what every app outside the Control family
|
|
17
|
+
* still ships.
|
|
18
|
+
*/
|
|
19
|
+
export declare function FamilyWordmark({ name, mark, open, warm }: FamilyWordmarkProps): React.ReactElement | null;
|
|
20
|
+
//# sourceMappingURL=FamilyWordmark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FamilyWordmark.d.ts","sourceRoot":"","sources":["../../src/directory/FamilyWordmark.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA2J9B,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAA;IACZ,8DAA8D;IAC9D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,0EAA0E;IAC1E,IAAI,EAAE,OAAO,CAAA;IACb,mFAAmF;IACnF,IAAI,EAAE,OAAO,CAAA;CACd;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CA2DzG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which application THIS bundle is.
|
|
3
|
+
*
|
|
4
|
+
* The switcher needs it for one thing only: to know which tile is the one you
|
|
5
|
+
* are already looking at. Everything else about an app — its name, icon, colour
|
|
6
|
+
* and URL — comes from the `app.apps` registry, so a rename is a row and not a
|
|
7
|
+
* release.
|
|
8
|
+
*
|
|
9
|
+
* Until now the only identity an app carried was `VITE_FAYZ_PROJECT_ID`, a
|
|
10
|
+
* platform project uuid. That is a poor answer to "which product is this": the
|
|
11
|
+
* ids for the shop already disagree between the app's own `.env` and the
|
|
12
|
+
* platform's seed script, and nothing would have caught it, because a uuid does
|
|
13
|
+
* not look wrong. `VITE_APP_ID` is the registry key instead — it matches
|
|
14
|
+
* `app.apps.id`, and a typo shows up as "nothing is highlighted" on the first
|
|
15
|
+
* run rather than as a wrong tile months later.
|
|
16
|
+
*
|
|
17
|
+
* Unset is a legitimate answer: the switcher lists every app the account runs
|
|
18
|
+
* and highlights none, which is right for a bundle nobody has claimed yet.
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveAppId(): string | null;
|
|
21
|
+
//# sourceMappingURL=app-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-id.d.ts","sourceRoot":"","sources":["../../src/directory/app-id.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,IAAI,MAAM,GAAG,IAAI,CAK5C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DirectoryApp } from './types';
|
|
2
|
+
export interface AppDirectoryDeps {
|
|
3
|
+
/** Injected for tests. Defaults to the app's ambient Supabase client. */
|
|
4
|
+
client?: unknown;
|
|
5
|
+
}
|
|
6
|
+
interface AppDirectoryState {
|
|
7
|
+
apps: DirectoryApp[] | null;
|
|
8
|
+
/** `idle` is the only state that will start a load — one per tenant. */
|
|
9
|
+
status: 'idle' | 'loading' | 'done';
|
|
10
|
+
/** Which tenant the current list belongs to, so switching accounts reloads. */
|
|
11
|
+
tenantId: string | null;
|
|
12
|
+
load: (tenantId: string, currentAppId: string | null, deps?: AppDirectoryDeps) => Promise<void>;
|
|
13
|
+
reset: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function normalize(apps: unknown, currentAppId: string | null): DirectoryApp[] | null;
|
|
16
|
+
export declare const useAppDirectoryStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AppDirectoryState>>;
|
|
17
|
+
/** Drop the directory on sign-out — the next user's apps are not this one's. */
|
|
18
|
+
export declare function resetAppDirectory(): void;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=directory.store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directory.store.d.ts","sourceRoot":"","sources":["../../src/directory/directory.store.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAoB3C,MAAM,WAAW,gBAAgB;IAC/B,yEAAyE;IACzE,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,UAAU,iBAAiB;IACzB,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;IAC3B,wEAAwE;IACxE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAA;IACnC,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/F,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAID,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,YAAY,EAAE,GAAG,IAAI,CAiB3F;AAED,eAAO,MAAM,oBAAoB,gFA2B9B,CAAA;AAEH,gFAAgF;AAChF,wBAAgB,iBAAiB,IAAI,IAAI,CAExC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { AppSwitcher, AppSwitcherView, AppDirectoryMenu, BrandFace } from './AppSwitcher';
|
|
2
|
+
export type { AppSwitcherViewProps } from './AppSwitcher';
|
|
3
|
+
export { useAppDirectory } from './useAppDirectory';
|
|
4
|
+
export { useAppDirectoryStore, resetAppDirectory } from './directory.store';
|
|
5
|
+
export { resolveAppId } from './app-id';
|
|
6
|
+
export type { DirectoryApp } from './types';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/directory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzF,YAAY,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One application the signed-in tenant runs.
|
|
3
|
+
*
|
|
4
|
+
* Shape is `app_config().apps`, from `app.tenant_apps` joined to `app.apps`
|
|
5
|
+
* (migration 001). It used to be the platform's `GET /directory/apps`, which
|
|
6
|
+
* existed because each product had its own Supabase pool and the same merchant
|
|
7
|
+
* was two different `auth.users` — so "which products are the same merchant"
|
|
8
|
+
* could only be ASSERTED, by hand, in a table on the platform. On one cluster it
|
|
9
|
+
* is a join, and the database is the only place that can answer it correctly.
|
|
10
|
+
*
|
|
11
|
+
* `current` marks the app doing the asking, resolved from its own app id rather
|
|
12
|
+
* than returned by the server: the row is the same for every app that reads it.
|
|
13
|
+
*/
|
|
14
|
+
export interface DirectoryApp {
|
|
15
|
+
/** Registry id — 'resto', 'shop', 'beauty', 'school'. */
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
url: string;
|
|
19
|
+
current: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Lucide icon name (e.g. "ChefHat"), for products with no hosted image.
|
|
22
|
+
*
|
|
23
|
+
* Resolved through `getLucideIcon`, which is a curated registry rather than
|
|
24
|
+
* all of lucide — a name outside it falls through to initials instead of
|
|
25
|
+
* dragging ~500KB of icons into every app that shows a launcher.
|
|
26
|
+
*/
|
|
27
|
+
icon?: string | null;
|
|
28
|
+
/** A hosted logo, when the app has one. Wins over `icon`. */
|
|
29
|
+
iconUrl?: string | null;
|
|
30
|
+
/** Hex tint for the icon tile, e.g. "#0F9D58". Ignored if not a hex colour. */
|
|
31
|
+
accentColor?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* The account this tile opens (008). The active one when it runs the app;
|
|
34
|
+
* otherwise the account that does — which is what makes StudioControl
|
|
35
|
+
* reachable from a restaurant account instead of merely absent.
|
|
36
|
+
*
|
|
37
|
+
* Null on a pool predating 008: there, every listed app is the active
|
|
38
|
+
* tenant's, so the handoff falls back to the active tenant and behaves as it
|
|
39
|
+
* did before.
|
|
40
|
+
*/
|
|
41
|
+
tenantId?: string | null;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/directory/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,YAAY;IAC3B,yDAAyD;IACzD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,OAAO,CAAA;IAChB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DirectoryApp } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The apps this account runs, or null when there are none to read.
|
|
4
|
+
*
|
|
5
|
+
* Keyed on the ACTIVE TENANT rather than on the session: the same user in two
|
|
6
|
+
* accounts is two different answers, and the switcher is on screen while
|
|
7
|
+
* `switchOrg` runs. Reading the tenant from core's store rather than from the
|
|
8
|
+
* org context keeps this a sidebar slot with no opinion about whether the app
|
|
9
|
+
* is allowed to render.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useAppDirectory(): {
|
|
12
|
+
apps: DirectoryApp[] | null;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useAppDirectory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAppDirectory.d.ts","sourceRoot":"","sources":["../../src/directory/useAppDirectory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C;;;;;;;;GAQG;AACH,wBAAgB,eAAe,IAAI;IAAE,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;CAAE,CAUjE"}
|
|
@@ -13,7 +13,14 @@ export interface ResolvedToolGroup {
|
|
|
13
13
|
tools: ResolvedToolEntry[];
|
|
14
14
|
}
|
|
15
15
|
export declare function useAITools(): {
|
|
16
|
+
/** Everything this app can do. What SHIPS with a turn is a subset — see
|
|
17
|
+
* `pinned` and lib/tool-search.ts. */
|
|
16
18
|
tools: PluginAITool[];
|
|
19
|
+
/** Names that ride along on every turn: the primitives, the search itself,
|
|
20
|
+
* and whatever the open screen published. */
|
|
21
|
+
pinned: Set<string>;
|
|
22
|
+
/** The half `findTools` searches — everything not pinned. */
|
|
23
|
+
searchable: PluginAITool[];
|
|
17
24
|
/** Plugin owning the current route, or null on non-plugin pages. */
|
|
18
25
|
activePluginId: string | null;
|
|
19
26
|
suggestions: ResolvedSuggestion[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAITools.d.ts","sourceRoot":"","sources":["../../src/hooks/useAITools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAITools.d.ts","sourceRoot":"","sources":["../../src/hooks/useAITools.ts"],"names":[],"mappings":"AAYA,OAAO,yBAAyB,CAAA;AAKhC,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAEtE,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,YAAY,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAC3B;AAwCD,wBAAgB,UAAU,IAAI;IAC5B;2CACuC;IACvC,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB;kDAC8C;IAC9C,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACnB,6DAA6D;IAC7D,UAAU,EAAE,YAAY,EAAE,CAAA;IAC1B,oEAAoE;IACpE,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,WAAW,EAAE,kBAAkB,EAAE,CAAA;IACjC,oFAAoF;IACpF,qBAAqB,EAAE,kBAAkB,EAAE,CAAA;IAC3C,UAAU,EAAE,iBAAiB,EAAE,CAAA;CAChC,CAyHA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useAppConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAppConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useAppConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuC,sBAAsB,EAAE,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;AAwB3G,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,SAAS,CAAA;IACjB,gDAAgD;IAChD,YAAY,EAAE,OAAO,CAAA;IACrB,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,2CAA2C;IAC3C,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,0FAA0F;IAC1F,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,OAAO,CAAA;IAChD,iFAAiF;IACjF,QAAQ,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAA;IACnD,6EAA6E;IAC7E,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC7B;AAeD,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,kBAAkB,CAmGhF"}
|
package/dist/hooks/useChat.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export declare function useChat(options?: UseChatOptions): {
|
|
|
23
23
|
pendingAction: import("../stores/chat.store").PendingAgentAction | null;
|
|
24
24
|
/** Card decision: true executes/approves, false declines. */
|
|
25
25
|
resolvePendingAction: (approved: boolean, values?: Record<string, unknown>) => void;
|
|
26
|
+
/** Writes of the same tool queued behind `pendingAction`. */
|
|
27
|
+
pendingSameTool: number;
|
|
28
|
+
/** One answer for the head and every queued write of the same tool. */
|
|
29
|
+
resolveAllPending: (approved: boolean) => void;
|
|
26
30
|
/** Tool names executing right now (live activity chips). */
|
|
27
31
|
activeTools: string[];
|
|
28
32
|
/** History drawer data + actions. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChat.d.ts","sourceRoot":"","sources":["../../src/hooks/useChat.ts"],"names":[],"mappings":"AACA,OAAO,EAA4C,KAAK,WAAW,EAAuB,MAAM,sBAAsB,CAAA;AAgCtH,OAAO,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"useChat.d.ts","sourceRoot":"","sources":["../../src/hooks/useChat.ts"],"names":[],"mappings":"AACA,OAAO,EAA4C,KAAK,WAAW,EAAuB,MAAM,sBAAsB,CAAA;AAgCtH,OAAO,2BAA2B,CAAA;AAWlC,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,mBAAmB,CAAA;AA6B1B,UAAU,cAAc;IACtB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uEAAuE;IACvE,KAAK,CAAC,EAAE,yBAAyB,GAAG,KAAK,CAAA;CAC1C;AAED,wBAAgB,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc;;;;IA0kB5C,yFAAyF;;2BA7NzE,MAAM;;;;IAmOtB;oDACgD;;IAEhD,6DAA6D;;IAE7D,6DAA6D;;IAE7D,uEAAuE;;IAEvE,4DAA4D;;IAE5D,qCAAqC;;;;;;;yCA/Fd,MAAM;;EAqGhC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import type { TenantSettings } from '../types';
|
|
1
|
+
import type { TenantSettings, TenantMember, MemberRole } from '../types';
|
|
2
2
|
export declare function useTenant(): {
|
|
3
3
|
tenant: import("../types").Tenant | null;
|
|
4
|
-
members:
|
|
5
|
-
currentRole:
|
|
4
|
+
members: TenantMember[];
|
|
5
|
+
currentRole: MemberRole | null;
|
|
6
6
|
loading: boolean;
|
|
7
7
|
fetchTenant: (tenantId: string) => Promise<any>;
|
|
8
8
|
fetchMembers: () => Promise<{
|
|
9
|
-
id:
|
|
10
|
-
userId:
|
|
11
|
-
tenantId:
|
|
12
|
-
role:
|
|
9
|
+
id: string;
|
|
10
|
+
userId: string;
|
|
11
|
+
tenantId: string;
|
|
12
|
+
role: MemberRole;
|
|
13
13
|
user: {
|
|
14
|
-
id:
|
|
15
|
-
email:
|
|
16
|
-
fullName:
|
|
17
|
-
avatarUrl:
|
|
14
|
+
id: string;
|
|
15
|
+
email: string;
|
|
16
|
+
fullName: string;
|
|
17
|
+
avatarUrl: string | undefined;
|
|
18
18
|
};
|
|
19
|
-
joinedAt:
|
|
19
|
+
joinedAt: string;
|
|
20
20
|
}[]>;
|
|
21
21
|
updateSettings: (settings: Partial<TenantSettings>) => Promise<any>;
|
|
22
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTenant.d.ts","sourceRoot":"","sources":["../../src/hooks/useTenant.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"useTenant.d.ts","sourceRoot":"","sources":["../../src/hooks/useTenant.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAExE,wBAAgB,SAAS;;;;;4BAI0B,MAAM;;;;;cAkEnB,UAAU;;;;;;;;;+BAmBM,OAAO,CAAC,cAAc,CAAC;EAmC5E"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { RouteErrorBoundary, RouteErrorScreen } from './app/RouteErrorBoundary';
|
|
|
8
8
|
export type { RouteErrorBoundaryProps, RouteErrorScreenProps } from './app/RouteErrorBoundary';
|
|
9
9
|
export { useNavContribution, useNavContributionsStore } from './app/nav-contributions.store';
|
|
10
10
|
export { useContextualNav, useContextualNavStore, useShellRailAvailable, type ContextualNav } from './app/contextual-nav.store';
|
|
11
|
+
export { useSettingsTabsStore } from './app/settings-tabs.store';
|
|
11
12
|
export type { FayzProject, FayzProjectKind, CreateFayzProjectInput, UpdateFayzProjectInput } from './projects/types';
|
|
12
13
|
export { listFayzProjects, getDefaultFayzProject, createFayzProject, updateFayzProject, deleteFayzProject } from './projects/provider';
|
|
13
14
|
export { useFayzProjectsStore, defaultProjectOf } from './projects/store';
|
|
@@ -27,9 +28,33 @@ export { ClientOrdersTab } from './crud/archetypes/ClientOrdersTab';
|
|
|
27
28
|
export { OrderDetailView, OrderDetailSkeleton, OrderDetailBlock, OrderDetailRow, } from './crud/archetypes/OrderDetailView';
|
|
28
29
|
export type { OrderDetailData, OrderDetailItem, OrderDetailTotalRow, OrderDetailBadge, OrderDetailReceivable, OrderDetailInstallment, OrderDetailTone, } from './crud/archetypes/OrderDetailView';
|
|
29
30
|
export { OrderFormView, OrderFormSkeleton, OrderFormBlock, OrderFormItemsCard, OrderFormItemRow, OrderFormAddItemStep, } from './crud/archetypes/OrderFormView';
|
|
31
|
+
export { OrderCreateScreen, mergeLines } from './crud/archetypes/OrderCreateScreen';
|
|
32
|
+
export type { OrderCreateScreenProps, OrderCreateLine, OrderCreateVariant, OrderCreateTotalRow, OrderCreateItemSearch, } from './crud/archetypes/OrderCreateScreen';
|
|
30
33
|
export type { OrderFormViewProps, OrderFormItemsCardProps, OrderFormItemRowProps, OrderFormItemValue, OrderFormItemType, OrderFormItemLabels, } from './crud/archetypes/OrderFormView';
|
|
31
34
|
export { OrderListView } from './crud/archetypes/OrderListView';
|
|
32
|
-
export
|
|
35
|
+
export { KanbanBoard, BoardFrame } from './crud/archetypes/KanbanBoard';
|
|
36
|
+
export type { KanbanBoardProps, KanbanColumnDef, BoardFrameProps } from './crud/archetypes/KanbanBoard';
|
|
37
|
+
export { DetailTabHeader } from './crud/archetypes/DetailTabHeader';
|
|
38
|
+
export { OrderDetailRail, useOrderDetail } from './crud/archetypes/OrderDetailRail';
|
|
39
|
+
export { OrderDetailPage } from './crud/archetypes/OrderDetailPage';
|
|
40
|
+
export type { OrderDetailPageProps } from './crud/archetypes/OrderDetailPage';
|
|
41
|
+
export { useOrderReceivable, toOrderDetailReceivable, invalidateOrderReceivable, RECEIVABLE_LABEL, receivableTone, } from './crud/archetypes/useOrderReceivable';
|
|
42
|
+
export type { OrderReceivable } from './crud/archetypes/useOrderReceivable';
|
|
43
|
+
export { PaymentStatusBadge, PAYMENT_STATUS_LABEL, PAYMENT_STATUS_CONFIG } from './crud/archetypes/PaymentStatusBadge';
|
|
44
|
+
export type { PaymentStatus, PaymentDetailLine, PaymentStatusBadgeProps } from './crud/archetypes/PaymentStatusBadge';
|
|
45
|
+
export { useOrdersPaymentStatus, invalidateOrdersPaymentStatus } from './crud/archetypes/useOrdersPaymentStatus';
|
|
46
|
+
export type { OrderPaymentSummary } from './crud/archetypes/useOrdersPaymentStatus';
|
|
47
|
+
export { OrderPaymentChip } from './crud/archetypes/OrderPaymentChip';
|
|
48
|
+
export type { OrderPaymentChipProps } from './crud/archetypes/OrderPaymentChip';
|
|
49
|
+
export { OrderAmount } from './crud/archetypes/OrderAmount';
|
|
50
|
+
export type { OrderAmountProps } from './crud/archetypes/OrderAmount';
|
|
51
|
+
export { useOrderEditor, orderIsEditable } from './crud/archetypes/useOrderEditor';
|
|
52
|
+
export type { OrderEditorSaveResult } from './crud/archetypes/useOrderEditor';
|
|
53
|
+
export type { OrderDetailRailProps, OrderDetailRailOrder, OrderRailAction } from './crud/archetypes/OrderDetailRail';
|
|
54
|
+
export type { OrderListColumn, OrderListStat, OrderListViewProps, OrderBulkAction, OrderView } from './crud/archetypes/OrderListView';
|
|
55
|
+
export { OrderBoardView } from './crud/archetypes/OrderBoardView';
|
|
56
|
+
export type { OrderBoardColumn, OrderBoardConfig, OrderBoardViewProps } from './crud/archetypes/OrderBoardView';
|
|
57
|
+
export { orderKindColumn, orderChannelColumn, ORDER_KIND_LABELS, ORDER_CHANNEL_LABELS } from './crud/archetypes/orderVocabulary';
|
|
33
58
|
export type { ClientOrdersProvider, ClientOrdersQuery, ClientOrdersNavigator, ClientDocument, ClientDocumentStage, ClientOrdersStageFilter } from './types/client-orders';
|
|
34
59
|
export { createClientOrdersProvider } from './lib/create-client-orders-provider';
|
|
35
60
|
export { createArchetypeLookup, registerPersonLookup, getPersonLookup } from './crud/archetype-lookup';
|
|
@@ -39,8 +64,8 @@ export type { TimelineItem, TimelineSource, TimelineFetchArgs } from './timeline
|
|
|
39
64
|
export { createFayzSupabaseClient, getFayzSupabaseClient, getFayzSupabaseClientOptional, } from './data/client';
|
|
40
65
|
export { createSupabaseOrgAdapter, createMockOrgAdapter, useOrganizationStore, getPersistedOrgId, ORG_CACHE_TTL_MS, readOrgSnapshot, clearOrgSnapshot, OrgProvider, useTenant, useTenantOptional, useOrgAdapter, useOrgAdapterOptional, } from './org/index';
|
|
41
66
|
export type { SupabaseOrgAdapterConfig, OrgStore, OrgSnapshot, OrgProviderProps, TenantContext, } from './org/index';
|
|
42
|
-
export { WorkspaceSetupFlow, WorkspaceSetupGate, useWorkspaceSetupGate, useWorkspaceSetupBusy, useWorkspaceSetupStore, resolveSetupMode, buildWorkspaceSetupSteps, slugify, inferVerticalId, brandMark, connectorOptions, connectorRows, OTHER_CONNECTOR, getQuestionPack, resolveVerticalId, QUESTION_PACKS, beautyPack, foodPack, retailPack, submitWorkspaceSetup, checkSlugAvailable, createLogoUploader, recordOnboardingResponse, WORKSPACE_SETUP_FLOW_ID, WORKSPACE_SETUP_FLOW_VERSION, WORKSPACE_SETUP_ROUTE, } from './onboarding';
|
|
43
|
-
export type { WorkspaceSetupFlowProps, WorkspaceSetupGateProps, WorkspaceSetupGateState, SetupMode, SubmitWorkspaceSetupInput, QuestionPack, SetupAnswers, SetupContext, SetupSource, ConnectorOptionsFilter, } from './onboarding';
|
|
67
|
+
export { WorkspaceSetupFlow, WorkspaceSetupGate, useWorkspaceSetupGate, useWorkspaceSetupBusy, useWorkspaceSetupStore, resolveSetupMode, buildWorkspaceSetupSteps, slugify, inferVerticalId, brandMark, connectorOptions, connectorRows, OTHER_CONNECTOR, getQuestionPack, resolveVerticalId, QUESTION_PACKS, beautyPack, foodPack, retailPack, submitWorkspaceSetup, checkSlugAvailable, createLogoUploader, recordOnboardingResponse, WORKSPACE_SETUP_FLOW_ID, WORKSPACE_SETUP_FLOW_VERSION, WORKSPACE_SETUP_ROUTE, readSetupAnswers, ActivationProvider, ActivationChecklistCard, GettingStartedWidget, useActivationStore, startGuidedRun, ensureChecklist, useBusinessProfileStore, buildBusinessProfile, businessProfileBlock, currentBusinessProfileBlock, runWelcome, orientationTour, } from './onboarding';
|
|
68
|
+
export type { WorkspaceSetupFlowProps, WorkspaceSetupGateProps, WorkspaceSetupGateState, SetupMode, SubmitWorkspaceSetupInput, QuestionPack, SetupAnswers, SetupContext, SetupSource, ConnectorOptionsFilter, BusinessProfile, BusinessFact, WelcomeInput, ActivationChecklistCardProps, } from './onboarding';
|
|
44
69
|
export { usePermissionsStore, PermissionsProvider, usePermission, usePermissionOptional, useHasPermission, usePermissions, } from './permissions/index';
|
|
45
70
|
export type { PermissionsStore, PermissionsProviderProps } from './permissions/index';
|
|
46
71
|
export { AccessProvider, useAccess, useAccessOptional, useLimit, useLimitGuard, useModuleNavAccess, resolveAccess, isEntitledByPlan, invalidateLimit, useUpgradeModalStore, getAccessSnapshot, checkAccess, guardLimit, agentDenial, UPGRADE_URL, } from './access/index';
|
|
@@ -55,6 +80,8 @@ export { setConnectorRuntimeTokenSource, getConnectorRuntimeTokenSource, Connect
|
|
|
55
80
|
export type { ConnectorRuntimeTokenSource as ConnectorRuntimeTokenPort } from '@fayz-ai/core';
|
|
56
81
|
export { ConnectorOAuthError, ConnectorOAuthStarterMissingError, createFayzConnectorOAuthStarter, fayzConnectorOAuth, getConnectorOAuthStarter, setConnectorOAuthStarter, startConnectorOAuth, } from '@fayz-ai/sdk';
|
|
57
82
|
export type { ConnectorOAuthStarter, FayzConnectorOAuthStarterOptions, StartConnectorOAuthInput, } from '@fayz-ai/sdk';
|
|
83
|
+
export { createFayzConnectorAccountSource, describeConnectorAccount, getConnectorAccountSource, setConnectorAccountSource, } from '@fayz-ai/sdk';
|
|
84
|
+
export type { ConnectorAccountInfo, ConnectorAccountSource, DescribeConnectorAccountInput, FayzConnectorAccountSourceOptions, } from '@fayz-ai/sdk';
|
|
58
85
|
export { CredentialSinkMissingError, needsCredentialSink, splitConnectorValues, submitConnection, } from './components/connect';
|
|
59
86
|
export type { NonSecretValues } from './components/connect';
|
|
60
87
|
export { useConnectors, connectorRoute } from './components/connect';
|
|
@@ -64,7 +91,7 @@ export type { ConnectorState, ConnectorFilter } from './components/connect';
|
|
|
64
91
|
export { UpgradePrompt } from './components/billing/UpgradePrompt';
|
|
65
92
|
export type { UpgradePromptProps } from './components/billing/UpgradePrompt';
|
|
66
93
|
export type { BillingStore, BillingState, Subscription, Invoice } from './billing/index';
|
|
67
|
-
export type { Organization, OrgMember, OrgMembership, OrgAdapter, Location, Invite, CreateOrgOptions, AuthAdapter, AuthUser, AuthSession, PermissionsConfig, FeatureDeclaration, PermissionAction, PermissionProfile, PluginManifest, PluginScope, PluginRuntime, ThemeMode, ThemeBrand, ThemeRadius, LocaleConfig, BillingConfig, Plan, EntityDef, ConnectorDefinition, FieldDef, FieldType, FieldGroup, FieldRelation, DetailTab, FormLayout, EntityImageConfig, ComputedFieldValue, } from '@fayz-ai/core';
|
|
94
|
+
export type { Organization, OrgMember, OrgMembership, OrgAdapter, Location, Invite, CreateOrgOptions, AuthAdapter, AuthUser, AuthSession, PermissionsConfig, FeatureDeclaration, PermissionAction, PermissionProfile, PluginManifest, PluginScope, PluginRuntime, OnboardingProgramDef, OnboardingStepDef, OnboardingMove, ResolvedOnboardingProgram, TourDef, TourStopDef, ThemeMode, ThemeBrand, ThemeRadius, LocaleConfig, BillingConfig, Plan, EntityDef, ConnectorDefinition, FieldDef, FieldType, FieldGroup, FieldRelation, DetailTab, RelatedList, FormLayout, EntityImageConfig, ComputedFieldValue, } from '@fayz-ai/core';
|
|
68
95
|
import { renderApp as coreRenderApp } from '@fayz-ai/core';
|
|
69
96
|
export declare const renderApp: typeof coreRenderApp;
|
|
70
97
|
export { getSupabaseClientOptional, getActiveTenantId, useActiveTenantId, setCurrentLocale, preloadLocale, getCurrentLocale, getActiveLocale, tl, resolveBackendEnv, createSafeDataProvider, formatDate, formatDateTime, } from '@fayz-ai/core';
|
|
@@ -98,6 +125,7 @@ export { useAppConfigStore, activePluginIds, hasPlugin } from './stores/app-conf
|
|
|
98
125
|
export { useTenantPluginSettings } from './hooks/useTenantPluginSettings';
|
|
99
126
|
export type { TenantPluginSettings } from './hooks/useTenantPluginSettings';
|
|
100
127
|
export { setScheduleBlockConfig, getScheduleBlockConfig, subscribeScheduleBlockConfig } from './lib/schedule-config';
|
|
128
|
+
export { getPersonBookable, setPersonBookable } from './lib/bookable-service';
|
|
101
129
|
export { useChatStore } from './stores/chat.store';
|
|
102
130
|
export type { UploadRequest } from './stores/chat.store';
|
|
103
131
|
export { requestChatUpload } from './lib/chat-upload';
|
|
@@ -111,9 +139,19 @@ export { AssistantInvite } from './components/chat';
|
|
|
111
139
|
export type { AssistantInviteProps } from './components/chat';
|
|
112
140
|
export { AskAIButton, AskAIMenuItem, askAI } from './components/AskAI';
|
|
113
141
|
export type { AskAIButtonProps, AskAIMenuItemProps, AskAIOptions, AskAIIntro } from './components/AskAI';
|
|
142
|
+
export { TeachMeLink, SetupMeLink, useTeachMe, useFeatureHelp, helpWith, teachMe, setUpWithMe } from './components/TeachMe';
|
|
143
|
+
export { GetStarted } from './components/GetStarted';
|
|
144
|
+
export type { GetStartedProps, GetStartedStep } from './components/GetStarted';
|
|
145
|
+
export type { TeachMeDef, TeachMeLinkProps, SetupMeLinkProps, TeachMeMode } from './components/TeachMe';
|
|
146
|
+
export { registerSetupGuides, listSetupGuides, getSetupGuide, getSetupGuideForStep, searchSetupGuides, } from './setup/registry';
|
|
147
|
+
export { formatSetupGuide, summariseSetupGuides } from './setup/format';
|
|
148
|
+
export { validateSetupGuides } from './setup/validate';
|
|
149
|
+
export type { ValidateSetupGuidesOptions } from './setup/validate';
|
|
150
|
+
export { SetupAgentSurface } from './setup/SetupAgentSurface';
|
|
114
151
|
export { useAssistantInviteStore } from './lib/assistant-invite';
|
|
115
152
|
export type { AssistantInviteDef, AssistantInviteSuggestion } from './lib/assistant-invite';
|
|
116
|
-
export {
|
|
153
|
+
export { useAgentStore, useAgent, useActiveAgent, getAgent, getActiveAgent, getHost, soleAgent, openAssistantAs, } from './lib/agent-staff';
|
|
154
|
+
export { ALWAYS_ON_TOOLS, loadArea, loadTools, loadedToolNames, resetLoadedTools, } from './lib/tool-search';
|
|
117
155
|
export { usePublishAssistantActivity, useRegisterAssistantLauncher, useAssistantActivity, useAssistantLaunchers, useLaunchersForRole, publishAssistantActivity, withdrawAssistantActivity, registerAssistantLauncher, unregisterAssistantLauncher, formatActivityElapsed, openAssistant, } from './lib/assistant-activity';
|
|
118
156
|
export type { AssistantActivity, AssistantActivityAction, AssistantActivityState, AssistantActionIntent, AssistantLauncher, } from './lib/assistant-activity';
|
|
119
157
|
export { resolveFayzAgentConnection, getFayzAgentClient } from './lib/fayz-agent';
|