refactor: distribute types from crm-types.ts to owning composables
Each composable now owns its types and exports them. Other composables import types from the owning composable. Deleted centralized crm-types.ts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,8 +12,23 @@ import {
|
||||
ChatMessagesQueryDocument,
|
||||
ChatConversationsQueryDocument,
|
||||
} from "~~/graphql/generated";
|
||||
import type { FeedCard, CalendarEvent } from "~/composables/crm-types";
|
||||
import { dayKey, formatDay, formatTime } from "~/composables/crm-types";
|
||||
|
||||
import type { CalendarEvent } from "~/composables/useCalendar";
|
||||
import { dayKey, formatDay, formatTime } from "~/composables/useCalendar";
|
||||
|
||||
export type FeedCard = {
|
||||
id: string;
|
||||
at: string;
|
||||
contact: string;
|
||||
text: string;
|
||||
proposal: {
|
||||
title: string;
|
||||
details: string[];
|
||||
key: "create_followup" | "open_comm" | "call" | "draft_message" | "run_summary" | "prepare_question";
|
||||
};
|
||||
decision: "pending" | "accepted" | "rejected";
|
||||
decisionNote?: string;
|
||||
};
|
||||
|
||||
export function useFeed(opts: {
|
||||
apolloAuthReady: ComputedRef<boolean>;
|
||||
|
||||
Reference in New Issue
Block a user