Triggered when a location is created.
function onLocationCreated(handler: function): void;
handler(event: LocationCreatedEnvelope): void | Promise<void>
import { locations } from "@wix/business-tools";
locations.onLocationCreated((event) => {
// handle your event here
});