Skip to content

Commit

Permalink
feat: onboard adjust source
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed May 20, 2024
1 parent aea2f4e commit ba8cc5a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/v0/sources/adjust/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"sourceKeys": "tracker_name",
"destKeys": "properties.tracker_name"
},
{ "sourceKeys": "tracker_token", "destKeys": "properties. tracker_token" },
{ "sourceKeys": "tracker_token", "destKeys": "properties.tracker_token" },

{
"sourceKeys": "app_name",
Expand Down
8 changes: 2 additions & 6 deletions src/v0/sources/adjust/transform.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
const lodash = require('lodash');
const path = require('path');
const fs = require('fs');
const {
TransformationError,
structuredLogger: logger,
generateUUID,
} = require('@rudderstack/integrations-lib');
const { TransformationError, structuredLogger: logger } = require('@rudderstack/integrations-lib');
const Message = require('../message');
const { CommonUtils } = require('../../../util/common');
const { excludedFieldList } = require('./config');
const { extractCustomFields } = require('../../util');
const { extractCustomFields, generateUUID } = require('../../util');

// ref : https://help.adjust.com/en/article/global-callbacks#general-recommended-placeholders
// import mapping json using JSON.parse to preserve object key order
Expand Down
1 change: 1 addition & 0 deletions test/integrations/sources/adjust/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const data = [
gps_adid: '38400000-8cf0-11bd-b23e-10b96e40000d',
tracker_token: 'abc',
custom: 'custom',
tracker_name: 'dummy',
},
anonymousId: '97fcd7b2-cc24-47d7-b776-057b7b199513',
},
Expand Down

0 comments on commit ba8cc5a

Please sign in to comment.