Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:rudderlabs/rudder-transformer in…
Browse files Browse the repository at this point in the history
…to fix.version-dep-false-positives
  • Loading branch information
Sai Sankeerth committed Feb 27, 2024
2 parents 6384d58 + 84cb5f0 commit 380a2e2
Show file tree
Hide file tree
Showing 20 changed files with 1,770 additions and 26 deletions.
70 changes: 70 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"@pyroscope/nodejs": "^0.2.6",
"@rudderstack/integrations-lib": "^0.2.4",
"@rudderstack/workflow-engine": "^0.7.2",
"@shopify/jest-koa-mocks": "^5.1.1",
"ajv": "^8.12.0",
"ajv-draft-04": "^1.0.0",
"ajv-formats": "^2.1.1",
Expand Down
76 changes: 58 additions & 18 deletions src/cdk/v2/destinations/rakuten/data/propertiesMapping.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,50 @@
[
{
"sourceKeys": "properties.orderId",
"sourceKeys": ["properties.order_id", "properties.orderId"],
"required": true,
"destKey": "ord"
},
{
"sourceKeys": ["properties.tr", "properties.ranSiteID"],
"sourceKeys": ["properties.tr", "properties.ran_site_id", "properties.ranSiteID"],
"required": true,
"destKey": "tr"
},
{
"sourceKeys": ["properties.land", "properties.landTime"],
"sourceKeys": ["properties.land", "properties.land_time", "properties.landTime"],
"required": true,
"destKey": "land"
},
{
"sourceKeys": ["properties.date", "properties.orderCompletedTime"],
"sourceKeys": [
"properties.date",
"properties.order_completed_time",
"properties.orderCompletedTime"
],
"destKey": "date"
},
{
"sourceKeys": ["properties.altord", "properties.alterOrderId"],
"sourceKeys": [
"properties.alt_ord",
"properties.altord",
"properties.alter_order_id",
"properties.alterOrderId"
],
"destKey": "altord"
},
{
"sourceKeys": "properties.currency",
"destKey": "cur"
},
{
"sourceKeys": "properties.creditCardType",
"sourceKeys": ["properties.credit_card_type", "properties.creditCardType"],
"destKey": "cc"
},
{
"sourceKeys": "properties.commReason",
"sourceKeys": ["properties.comm_reason", "properties.commReason"],
"destKey": "commreason"
},
{
"sourceKeys": "properties.isComm",
"sourceKeys": ["properties.is_comm", "properties.isComm"],
"destKey": "iscomm"
},
{
Expand All @@ -47,51 +56,82 @@
"destKey": "coupon"
},
{
"sourceKeys": ["properties.custId", "properties.customerId", "properties.userId"],
"sourceKeys": [
"properties.cust_id",
"properties.custId",
"properties.customer_id",
"properties.customerId",
"properties.userId"
],
"destKey": "custid"
},
{
"sourceKeys": ["properties.custScore", "properties.customerScore"],
"sourceKeys": [
"properties.cust_score",
"properties.custScore",
"properties.customer_score",
"properties.customerScore"
],
"destKey": "custscore"
},
{
"sourceKeys": ["properties.custStatus", "properties.customerStatus"],
"sourceKeys": [
"properties.cust_status",
"properties.custStatus",
"properties.customer_status",
"properties.customerStatus"
],
"destKey": "custstatus"
},
{
"sourceKeys": ["properties.dId", "properties.advertisingId"],
"sourceKeys": ["properties.dId", "properties.advertising_id", "properties.advertisingId"],
"destKey": "did"
},
{
"sourceKeys": ["properties.disamt", "properties.discountAmout"],
"sourceKeys": ["properties.disamt", "properties.discount_amount", "properties.discountAmount"],
"destKey": "disamt"
},
{
"sourceKeys": ["properties.ordStatus", "properties.orderStatus"],
"sourceKeys": [
"properties.ord_status",
"properties.ordStatus",
"properties.order_status",
"properties.orderStatus"
],
"destKey": "ordstatus"
},
{
"sourceKeys": "properties.segment",
"destKey": "segment"
},
{
"sourceKeys": "properties.shipcountry",
"sourceKeys": ["properties.ship_country", "properties.shipcountry"],
"destKey": "shipcountry"
},
{
"sourceKeys": "properties.shipped",
"destKey": "shipped"
},
{
"sourceKeys": ["properties.sitename", "properties.url", "context.page.url"],
"sourceKeys": [
"properties.site_name",
"properties.sitename",
"properties.url",
"context.page.url"
],
"destKey": "sitename"
},
{
"sourceKeys": "properties.storeId",
"sourceKeys": ["properties.store_id", "properties.storeId"],
"destKey": "storeid"
},
{
"sourceKeys": ["properties.storecat", "properties.storeCategory"],
"sourceKeys": [
"properties.store_cat",
"properties.storecat",
"properties.store_category",
"properties.storeCategory"
],
"destKey": "storecat"
},
{
Expand Down
Loading

0 comments on commit 380a2e2

Please sign in to comment.