chore: prettier format pass on branch files
Auto-format all files modified during the documents-hub-split feature branch that were not yet aligned with the project's Prettier config (single quotes, semicolons, trailing commas). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -8,13 +8,7 @@ import { listRelationships, createRelationship } from '@/lib/services/clients.se
|
||||
|
||||
const createRelationshipSchema = z.object({
|
||||
clientBId: z.string().min(1),
|
||||
relationshipType: z.enum([
|
||||
'referred_by',
|
||||
'broker_for',
|
||||
'family_member',
|
||||
'same_vessel',
|
||||
'custom',
|
||||
]),
|
||||
relationshipType: z.enum(['referred_by', 'broker_for', 'family_member', 'same_vessel', 'custom']),
|
||||
description: z.string().optional(),
|
||||
});
|
||||
|
||||
|
||||
@@ -3,11 +3,7 @@ import { NextResponse } from 'next/server';
|
||||
import { withAuth, withPermission } from '@/lib/api/helpers';
|
||||
import { parseBody } from '@/lib/api/route-helpers';
|
||||
import { errorResponse } from '@/lib/errors';
|
||||
import {
|
||||
getClientById,
|
||||
updateClient,
|
||||
archiveClient,
|
||||
} from '@/lib/services/clients.service';
|
||||
import { getClientById, updateClient, archiveClient } from '@/lib/services/clients.service';
|
||||
import { updateClientSchema } from '@/lib/validators/clients';
|
||||
|
||||
export const GET = withAuth(
|
||||
|
||||
@@ -3,11 +3,7 @@ import { NextResponse } from 'next/server';
|
||||
import { withAuth, withPermission } from '@/lib/api/helpers';
|
||||
import { parseBody } from '@/lib/api/route-helpers';
|
||||
import { errorResponse } from '@/lib/errors';
|
||||
import {
|
||||
getTemplateById,
|
||||
updateTemplate,
|
||||
deleteTemplate,
|
||||
} from '@/lib/services/document-templates';
|
||||
import { getTemplateById, updateTemplate, deleteTemplate } from '@/lib/services/document-templates';
|
||||
import { updateTemplateSchema } from '@/lib/validators/document-templates';
|
||||
|
||||
export const GET = withAuth(
|
||||
|
||||
@@ -3,14 +3,8 @@ import { NextResponse } from 'next/server';
|
||||
import { withAuth, withPermission } from '@/lib/api/helpers';
|
||||
import { parseQuery, parseBody } from '@/lib/api/route-helpers';
|
||||
import { errorResponse } from '@/lib/errors';
|
||||
import {
|
||||
listTemplates,
|
||||
createTemplate,
|
||||
} from '@/lib/services/document-templates';
|
||||
import {
|
||||
listTemplatesSchema,
|
||||
createTemplateSchema,
|
||||
} from '@/lib/validators/document-templates';
|
||||
import { listTemplates, createTemplate } from '@/lib/services/document-templates';
|
||||
import { listTemplatesSchema, createTemplateSchema } from '@/lib/validators/document-templates';
|
||||
|
||||
export const GET = withAuth(
|
||||
withPermission('documents', 'view', async (req, ctx) => {
|
||||
|
||||
@@ -3,11 +3,7 @@ import { NextResponse } from 'next/server';
|
||||
import { withAuth, withPermission } from '@/lib/api/helpers';
|
||||
import { parseBody } from '@/lib/api/route-helpers';
|
||||
import { errorResponse } from '@/lib/errors';
|
||||
import {
|
||||
getExpenseById,
|
||||
updateExpense,
|
||||
archiveExpense,
|
||||
} from '@/lib/services/expenses';
|
||||
import { getExpenseById, updateExpense, archiveExpense } from '@/lib/services/expenses';
|
||||
import { updateExpenseSchema } from '@/lib/validators/expenses';
|
||||
|
||||
export const GET = withAuth(
|
||||
|
||||
Reference in New Issue
Block a user