Circle V2 API Docs
    Preparing search index...
    contactTypesRouter: BuiltRouter<
        {
            ctx: TRPCContext;
            errorShape: DefaultErrorShape;
            meta: object;
            transformer: false;
        },
        DecorateCreateRouterOptions<
            {
                create: MutationProcedure<
                    {
                        input: { customFields?: string[]; name: string };
                        meta: object;
                        output: {
                            contact_type_id: ContactTypeId;
                            created_at: DbDate;
                            created_by: string;
                            org_id: number | null;
                            type: string;
                        };
                    },
                >;
                delete: MutationProcedure<
                    { input: { contactTypeId: string }; meta: object; output: void },
                >;
                get: QueryProcedure<
                    {
                        input: { contactTypeId: string };
                        meta: object;
                        output: {
                            contact_type_id: ContactTypeId;
                            created_at: DbDate;
                            created_by: string;
                            fields: {
                                contact_type: string;
                                created_at: DbDate;
                                field_id: ContactTypeFieldId;
                                key: string;
                            }[];
                            org_id: number
                            | null;
                            type: string;
                        };
                    },
                >;
                list: QueryProcedure<
                    {
                        input: void;
                        meta: object;
                        output: {
                            contact_count: number;
                            contact_type_id: ContactTypeId;
                            created_at: DbDate;
                            created_by: string;
                            field_count: number;
                            org_id: number
                            | null;
                            type: string;
                        }[];
                    },
                >;
                update: MutationProcedure<
                    {
                        input: {
                            contactTypeId: string;
                            fieldIdsToRemove?: string[];
                            fieldsToAdd?: string[];
                            name?: string;
                        };
                        meta: object;
                        output: void;
                    },
                >;
            },
        >,
    > = ...