Skip to content

Commit

Permalink
fix: changing the order of priority in property mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Nov 16, 2023
1 parent 3273c62 commit 9271f11
Showing 1 changed file with 39 additions and 28 deletions.
67 changes: 39 additions & 28 deletions src/v0/destinations/mp/data/MPIdentifyConfig.json
Original file line number Diff line number Diff line change
@@ -1,114 +1,120 @@
[
{
"destKey": "$created",
"sourceKeys": ["createdAt","traits.createdAt", "context.traits.createdAt"],
"sourceKeys": ["traits.createdAt", "context.traits.createdAt", "createdAt"],
"required": false
},
{
"destKey": "$email",
"sourceKeys": ["email","traits.email", "context.traits.email", "properties.email", "context.externalId.0.id"],
"sourceKeys": [
"traits.email",
"context.traits.email",
"properties.email",
"context.externalId.0.id",
"email"
],
"required": false
},
{
"destKey": "$first_name",
"sourceKeys": [
"firstName",
"firstname",
"first_name",
"traits.firstName",
"traits.firstname",
"traits.first_name",
"context.traits.firstName",
"context.traits.firstname",
"context.traits.first_name"
"context.traits.first_name",
"firstName",
"firstname",
"first_name"
],
"required": false
},
{
"destKey": "$last_name",
"sourceKeys": [
"lastName",
"lastname",
"last_name",
"traits.lastName",
"traits.lastname",
"traits.last_name",
"context.traits.lastName",
"context.traits.lastname",
"context.traits.last_name"
"context.traits.last_name",
"lastName",
"lastname",
"last_name"
],
"required": false
},
{
"destKey": "$name",
"sourceKeys": ["name","traits.name", "context.traits.name"],
"sourceKeys": ["traits.name", "context.traits.name", "name"],
"required": false
},
{
"destKey": "$username",
"sourceKeys": [
"username",
"userName",
"traits.username",
"context.traits.username",
"traits.userName",
"context.traits.userName"
"context.traits.userName",
"username",
"userName"
],
"required": false
},
{
"destKey": "$phone",
"sourceKeys": ["phone","traits.phone", "context.traits.phone"],
"sourceKeys": ["traits.phone", "context.traits.phone", "phone"],
"required": false
},
{
"destKey": "$avatar",
"sourceKeys": ["avatar","traits.avatar", "context.traits.avatar"],
"sourceKeys": ["traits.avatar", "context.traits.avatar", "avatar"],
"required": false
},
{
"destKey": "$country_code",
"sourceKeys": [
"country",
"address.country",
"traits.address.country",
"context.traits.address.country",
"traits.country",
"context.traits.country",
"context.location.country"
"context.location.country",
"country",
"address.country"
],
"required": false
},
{
"destKey": "$city",
"sourceKeys": [
"city",
"address.city",
"traits.city",
"context.traits.city",
"traits.address.city",
"context.traits.address.city",
"context.location.city"
"context.location.city",
"city",
"address.city"
],
"required": false
},
{
"destKey": "$region",
"sourceKeys": [
"state",
"address.state",
"location.region",
"traits.state",
"context.traits.state",
"traits.address.state",
"context.traits.address.state",
"context.location.region"
"context.location.region",
"state",
"address.state",
"location.region"
],
"required": false
},
{
"destKey": "$geo_source",
"sourceKeys": ["location.geoSource","context.location.geoSource"],
"sourceKeys": ["location.geoSource", "context.location.geoSource"],
"required": false
},
{
Expand Down Expand Up @@ -158,7 +164,12 @@
},
{
"destKey": "$unsubscribed",
"sourceKeys": ["unsubscribed","traits.unsubscribed", "context.traits.unsubscribed", "properties.unsubscribed"],
"sourceKeys": [
"traits.unsubscribed",
"context.traits.unsubscribed",
"properties.unsubscribed",
"unsubscribed"
],
"required": false
},
{
Expand Down

0 comments on commit 9271f11

Please sign in to comment.