Indeed for any dashcam you need a hard wire kit to do that, connected to either a fuse / fuses in your fuse box and so your car battery, of one of the dedicated dashcam power packs using lifepo batteries.
No dashcam i have heard off in the past 10 years have a build in power source sufficient to do meaningful parking guard ( > 30 minutes )
Personally i use 1 hour on the in camera timer as that cover all my shopping, and at home i have CCTV camera on my parked car as it is in a dimly lit back yard, the + being my CCTV system have smart AI motion detect so i only get notification on my phone and tablet if anything human orr vehicle shaped come within 1 M of my car.
And my PTZ camera are zoomed in on my car, so i have a reasonable chance of identifying what ever go on there, the camera is 20 - 25 M from the car, so anything wide angle like adashcam, well it would just see " something" near my car.
The camera i use have 20 X optical zoom, and i am zoomed in to 7 i think, can just see my car and very little around it so it is only when people / something are danger closed i get one of the notifications ( which i do hate so much no matter what kind of notification it is )
A dashcam in parking mode would not be of any use in the back yard, even if the PIR sensor light there come on as all it would do i back light anyone approaching my car.