TRPC router offering list, retrieve, create, update, and delete endpoints for contact records in the CRM.
// Source: https://github.com/mperkins0155/crm | License: MIT | Copyright 2026 Comp AI
// Provided via justclaw.it.com; keep this notice with the code.
import { Inject } from "@nestjs/common";
import {
Ctx,
Input,
Mutation,
Query,
Router,
UseMiddlewares,
} from "nestjs-trpc";
import type { z } from "zod";
import type { AuthedTrpcContext } from "../trpc/context.types";
import { AuthMiddleware } from "../trpc/middlewares/auth.middleware";
import {
contactBulkCompanyInput,
contactBulkInput,
contactBulkOwnerInput,
contactCreateInput,
contactIdInput,
contactListInput,
contactUpdateArgs,
factDecisionInput,
} from "./contacts.contracts";
import { ContactsService } from "./contacts.service";
@Router({ alias: "contacts" })
@UseMiddlewares(AuthMiddleware)
export class ContactsRouter {
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key