From cde74b39228fcaef54b92a15691439467277e661 Mon Sep 17 00:00:00 2001 From: Gauravudia Date: Sat, 29 Jul 2023 20:10:40 +0530 Subject: [PATCH] feat(mixpanel): add persistence name setting --- src/configurations/destinations/mp/db-config.json | 2 ++ src/configurations/destinations/mp/schema.json | 4 ++++ src/configurations/destinations/mp/ui-config.json | 7 +++++++ 3 files changed, 13 insertions(+) diff --git a/src/configurations/destinations/mp/db-config.json b/src/configurations/destinations/mp/db-config.json index d7e3fe30e..1476db828 100644 --- a/src/configurations/destinations/mp/db-config.json +++ b/src/configurations/destinations/mp/db-config.json @@ -22,6 +22,7 @@ "sourceName", "crossSubdomainCookie", "persistence", + "persistenceName", "secureCookie", "blacklistedEvents", "whitelistedEvents", @@ -62,6 +63,7 @@ "sourceName", "crossSubdomainCookie", "persistence", + "persistenceName", "secureCookie", "blacklistedEvents", "whitelistedEvents", diff --git a/src/configurations/destinations/mp/schema.json b/src/configurations/destinations/mp/schema.json index 6fef3866e..8855e0c88 100644 --- a/src/configurations/destinations/mp/schema.json +++ b/src/configurations/destinations/mp/schema.json @@ -86,6 +86,10 @@ "enum": ["none", "cookie", "localStorage"], "default": "none" }, + "persistenceName": { + "type": "string", + "pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$" + }, "secureCookie": { "type": "boolean", "default": false }, "groupKeySettings": { "type": "array", diff --git a/src/configurations/destinations/mp/ui-config.json b/src/configurations/destinations/mp/ui-config.json index fbb23986f..e81c50142 100644 --- a/src/configurations/destinations/mp/ui-config.json +++ b/src/configurations/destinations/mp/ui-config.json @@ -265,6 +265,13 @@ }, "footerNote": "Choose persistence for Mixpanel SDK" }, + { + "type": "textInput", + "label": "Persistence Name", + "value": "persistenceName", + "regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$", + "footerNote": "Choose persistence name for Mixpanel SDK" + }, { "type": "checkbox", "label": "Secure Cookie",