From 12ea8157a9f4bd7f70067ee5f0da02cad68b233a Mon Sep 17 00:00:00 2001 From: Gauravudia <60897972+Gauravudia@users.noreply.github.com> Date: Wed, 17 Apr 2024 19:59:59 +0530 Subject: [PATCH] Revert "feat: deprecate mixpanel apiSecret (#1304)" This reverts commit d02302cff5fab27c51904a399216b6ca58a886f5. --- src/configurations/destinations/mp/schema.json | 4 ++++ src/configurations/destinations/mp/ui-config.json | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/configurations/destinations/mp/schema.json b/src/configurations/destinations/mp/schema.json index 08be47c98..3a01439c0 100644 --- a/src/configurations/destinations/mp/schema.json +++ b/src/configurations/destinations/mp/schema.json @@ -8,6 +8,10 @@ "type": "string", "pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$" }, + "apiSecret": { + "type": "string", + "pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$" + }, "serviceAccountUserName": { "type": "string" }, diff --git a/src/configurations/destinations/mp/ui-config.json b/src/configurations/destinations/mp/ui-config.json index 5365c2a9b..ddb2f5133 100644 --- a/src/configurations/destinations/mp/ui-config.json +++ b/src/configurations/destinations/mp/ui-config.json @@ -13,6 +13,16 @@ "placeholder": "c24f56ed8172XXXX6de5a5f0befe8b92", "secret": true }, + { + "type": "textInput", + "label": "API Secret", + "value": "apiSecret", + "regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$", + "regexErrorMessage": "Invalid API Secret", + "required": false, + "placeholder": "f8a911adfbb6XXXXc43cdfe29e912a90", + "secret": true + }, { "type": "textInput", "label": "Service Account Username",