Triggered when a contact is created.
function onContactCreated(handler: function): void;
handler(event: ContactCreatedEnvelope): void | Promise<void>
import { contacts } from "@wix/crm";
contacts.onContactCreated((event) => {
// handle your event here
});