Hi
If you have iCloud backup turned on when you last charged your iPhone it should have been backed up to iCloud Over your wifi when you get
Repair / replacement set back up over your wifi when it asks if you want to use iCloud backup Say yes to get your apps and data back.
But this will only work if you had iCloud backup turned on before problems.
Cheers
Brian 🇬-1F1E7;