UNPKG

@transcend-io/typescript-webhook-example

Version:

Example of a webhook that can be integrated with Transcend.

18 lines 587 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkForLegalHold = void 0; /** * Check user against legal hold * Is there a reason why we can't fulfill this request right now? * * Since this is a demo, it just checks for name+legalhold@example.com * * @param email - Email to check * @returns True if on legal hold */ function checkForLegalHold(email) { const flag = email.split('@')[0].split('+')[1]; return ['legalhold'].includes(flag); } exports.checkForLegalHold = checkForLegalHold; //# sourceMappingURL=checkForLegalHold.js.map