Restructure: rename to Pulse and move app to root

- Renamed project from PSA-Utils to Pulse
- Moved all app files from autotask-app/ to root
- Updated package.json name to 'pulse'
- Updated Docker container names to pulse-app and pulse-redis
- Updated Docker network name to pulse-network
This commit is contained in:
Lorentz Hinrichsen 2025-10-28 23:08:54 -04:00
parent f429f3af54
commit 3c3124d8c9
117 changed files with 8433 additions and 239 deletions

View file

@ -0,0 +1,28 @@
import { NextRequest, NextResponse } from 'next/server';
import { getAutotaskClient } from '@/lib/services/autotask-factory';
export async function GET(request: NextRequest) {
try {
const client = getAutotaskClient();
const searchParams = request.nextUrl.searchParams;
const entity = searchParams.get('entity');
const field = searchParams.get('field');
if (!entity || !field) {
return NextResponse.json(
{ error: 'Entity and field parameters are required' },
{ status: 400 }
);
}
const picklistValues = await client.getPicklistValues(entity, field);
return NextResponse.json({ picklistValues });
} catch (error) {
console.error('Error fetching picklist values:', error);
return NextResponse.json(
{ error: error instanceof Error ? error.message : 'Failed to fetch picklist values' },
{ status: 500 }
);
}
}