UNPKG

@transcend-io/typescript-webhook-example

Version:

Example of a webhook that can be integrated with Transcend.

38 lines 948 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.enrichUser = void 0; /** * Enrich the identity of a data subject. i.e. map an email address to a username * * @returns User identifiers */ function enrichUser( /* userIdentifier */) { return { email: [ { value: 'test+enriched@transcend.io', }, { value: 'test+access@transcend.io', }, ], phone: [ { countryCode: 'US', value: '+16126883289', }, ], // googleAnalyticsInternalId: [ // { // value: 'SOME-GOOGLE-ANALYTICS-ID', // }, // ], // idfa: [ // { // value: 'b62bbf1f-7641-4224-88a2-12b0eaea6caf', // }, // ], }; } exports.enrichUser = enrichUser; //# sourceMappingURL=enrichUser.js.map