From 53ac53bb9615f598acf313bc0da214f98f380c9a Mon Sep 17 00:00:00 2001 From: Sai Kumar Battinoju Date: Thu, 12 Dec 2024 17:03:42 +0530 Subject: [PATCH 1/3] feat: add tags for sdk source types --- src/configurations/sources/amp/db-config.json | 5 ++++- src/configurations/sources/android/db-config.json | 5 ++++- src/configurations/sources/cordova/db-config.json | 5 ++++- src/configurations/sources/dotnet/db-config.json | 5 ++++- src/configurations/sources/flutter/db-config.json | 5 ++++- src/configurations/sources/go/db-config.json | 5 ++++- src/configurations/sources/ios/db-config.json | 5 ++++- src/configurations/sources/java/db-config.json | 5 ++++- src/configurations/sources/javascript/db-config.json | 5 ++++- src/configurations/sources/node/db-config.json | 5 ++++- src/configurations/sources/php/db-config.json | 5 ++++- src/configurations/sources/python/db-config.json | 5 ++++- src/configurations/sources/react_native/db-config.json | 5 ++++- src/configurations/sources/ruby/db-config.json | 5 ++++- src/configurations/sources/rust/db-config.json | 5 ++++- src/configurations/sources/unity/db-config.json | 5 ++++- 16 files changed, 64 insertions(+), 16 deletions(-) diff --git a/src/configurations/sources/amp/db-config.json b/src/configurations/sources/amp/db-config.json index f27a7d0cf..7eb469c27 100644 --- a/src/configurations/sources/amp/db-config.json +++ b/src/configurations/sources/amp/db-config.json @@ -1,5 +1,8 @@ { "name": "AMP", "displayName": "AMP", - "type": "amp" + "type": "amp", + "options": { + "tag": "client-sdk" + } } diff --git a/src/configurations/sources/android/db-config.json b/src/configurations/sources/android/db-config.json index 95473faed..156fd7681 100644 --- a/src/configurations/sources/android/db-config.json +++ b/src/configurations/sources/android/db-config.json @@ -1,5 +1,8 @@ { "name": "Android", "displayName": "Android", - "type": "android" + "type": "android", + "options": { + "tag": "client-sdk" + } } diff --git a/src/configurations/sources/cordova/db-config.json b/src/configurations/sources/cordova/db-config.json index 5ee84ca76..43eab2e27 100644 --- a/src/configurations/sources/cordova/db-config.json +++ b/src/configurations/sources/cordova/db-config.json @@ -1,5 +1,8 @@ { "name": "Cordova", "displayName": "Cordova", - "type": "cordova" + "type": "cordova", + "options": { + "tag": "client-sdk" + } } diff --git a/src/configurations/sources/dotnet/db-config.json b/src/configurations/sources/dotnet/db-config.json index dd5204182..d97fd81d1 100644 --- a/src/configurations/sources/dotnet/db-config.json +++ b/src/configurations/sources/dotnet/db-config.json @@ -1,5 +1,8 @@ { "name": "DotNet", "displayName": ".Net", - "type": "cloud" + "type": "cloud", + "options": { + "tag": "server-sdk" + } } diff --git a/src/configurations/sources/flutter/db-config.json b/src/configurations/sources/flutter/db-config.json index d2b602e62..b6a577ff0 100644 --- a/src/configurations/sources/flutter/db-config.json +++ b/src/configurations/sources/flutter/db-config.json @@ -1,5 +1,8 @@ { "name": "Flutter", "displayName": "Flutter", - "type": "flutter" + "type": "flutter", + "options": { + "tag": "client-sdk" + } } diff --git a/src/configurations/sources/go/db-config.json b/src/configurations/sources/go/db-config.json index ca4b23f3c..23748d221 100644 --- a/src/configurations/sources/go/db-config.json +++ b/src/configurations/sources/go/db-config.json @@ -1,5 +1,8 @@ { "name": "Go", "displayName": "Go", - "type": "cloud" + "type": "cloud", + "options": { + "tag": "server-sdk" + } } diff --git a/src/configurations/sources/ios/db-config.json b/src/configurations/sources/ios/db-config.json index a55f4d793..620df74b5 100644 --- a/src/configurations/sources/ios/db-config.json +++ b/src/configurations/sources/ios/db-config.json @@ -1,5 +1,8 @@ { "name": "iOS", "displayName": "iOS", - "type": "ios" + "type": "ios", + "options": { + "tag": "client-sdk" + } } diff --git a/src/configurations/sources/java/db-config.json b/src/configurations/sources/java/db-config.json index 58f6b8686..da5ed8b3c 100644 --- a/src/configurations/sources/java/db-config.json +++ b/src/configurations/sources/java/db-config.json @@ -1,5 +1,8 @@ { "name": "Java", "displayName": "Java", - "type": "cloud" + "type": "cloud", + "options": { + "tag": "server-sdk" + } } diff --git a/src/configurations/sources/javascript/db-config.json b/src/configurations/sources/javascript/db-config.json index e823e2183..eb4bc8794 100644 --- a/src/configurations/sources/javascript/db-config.json +++ b/src/configurations/sources/javascript/db-config.json @@ -1,5 +1,8 @@ { "name": "Javascript", "displayName": "Javascript", - "type": "web" + "type": "web", + "options": { + "tag": "client-sdk" + } } diff --git a/src/configurations/sources/node/db-config.json b/src/configurations/sources/node/db-config.json index c7ab6a7ff..a9a7380ca 100644 --- a/src/configurations/sources/node/db-config.json +++ b/src/configurations/sources/node/db-config.json @@ -1,5 +1,8 @@ { "name": "Node", "displayName": "Node", - "type": "cloud" + "type": "cloud", + "options": { + "tag": "server-sdk" + } } diff --git a/src/configurations/sources/php/db-config.json b/src/configurations/sources/php/db-config.json index c34a3cdd5..c43b4aa80 100644 --- a/src/configurations/sources/php/db-config.json +++ b/src/configurations/sources/php/db-config.json @@ -1,5 +1,8 @@ { "name": "PHP", "displayName": "PHP", - "type": "cloud" + "type": "cloud", + "options": { + "tag": "server-sdk" + } } diff --git a/src/configurations/sources/python/db-config.json b/src/configurations/sources/python/db-config.json index 76415d16d..70768a637 100644 --- a/src/configurations/sources/python/db-config.json +++ b/src/configurations/sources/python/db-config.json @@ -1,5 +1,8 @@ { "name": "Python", "displayName": "Python", - "type": "cloud" + "type": "cloud", + "options": { + "tag": "server-sdk" + } } diff --git a/src/configurations/sources/react_native/db-config.json b/src/configurations/sources/react_native/db-config.json index 37a80466e..69d8217d0 100644 --- a/src/configurations/sources/react_native/db-config.json +++ b/src/configurations/sources/react_native/db-config.json @@ -1,5 +1,8 @@ { "name": "ReactNative", "displayName": "React Native", - "type": "reactnative" + "type": "reactnative", + "options": { + "tag": "client-sdk" + } } diff --git a/src/configurations/sources/ruby/db-config.json b/src/configurations/sources/ruby/db-config.json index 8b0e872f2..7d522c3da 100644 --- a/src/configurations/sources/ruby/db-config.json +++ b/src/configurations/sources/ruby/db-config.json @@ -1,5 +1,8 @@ { "name": "Ruby", "displayName": "Ruby", - "type": "cloud" + "type": "cloud", + "options": { + "tag": "server-sdk" + } } diff --git a/src/configurations/sources/rust/db-config.json b/src/configurations/sources/rust/db-config.json index 12e377523..92677554b 100644 --- a/src/configurations/sources/rust/db-config.json +++ b/src/configurations/sources/rust/db-config.json @@ -1,5 +1,8 @@ { "name": "Rust", "displayName": "Rust", - "type": "cloud" + "type": "cloud", + "options": { + "tag": "server-sdk" + } } diff --git a/src/configurations/sources/unity/db-config.json b/src/configurations/sources/unity/db-config.json index ab4bf8d8e..ab66bfd4f 100644 --- a/src/configurations/sources/unity/db-config.json +++ b/src/configurations/sources/unity/db-config.json @@ -1,5 +1,8 @@ { "name": "Unity", "displayName": "Unity", - "type": "unity" + "type": "unity", + "options": { + "tag": "client-sdk" + } } From c243a561839c7bd44e79bc6bde3ac34196fba69e Mon Sep 17 00:00:00 2001 From: Sai Kumar Battinoju Date: Thu, 12 Dec 2024 17:31:31 +0530 Subject: [PATCH 2/3] fix: rename the property --- src/configurations/sources/amp/db-config.json | 2 +- src/configurations/sources/android/db-config.json | 2 +- src/configurations/sources/cordova/db-config.json | 2 +- src/configurations/sources/dotnet/db-config.json | 2 +- src/configurations/sources/flutter/db-config.json | 2 +- src/configurations/sources/go/db-config.json | 2 +- src/configurations/sources/ios/db-config.json | 2 +- src/configurations/sources/java/db-config.json | 2 +- src/configurations/sources/javascript/db-config.json | 2 +- src/configurations/sources/node/db-config.json | 2 +- src/configurations/sources/php/db-config.json | 2 +- src/configurations/sources/python/db-config.json | 2 +- src/configurations/sources/react_native/db-config.json | 2 +- src/configurations/sources/ruby/db-config.json | 2 +- src/configurations/sources/rust/db-config.json | 2 +- src/configurations/sources/unity/db-config.json | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/configurations/sources/amp/db-config.json b/src/configurations/sources/amp/db-config.json index 7eb469c27..d98b0b85c 100644 --- a/src/configurations/sources/amp/db-config.json +++ b/src/configurations/sources/amp/db-config.json @@ -3,6 +3,6 @@ "displayName": "AMP", "type": "amp", "options": { - "tag": "client-sdk" + "sdkExecutionEnvironment": "client" } } diff --git a/src/configurations/sources/android/db-config.json b/src/configurations/sources/android/db-config.json index 156fd7681..d9e1b8c21 100644 --- a/src/configurations/sources/android/db-config.json +++ b/src/configurations/sources/android/db-config.json @@ -3,6 +3,6 @@ "displayName": "Android", "type": "android", "options": { - "tag": "client-sdk" + "sdkExecutionEnvironment": "client" } } diff --git a/src/configurations/sources/cordova/db-config.json b/src/configurations/sources/cordova/db-config.json index 43eab2e27..6cc47e2d2 100644 --- a/src/configurations/sources/cordova/db-config.json +++ b/src/configurations/sources/cordova/db-config.json @@ -3,6 +3,6 @@ "displayName": "Cordova", "type": "cordova", "options": { - "tag": "client-sdk" + "sdkExecutionEnvironment": "client" } } diff --git a/src/configurations/sources/dotnet/db-config.json b/src/configurations/sources/dotnet/db-config.json index d97fd81d1..f737ad33c 100644 --- a/src/configurations/sources/dotnet/db-config.json +++ b/src/configurations/sources/dotnet/db-config.json @@ -3,6 +3,6 @@ "displayName": ".Net", "type": "cloud", "options": { - "tag": "server-sdk" + "sdkExecutionEnvironment": "server" } } diff --git a/src/configurations/sources/flutter/db-config.json b/src/configurations/sources/flutter/db-config.json index b6a577ff0..26856f086 100644 --- a/src/configurations/sources/flutter/db-config.json +++ b/src/configurations/sources/flutter/db-config.json @@ -3,6 +3,6 @@ "displayName": "Flutter", "type": "flutter", "options": { - "tag": "client-sdk" + "sdkExecutionEnvironment": "client" } } diff --git a/src/configurations/sources/go/db-config.json b/src/configurations/sources/go/db-config.json index 23748d221..76e630e2d 100644 --- a/src/configurations/sources/go/db-config.json +++ b/src/configurations/sources/go/db-config.json @@ -3,6 +3,6 @@ "displayName": "Go", "type": "cloud", "options": { - "tag": "server-sdk" + "sdkExecutionEnvironment": "server" } } diff --git a/src/configurations/sources/ios/db-config.json b/src/configurations/sources/ios/db-config.json index 620df74b5..4d65dc374 100644 --- a/src/configurations/sources/ios/db-config.json +++ b/src/configurations/sources/ios/db-config.json @@ -3,6 +3,6 @@ "displayName": "iOS", "type": "ios", "options": { - "tag": "client-sdk" + "sdkExecutionEnvironment": "client" } } diff --git a/src/configurations/sources/java/db-config.json b/src/configurations/sources/java/db-config.json index da5ed8b3c..506d5dc28 100644 --- a/src/configurations/sources/java/db-config.json +++ b/src/configurations/sources/java/db-config.json @@ -3,6 +3,6 @@ "displayName": "Java", "type": "cloud", "options": { - "tag": "server-sdk" + "sdkExecutionEnvironment": "server" } } diff --git a/src/configurations/sources/javascript/db-config.json b/src/configurations/sources/javascript/db-config.json index eb4bc8794..4f0773d72 100644 --- a/src/configurations/sources/javascript/db-config.json +++ b/src/configurations/sources/javascript/db-config.json @@ -3,6 +3,6 @@ "displayName": "Javascript", "type": "web", "options": { - "tag": "client-sdk" + "sdkExecutionEnvironment": "client" } } diff --git a/src/configurations/sources/node/db-config.json b/src/configurations/sources/node/db-config.json index a9a7380ca..8d897bee4 100644 --- a/src/configurations/sources/node/db-config.json +++ b/src/configurations/sources/node/db-config.json @@ -3,6 +3,6 @@ "displayName": "Node", "type": "cloud", "options": { - "tag": "server-sdk" + "sdkExecutionEnvironment": "server" } } diff --git a/src/configurations/sources/php/db-config.json b/src/configurations/sources/php/db-config.json index c43b4aa80..149c70949 100644 --- a/src/configurations/sources/php/db-config.json +++ b/src/configurations/sources/php/db-config.json @@ -3,6 +3,6 @@ "displayName": "PHP", "type": "cloud", "options": { - "tag": "server-sdk" + "sdkExecutionEnvironment": "server" } } diff --git a/src/configurations/sources/python/db-config.json b/src/configurations/sources/python/db-config.json index 70768a637..e8ee2c15c 100644 --- a/src/configurations/sources/python/db-config.json +++ b/src/configurations/sources/python/db-config.json @@ -3,6 +3,6 @@ "displayName": "Python", "type": "cloud", "options": { - "tag": "server-sdk" + "sdkExecutionEnvironment": "server" } } diff --git a/src/configurations/sources/react_native/db-config.json b/src/configurations/sources/react_native/db-config.json index 69d8217d0..f49efcbfa 100644 --- a/src/configurations/sources/react_native/db-config.json +++ b/src/configurations/sources/react_native/db-config.json @@ -3,6 +3,6 @@ "displayName": "React Native", "type": "reactnative", "options": { - "tag": "client-sdk" + "sdkExecutionEnvironment": "client" } } diff --git a/src/configurations/sources/ruby/db-config.json b/src/configurations/sources/ruby/db-config.json index 7d522c3da..6da7a202d 100644 --- a/src/configurations/sources/ruby/db-config.json +++ b/src/configurations/sources/ruby/db-config.json @@ -3,6 +3,6 @@ "displayName": "Ruby", "type": "cloud", "options": { - "tag": "server-sdk" + "sdkExecutionEnvironment": "server" } } diff --git a/src/configurations/sources/rust/db-config.json b/src/configurations/sources/rust/db-config.json index 92677554b..aa4322a1f 100644 --- a/src/configurations/sources/rust/db-config.json +++ b/src/configurations/sources/rust/db-config.json @@ -3,6 +3,6 @@ "displayName": "Rust", "type": "cloud", "options": { - "tag": "server-sdk" + "sdkExecutionEnvironment": "server" } } diff --git a/src/configurations/sources/unity/db-config.json b/src/configurations/sources/unity/db-config.json index ab66bfd4f..1783a5160 100644 --- a/src/configurations/sources/unity/db-config.json +++ b/src/configurations/sources/unity/db-config.json @@ -3,6 +3,6 @@ "displayName": "Unity", "type": "unity", "options": { - "tag": "client-sdk" + "sdkExecutionEnvironment": "client" } } From 3b70eeb2952e5949333203826a6470446df71b37 Mon Sep 17 00:00:00 2001 From: Sai Kumar Battinoju Date: Thu, 12 Dec 2024 17:34:43 +0530 Subject: [PATCH 3/3] chore: update source db-config schema --- src/schemas/sources/db-config-schema.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/schemas/sources/db-config-schema.json b/src/schemas/sources/db-config-schema.json index dc1cfa381..1761b63d6 100644 --- a/src/schemas/sources/db-config-schema.json +++ b/src/schemas/sources/db-config-schema.json @@ -146,6 +146,12 @@ "type": "boolean", "title": "Supports Destination Sync Mode", "description": "TBD" + }, + "sdkExecutionEnvironment": { + "type": "string", + "title": "SDK Execution Environment", + "description": "It denotes the environment in which the SDK is executed. The presence of this field also indicates that the source is an SDK source.", + "enum": ["server", "client"] } } }