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:
@@ -1,13 +1,16 @@
|
||||
import { ref, computed, watch, type ComputedRef, type Ref } from "vue";
|
||||
import { useQuery, useMutation } from "@vue/apollo-composable";
|
||||
import { PinsQueryDocument, ToggleContactPinMutationDocument } from "~~/graphql/generated";
|
||||
import type { CommPin, CalendarEvent, CommItem, ClientTimelineItem } from "~/composables/crm-types";
|
||||
import {
|
||||
formatDay,
|
||||
isEventFinalStatus,
|
||||
eventLifecyclePhase,
|
||||
} from "~/composables/crm-types";
|
||||
import type { EventLifecyclePhase } from "~/composables/crm-types";
|
||||
|
||||
import type { CommItem } from "~/composables/useContacts";
|
||||
import type { CalendarEvent, EventLifecyclePhase } from "~/composables/useCalendar";
|
||||
import { formatDay, isEventFinalStatus } from "~/composables/useCalendar";
|
||||
|
||||
export type CommPin = {
|
||||
id: string;
|
||||
contact: string;
|
||||
text: string;
|
||||
};
|
||||
|
||||
export function usePins(opts: {
|
||||
apolloAuthReady: ComputedRef<boolean>;
|
||||
|
||||
Reference in New Issue
Block a user