Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -61,6 +61,14 @@ describe("logActivity", () => {
expect(create.mock.calls[0]?.[0].data.actorUserId).toBeNull();
});
it("accepts the canonical missed-call activity type", async () => {
const { client, create } = makeMockClient();
await logActivity({ ...base, activityType: "call_missed" }, { client });
expect(create.mock.calls[0]?.[0].data.activityType).toBe("call_missed");
});
it("requires tenantId, subjectId and a non-empty summaryText", async () => {
const { client } = makeMockClient();
@@ -12,6 +12,7 @@ export type ActivityActorKind = "user" | "system" | "automation" | "ki_agent";
*/
export type ActivityType =
| "call_inbound"
| "call_missed"
| "call_outbound"
| "email_sent"
| "email_received"
@@ -24,8 +25,14 @@ export type ActivityType =
| "assignee_changed"
| "deal_stage_changed"
| "project_stage_changed"
| "project_updated" // P8 Projekt core (R-P8a) — Stammdaten inline-edit
| "project_member_added"
| "project_member_removed"
| "project_appointment_created"
// WF-P8 S02-N / M04 — project notes and the pipeline handover.
| "project_note_created"
| "project_note_archived"
| "project_pipeline_handover"
| "project_invoice_created"
| "project_invoice_status_changed"
| "project_checklist_created"
@@ -34,6 +41,7 @@ export type ActivityType =
| "project_signature_changed"
| "file_uploaded"
| "form_submitted"
| "portal_complaint_submitted"
| "task_created"
| "task_completed"
| "contact_created" // P6 CRM core (R-P6)
@@ -52,6 +60,7 @@ export type ActivityType =
| "deal_won"
| "deal_lost"
| "automation_triggered"
| "automation_reversed"
| "ki_action"
| "audit_event"
| "billing_state_changed";
@@ -62,7 +71,7 @@ export type ActivitySubjectType = "contact" | "company" | "lead" | "deal" | "pro
/** Additional entities referenced by an activity (denormalized for the timeline). */
export type ActivityRelatedRef = { type: ActivitySubjectType; id: string };
/** Input for {@link logActivity}. `summaryText` is the mandatory DE Klartext line. */
/** Input for {@link logActivity}. Machine events use a semantic i18n key; user-authored summaries remain verbatim text. */
export type LogActivityInput = {
tenantId: string;
actorUserId?: string | null;