Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -59,6 +59,50 @@ export const indexedEntities = {
|
||||
searchable: ["title", "description"],
|
||||
permission: "tasks.read_all",
|
||||
},
|
||||
// CRM contacts (R-P6). Tenant-scoped; only contacts the user may read_all
|
||||
// surface in global search (the owner/zustaendiger read_own visibility is
|
||||
// enforced at the route layer, not here — mirroring file/task). One entry is
|
||||
// sufficient: a Kontakt is the Oberbegriff for BOTH private persons
|
||||
// (kontaktTyp = privatperson → vorname/nachname) and organisations
|
||||
// (kontaktTyp = organisation → orgName), so there is no separate Firma/Company
|
||||
// model or index — companies search through this same `contact` entry.
|
||||
//
|
||||
// `searchable` lists the `crm-contacts` Meilisearch *document* fields (English,
|
||||
// = crmContactsIndex.searchableAttributes), NOT the German Kontakt columns:
|
||||
// the typed Kontakt fields are projected onto these document keys when indexed
|
||||
// (vorname → firstName, nachname → lastName, orgName → company, primaerEmail →
|
||||
// email), exactly like the existing entity-builder contact feeder
|
||||
// (apps/web/.../rowSearchOutbox.server.ts → rowToContactDocument).
|
||||
contact: {
|
||||
table: "Kontakt",
|
||||
index: "crm-contacts",
|
||||
searchable: ["firstName", "lastName", "email", "company", "jobTitle", "tags"],
|
||||
permission: "crm.read_all",
|
||||
},
|
||||
company: {
|
||||
table: "Kontakt",
|
||||
index: "crm-contacts",
|
||||
searchable: ["company", "email", "tags"],
|
||||
permission: "crm.read_all",
|
||||
},
|
||||
lead: {
|
||||
table: "InboxLead",
|
||||
index: "crm-contacts",
|
||||
searchable: ["firstName", "lastName", "email", "company", "tags"],
|
||||
permission: "leads.read_all",
|
||||
},
|
||||
project: {
|
||||
table: "Projekt",
|
||||
index: "projects",
|
||||
searchable: ["projectNumber", "name", "description", "type", "source"],
|
||||
permission: "projects.read_all",
|
||||
},
|
||||
user: {
|
||||
table: "TenantUser",
|
||||
index: "users",
|
||||
searchable: ["firstName", "lastName", "email"],
|
||||
permission: "app.settings.members.view",
|
||||
},
|
||||
} satisfies Record<string, IndexedEntityConfig>;
|
||||
|
||||
export type IndexedEntityKey = keyof typeof indexedEntities;
|
||||
|
||||
Reference in new issue
Block a user