Skip to content

Commit

Permalink
Fixes #30: Towards #9: Document branch-io/v1
Browse files Browse the repository at this point in the history
  • Loading branch information
baltpeter committed Sep 11, 2023
1 parent 234fc0f commit 2185ab1
Showing 1 changed file with 27 additions and 34 deletions.
61 changes: 27 additions & 34 deletions src/adapters/branch-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,36 @@ export const adapters: Adapter[] = [
{
context: 'body',
path: 'google_advertising_id',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/developers-hub/reference/attribution-api',
},
{
context: 'body',
path: 'advertising_ids.aaid',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/developers-hub/reference/attribution-api',
},
],

idfv: {
context: 'body',
path: 'ios_vendor_id',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/developers-hub/reference/attribution-api',
},

otherIdentifiers: [
{
context: 'body',
path: 'hardware_id',
reasoning: 'obvious property name',
reasoning: 'https://github.com/tweaselORG/TrackHAR/issues/30#issuecomment-1695529472',
},
{
context: 'body',
path: 'metadata.$marketing_cloud_visitor_id',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/partners-portal/docs/adobe-analytics',
},
{
context: 'body',
path: 'metadata.$braze_install_id',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/partners-portal/docs/braze',
},
{
context: 'body',
Expand All @@ -71,27 +71,22 @@ export const adapters: Adapter[] = [
{
context: 'body',
path: 'metadata.$google_analytics_client_id',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/partners-portal/docs/google-analytics',
},
{
context: 'body',
path: 'metadata.$mixpanel_distinct_id',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/partners-portal/docs/mixpanel',
},
{
context: 'body',
path: 'metadata.$segment_anonymous_id',
reasoning: 'obvious property name',
},
{
context: 'body',
path: 'metadata.transaction_id',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/partners-portal/docs/segment-export',
},
{
context: 'body',
path: 'metadata.user_id',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/using-branch/docs/advertising-identifiers-for-attribution',
},
{
context: 'body',
Expand All @@ -108,6 +103,11 @@ export const adapters: Adapter[] = [
path: 'identity_id',
reasoning: 'obvious property name',
},
{
context: 'body',
path: 'identity',
reasoning: 'https://help.branch.io/developers-hub/reference/attribution-api',
},
],

manufacturer: {
Expand All @@ -125,13 +125,13 @@ export const adapters: Adapter[] = [
screenWidth: {
context: 'body',
path: 'screen_width',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/developers-hub/reference/attribution-api',
},

screenHeight: {
context: 'body',
path: 'screen_height',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/developers-hub/reference/attribution-api',
},

networkConnectionType: {
Expand All @@ -143,7 +143,7 @@ export const adapters: Adapter[] = [
osName: {
context: 'body',
path: 'os',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/developers-hub/reference/attribution-api',
},

osVersion: [
Expand All @@ -155,7 +155,7 @@ export const adapters: Adapter[] = [
{
context: 'body',
path: 'os_version',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/developers-hub/reference/attribution-api',
},
],

Expand All @@ -175,7 +175,7 @@ export const adapters: Adapter[] = [
localIp: {
context: 'body',
path: 'local_ip',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/developers-hub/reference/attribution-api',
},

architecture: {
Expand All @@ -193,26 +193,19 @@ export const adapters: Adapter[] = [
userAgent: {
context: 'body',
path: 'user_agent',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/developers-hub/reference/attribution-api',
},

country: [
{
context: 'body',
path: 'country',
reasoning: 'obvious property name',
},
{
context: 'body',
path: 'locale',
reasoning: 'obvious property name',
},
],
country: {
context: 'body',
path: 'country',
reasoning: 'obvious property name',
},

appVersion: {
context: 'body',
path: 'app_version',
reasoning: 'obvious property name',
reasoning: 'https://help.branch.io/developers-hub/reference/attribution-api',
},

appId: [
Expand Down

0 comments on commit 2185ab1

Please sign in to comment.