ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Parameters

      • request: NextRequest
      • __namedParameters: { params: Promise<{ id: string }> }

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  expenses: {
                      amount: number;
                      currency: string;
                      date: Date;
                      description: string;
                      id: string;
                      status: string;
                      type: string;
                  }[];
                  leaves: {
                      createdAt: Date;
                      days: number;
                      endDate: Date;
                      id: string;
                      startDate: Date;
                      status: string;
                      type: string;
                  }[];
                  manager: | {
                      department: string
                      | null;
                      employeeNumber: string;
                      firstName: string;
                      id: string;
                      lastName: string;
                      position: string | null;
                  }
                  | null;
                  payslips: {
                      createdAt: Date;
                      grossSalary: number;
                      id: string;
                      netSalary: number;
                      period: string;
                      status: string;
                  }[];
                  subordinates: {
                      department: string
                      | null;
                      employeeNumber: string;
                      firstName: string;
                      id: string;
                      isActive: boolean;
                      lastName: string;
                      position: string | null;
                  }[];
                  trainingRecords: {
                      completionDate: Date
                      | null;
                      id: string;
                      score: number | null;
                      status: string;
                      training: { provider: string | null; title: string; type: string };
                  }[];
                  user: { email: string; id: string; name: string
                  | null };
              } & {},
          >,
      >