Skip to content

Commit

Permalink
revert: onboarding mixpanel on new form builder (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravudia authored Nov 14, 2023
1 parent 459cae2 commit 2927f61
Show file tree
Hide file tree
Showing 5 changed files with 489 additions and 840 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ All notable changes to this project will be documented in this file. See [standa
* **INT-503:** hybrid mode braze ([#1030](https://github.com/rudderlabs/rudder-config-schema/issues/1030)) ([4bf4f48](https://github.com/rudderlabs/rudder-config-schema/commit/4bf4f48ae1a312b20aa9493d6c455d157c79b823))
* **INT-901:** onboard sprig destination ([#1052](https://github.com/rudderlabs/rudder-config-schema/issues/1052)) ([62f089d](https://github.com/rudderlabs/rudder-config-schema/commit/62f089d4741c4b7d7d398412affcd17b886fd35f))
* marketo: migrate to new UI layout ([#1044](https://github.com/rudderlabs/rudder-config-schema/issues/1044)) ([968310a](https://github.com/rudderlabs/rudder-config-schema/commit/968310a5f72e8480e2e38106b0be8e7b98e531d6))
* onboard mixpanel on new ui ([#1008](https://github.com/rudderlabs/rudder-config-schema/issues/1008)) ([0874512](https://github.com/rudderlabs/rudder-config-schema/commit/08745124a3279695c1242919c216f8eef3dbe5cb))
* onboarding salesforce with oauth ([#998](https://github.com/rudderlabs/rudder-config-schema/issues/998)) ([f774dfd](https://github.com/rudderlabs/rudder-config-schema/commit/f774dfdc371e12bf8545fc17672fa8420667d4f5))


Expand Down
48 changes: 17 additions & 31 deletions src/configurations/destinations/mp/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,28 @@
"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 @@ -78,27 +81,10 @@
"identityMergeApi",
"userDeletionApi",
"gdprApiToken",
"strictMode"
"strictMode",
"ignoreDnt"
],
"web": [
"useNativeSDK",
"connectionMode",
"people",
"setAllTraitsByDefault",
"ignoreDnt",
"consolidatedPageCalls",
"trackCategorizedPages",
"trackNamedPages",
"sourceName",
"crossSubdomainCookie",
"persistence",
"persistenceType",
"persistenceName",
"secureCookie",
"superProperties",
"peopleProperties",
"eventIncrements"
]
"web": ["useNativeSDK"]
},
"secretKeys": ["token", "gdprApiToken"]
}
Expand Down
218 changes: 49 additions & 169 deletions src/configurations/destinations/mp/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"configSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"required": ["token", "dataResidency", "identityMergeApi"],
"required": ["token"],
"type": "object",
"properties": {
"token": {
Expand All @@ -12,104 +12,52 @@
"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"
},
"strictMode": {
"type": "boolean",
"default": false
},
"ignoreDnt": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"userDeletionApi": {
"type": "string",
"enum": ["engage", "task"]
},
"people": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"setAllTraitsByDefault": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"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 },
"superProperties": {
"type": "object",
"properties": {
"web": {
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
},
"peopleProperties": {
"type": "object",
"properties": {
"web": {
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
},
"eventIncrements": {
"type": "object",
"properties": {
"web": {
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
Expand All @@ -126,74 +74,24 @@
}
}
},
"consolidatedPageCalls": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"trackCategorizedPages": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"trackNamedPages": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"consolidatedPageCalls": { "type": "boolean", "default": true },
"trackCategorizedPages": { "type": "boolean", "default": false },
"trackNamedPages": { "type": "boolean", "default": false },
"sourceName": {
"type": "object",
"properties": {
"web": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
},
"crossSubdomainCookie": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"crossSubdomainCookie": { "type": "boolean", "default": false },
"persistenceType": {
"type": "object",
"properties": {
"web": {
"type": "string",
"enum": ["none", "cookie", "localStorage"],
"default": "cookie"
}
}
"type": "string",
"enum": ["none", "cookie", "localStorage"],
"default": "cookie"
},
"persistenceName": {
"type": "object",
"properties": {
"web": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
},
"secureCookie": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"secureCookie": { "type": "boolean", "default": false },
"groupKeySettings": {
"type": "array",
"items": {
Expand All @@ -206,21 +104,12 @@
}
}
},
"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"]
"enum": ["disable", "whitelistedEvents", "blacklistedEvents"],
"default": "disable"
},
"whitelistedEvents": {
"type": "array",
Expand Down Expand Up @@ -262,23 +151,14 @@
"type": "array",
"items": {
"type": "object",
"properties": {
"purpose": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{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 2927f61

Please sign in to comment.