Skip to content

Commit

Permalink
feat: onboard mixpanel on new ui (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravudia authored Nov 9, 2023
1 parent a6ca11e commit 0874512
Show file tree
Hide file tree
Showing 4 changed files with 858 additions and 487 deletions.
51 changes: 33 additions & 18 deletions src/configurations/destinations/mp/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"oneTrustCookieCategories",
"ketchConsentPurposes",
"eventFilteringOption",
"identityMergeApi"
"identityMergeApi",
"ignoreDnt"
],
"excludeKeys": [],
"supportedSourceTypes": [
Expand All @@ -46,28 +47,25 @@
"cordova",
"shopify"
],
"supportedConnectionModes": {
"web": ["cloud", "device"],
"android": ["cloud"],
"ios": ["cloud"],
"unity": ["cloud"],
"amp": ["cloud"],
"reactnative": ["cloud"],
"flutter": ["cloud"],
"cordova": ["cloud"],
"shopify": ["cloud"]
},
"supportedMessageTypes": ["alias", "group", "identify", "page", "screen", "track"],
"destConfig": {
"defaultConfig": [
"token",
"groupKeySettings",
"apiSecret",
"dataResidency",
"people",
"setAllTraitsByDefault",
"superProperties",
"peopleProperties",
"eventIncrements",
"propIncrements",
"consolidatedPageCalls",
"trackCategorizedPages",
"trackNamedPages",
"sourceName",
"crossSubdomainCookie",
"persistence",
"persistenceType",
"persistenceName",
"secureCookie",
"blacklistedEvents",
"whitelistedEvents",
"eventFilteringOption",
Expand All @@ -80,10 +78,27 @@
"identityMergeApi",
"userDeletionApi",
"gdprApiToken",
"strictMode",
"ignoreDnt"
"strictMode"
],
"web": ["useNativeSDK"]
"web": [
"useNativeSDK",
"connectionMode",
"people",
"setAllTraitsByDefault",
"ignoreDnt",
"consolidatedPageCalls",
"trackCategorizedPages",
"trackNamedPages",
"sourceName",
"crossSubdomainCookie",
"persistence",
"persistenceType",
"persistenceName",
"secureCookie",
"superProperties",
"peopleProperties",
"eventIncrements"
]
},
"secretKeys": ["token", "gdprApiToken"]
}
Expand Down
232 changes: 186 additions & 46 deletions src/configurations/destinations/mp/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,52 +12,108 @@
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"serviceAccountUserName": { "type": "string" },
"serviceAccountSecret": { "type": "string" },
"projectId": { "type": "string" },
"dataResidency": { "type": "string", "enum": ["us", "eu"], "default": "us" },
"serviceAccountUserName": {
"type": "string"
},
"serviceAccountSecret": {
"type": "string"
},
"projectId": {
"type": "string"
},
"dataResidency": {
"type": "string",
"enum": ["us", "eu"],
"default": "us"
},
"identityMergeApi": {
"type": "string",
"enum": ["simplified", "original"],
"default": "original"
},
"userDeletionApi": { "type": "string", "enum": ["engage", "task"], "default": "engage" },
"strictMode": { "type": "boolean", "default": false },
"ignoreDnt": { "type": "boolean", "default": false },
"people": { "type": "boolean", "default": false },
"setAllTraitsByDefault": { "type": "boolean", "default": false },
"strictMode": {
"type": "boolean",
"default": false
},
"ignoreDnt": {
"type": "object",
"properties": {
"web": {
"type": "boolean",
"default": false
}
}
},
"userDeletionApi": {
"type": "string",
"enum": ["engage", "task"],
"default": "engage"
},
"people": {
"type": "object",
"properties": {
"web": {
"type": "boolean",
"default": false
}
}
},
"setAllTraitsByDefault": {
"type": "object",
"properties": {
"web": {
"type": "boolean",
"default": false
}
}
},
"superProperties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
"type": "object",
"properties": {
"web": {
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
}
}
},
"peopleProperties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
"type": "object",
"properties": {
"web": {
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
}
}
},
"eventIncrements": {
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
"type": "object",
"properties": {
"web": {
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
}
}
Expand All @@ -74,24 +130,89 @@
}
}
},
"consolidatedPageCalls": { "type": "boolean", "default": true },
"trackCategorizedPages": { "type": "boolean", "default": false },
"trackNamedPages": { "type": "boolean", "default": false },
"consolidatedPageCalls": {
"type": "object",
"properties": {
"web": {
"type": "boolean",
"default": true
}
}
},
"trackCategorizedPages": {
"type": "object",
"properties": {
"web": {
"type": "boolean",
"default": false
}
}
},
"trackNamedPages": {
"type": "object",
"properties": {
"web": {
"type": "boolean",
"default": false
}
}
},
"sourceName": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
"type": "object",
"properties": {
"web": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
},
"crossSubdomainCookie": {
"type": "object",
"properties": {
"web": {
"type": "boolean",
"default": false
}
}
},
"persistence": {
"type": "object",
"properties": {
"web": {
"type": "string",
"enum": ["none", "cookie", "localStorage"],
"default": "none"
}
}
},
"crossSubdomainCookie": { "type": "boolean", "default": false },
"persistenceType": {
"type": "string",
"enum": ["none", "cookie", "localStorage"],
"default": "cookie"
"type": "object",
"properties": {
"web": {
"type": "string",
"enum": ["none", "cookie", "localStorage"],
"default": "cookie"
}
}
},
"persistenceName": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
"type": "object",
"properties": {
"web": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
},
"secureCookie": {
"type": "object",
"properties": {
"web": {
"type": "boolean",
"default": false
}
}
},
"secureCookie": { "type": "boolean", "default": false },
"groupKeySettings": {
"type": "array",
"items": {
Expand All @@ -104,8 +225,18 @@
}
}
},
"useNativeSDK": { "type": "object", "properties": { "web": { "type": "boolean" } } },
"useNewMapping": { "type": "boolean", "default": false },
"useNativeSDK": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"useNewMapping": {
"type": "boolean",
"default": false
},
"eventFilteringOption": {
"type": "string",
"enum": ["disable", "whitelistedEvents", "blacklistedEvents"],
Expand Down Expand Up @@ -151,14 +282,23 @@
"type": "array",
"items": {
"type": "object",
"properties": { "purpose": { "type": "string", "pattern": "^(.{0,100})$" } }
"properties": {
"purpose": {
"type": "string",
"pattern": "^(.{0,100})$"
}
}
}
}
},
"anyOf": [
{
"if": {
"properties": { "userDeletionApi": { "const": "task" } },
"properties": {
"userDeletionApi": {
"const": "task"
}
},
"required": ["userDeletionApi"]
},
"then": {
Expand Down
Loading

0 comments on commit 0874512

Please sign in to comment.