Skip to content

Commit

Permalink
feat: add connectionMode for all sourceTypes in dest def for selected…
Browse files Browse the repository at this point in the history
… destinations (#1197)
  • Loading branch information
sandeepdsvs authored Feb 19, 2024
1 parent 5120ec5 commit dde686c
Show file tree
Hide file tree
Showing 32 changed files with 373 additions and 57 deletions.
17 changes: 15 additions & 2 deletions src/configurations/destinations/autopilot/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,23 @@
"reactnative": ["cloud"],
"flutter": ["cloud"],
"cordova": ["cloud"],
"shopify": ["cloud"]
"shopify": ["cloud"],
"cloud": ["cloud"],
"warehouse": ["cloud"]
},
"destConfig": {
"defaultConfig": ["apiKey", "triggerId", "oneTrustCookieCategories"]
"defaultConfig": ["apiKey", "triggerId", "oneTrustCookieCategories"],
"android": ["connectionMode"],
"ios": ["connectionMode"],
"web": ["connectionMode"],
"unity": ["connectionMode"],
"amp": ["connectionMode"],
"reactnative": ["connectionMode"],
"flutter": ["connectionMode"],
"cordova": ["connectionMode"],
"shopify": ["connectionMode"],
"cloud": ["connectionMode"],
"warehouse": ["connectionMode"]
},
"secretKeys": []
}
Expand Down
17 changes: 15 additions & 2 deletions src/configurations/destinations/custify/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,23 @@
"reactnative": ["cloud"],
"flutter": ["cloud"],
"cordova": ["cloud"],
"shopify": ["cloud"]
"shopify": ["cloud"],
"cloud": ["cloud"],
"warehouse": ["cloud"]
},
"destConfig": {
"defaultConfig": ["apiKey", "sendAnonymousId", "oneTrustCookieCategories"]
"defaultConfig": ["apiKey", "sendAnonymousId", "oneTrustCookieCategories"],
"android": ["connectionMode"],
"ios": ["connectionMode"],
"web": ["connectionMode"],
"unity": ["connectionMode"],
"amp": ["connectionMode"],
"reactnative": ["connectionMode"],
"flutter": ["connectionMode"],
"cordova": ["connectionMode"],
"shopify": ["connectionMode"],
"cloud": ["connectionMode"],
"warehouse": ["connectionMode"]
}
}
}
16 changes: 16 additions & 0 deletions src/configurations/destinations/custify/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,22 @@
}
}
}
},
"connectionMode": {
"type": "object",
"properties": {
"android": { "type": "string", "enum": ["cloud"] },
"ios": { "type": "string", "enum": ["cloud"] },
"web": { "type": "string", "enum": ["cloud"] },
"unity": { "type": "string", "enum": ["cloud"] },
"amp": { "type": "string", "enum": ["cloud"] },
"reactnative": { "type": "string", "enum": ["cloud"] },
"flutter": { "type": "string", "enum": ["cloud"] },
"cordova": { "type": "string", "enum": ["cloud"] },
"shopify": { "type": "string", "enum": ["cloud"] },
"cloud": { "type": "string", "enum": ["cloud"] },
"warehouse": { "type": "string", "enum": ["cloud"] }
}
}
}
}
Expand Down
17 changes: 15 additions & 2 deletions src/configurations/destinations/dynamic_yield/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,26 @@
"reactnative": ["cloud"],
"flutter": ["cloud"],
"cordova": ["cloud"],
"shopify": ["cloud"]
"shopify": ["cloud"],
"cloud": ["cloud"],
"warehouse": ["cloud"]
},
"supportedMessageTypes": {
"cloud": ["identify", "track"]
},
"destConfig": {
"defaultConfig": ["apiKey", "hashEmail", "oneTrustCookieCategories"]
"defaultConfig": ["apiKey", "hashEmail", "oneTrustCookieCategories"],
"android": ["connectionMode"],
"ios": ["connectionMode"],
"web": ["connectionMode"],
"unity": ["connectionMode"],
"amp": ["connectionMode"],
"reactnative": ["connectionMode"],
"flutter": ["connectionMode"],
"cordova": ["connectionMode"],
"shopify": ["connectionMode"],
"cloud": ["connectionMode"],
"warehouse": ["connectionMode"]
},
"secretKeys": []
},
Expand Down
18 changes: 14 additions & 4 deletions src/configurations/destinations/dynamic_yield/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,22 @@
}
}
},
"useNativeSDK": {
"type": "boolean"
},
"useNativeSDK": { "type": "boolean" },
"connectionMode": {
"type": "object",
"properties": {}
"properties": {
"android": { "type": "string", "enum": ["cloud"] },
"ios": { "type": "string", "enum": ["cloud"] },
"web": { "type": "string", "enum": ["cloud"] },
"unity": { "type": "string", "enum": ["cloud"] },
"amp": { "type": "string", "enum": ["cloud"] },
"reactnative": { "type": "string", "enum": ["cloud"] },
"flutter": { "type": "string", "enum": ["cloud"] },
"cordova": { "type": "string", "enum": ["cloud"] },
"shopify": { "type": "string", "enum": ["cloud"] },
"cloud": { "type": "string", "enum": ["cloud"] },
"warehouse": { "type": "string", "enum": ["cloud"] }
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
},
"isAudienceSupported": true,
"supportedConnectionModes": {
"shopify": ["cloud"]
"shopify": ["cloud"],
"cloud": ["cloud"],
"warehouse": ["cloud"]
},
"destConfig": {
"defaultConfig": [
Expand All @@ -30,8 +32,9 @@
"subType",
"oneTrustCookieCategories"
],
"cloud": ["audienceId"],
"warehouse": ["adAccountId"]
"cloud": ["audienceId", "connectionMode"],
"warehouse": ["adAccountId", "connectionMode"],
"shopify": ["connectionMode"]
},
"secretKeys": ["accessToken"]
},
Expand Down
10 changes: 5 additions & 5 deletions src/configurations/destinations/firebase/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
"eventFilteringOption",
"oneTrustCookieCategories"
],
"android": ["useNativeSDK"],
"ios": ["useNativeSDK"],
"unity": ["useNativeSDK"],
"reactnative": ["useNativeSDK"],
"flutter": ["useNativeSDK"]
"android": ["useNativeSDK", "connectionMode"],
"ios": ["useNativeSDK", "connectionMode"],
"unity": ["useNativeSDK", "connectionMode"],
"reactnative": ["useNativeSDK", "connectionMode"],
"flutter": ["useNativeSDK", "connectionMode"]
},
"secretKeys": []
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"reactnative": ["cloud"],
"flutter": ["cloud"],
"cordova": ["cloud"],
"shopify": ["cloud"]
"shopify": ["cloud"],
"cloud": ["cloud"],
"warehouse": ["cloud"]
},
"destConfig": {
"defaultConfig": [
Expand All @@ -48,7 +50,18 @@
"loginCustomerId",
"requireHash",
"oneTrustCookieCategories"
]
],
"android": ["connectionMode"],
"ios": ["connectionMode"],
"web": ["connectionMode"],
"unity": ["connectionMode"],
"amp": ["connectionMode"],
"reactnative": ["connectionMode"],
"flutter": ["connectionMode"],
"cordova": ["connectionMode"],
"shopify": ["connectionMode"],
"cloud": ["connectionMode"],
"warehouse": ["connectionMode"]
},
"secretKeys": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"cloud": ["audiencelist"]
},
"supportedConnectionModes": {
"shopify": ["cloud"]
"shopify": ["cloud"],
"cloud": ["cloud"],
"warehouse": ["cloud"]
},
"isAudienceSupported": true,
"supportsBlankAudienceCreation": true,
Expand All @@ -36,7 +38,9 @@
"typeOfList",
"oneTrustCookieCategories"
],
"cloud": ["audienceId"]
"cloud": ["audienceId", "connectionMode"],
"shopify": ["connectionMode"],
"warehouse": ["connectionMode"]
},
"secretKeys": []
},
Expand Down
2 changes: 1 addition & 1 deletion src/configurations/destinations/hotjar/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"eventFilteringOption",
"oneTrustCookieCategories"
],
"web": ["useNativeSDK"]
"web": ["useNativeSDK", "connectionMode"]
},
"secretKeys": []
}
Expand Down
6 changes: 6 additions & 0 deletions src/configurations/destinations/hotjar/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@
}
}
}
},
"connectionMode": {
"type": "object",
"properties": {
"web": { "type": "string", "enum": ["device"] }
}
}
}
}
Expand Down
16 changes: 14 additions & 2 deletions src/configurations/destinations/keen/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
"reactnative": ["cloud"],
"flutter": ["cloud"],
"cordova": ["cloud"],
"shopify": ["cloud"]
"shopify": ["cloud"],
"cloud": ["cloud"],
"warehouse": ["cloud"]
},
"destConfig": {
"defaultConfig": [
Expand All @@ -60,7 +62,17 @@
"eventFilteringOption",
"oneTrustCookieCategories"
],
"web": ["useNativeSDK"]
"web": ["useNativeSDK", "connectionMode"],
"android": ["connectionMode"],
"ios": ["connectionMode"],
"unity": ["connectionMode"],
"amp": ["connectionMode"],
"reactnative": ["connectionMode"],
"flutter": ["connectionMode"],
"cordova": ["connectionMode"],
"shopify": ["connectionMode"],
"cloud": ["connectionMode"],
"warehouse": ["connectionMode"]
},
"secretKeys": []
}
Expand Down
14 changes: 12 additions & 2 deletions src/configurations/destinations/leanplum/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"amp": ["cloud"],
"reactnative": ["cloud"],
"cordova": ["cloud"],
"shopify": ["cloud"]
"shopify": ["cloud"],
"cloud": ["cloud"],
"warehouse": ["cloud"]
},
"hybridModeCloudEventsFilter": {
"android": {
Expand Down Expand Up @@ -71,7 +73,15 @@
],
"android": ["useNativeSDK", "useNativeSDKToSend", "connectionMode"],
"ios": ["useNativeSDK", "useNativeSDKToSend", "connectionMode"],
"flutter": ["useNativeSDK", "useNativeSDKToSend", "connectionMode"]
"flutter": ["useNativeSDK", "useNativeSDKToSend", "connectionMode"],
"web": ["connectionMode"],
"unity": ["connectionMode"],
"amp": ["connectionMode"],
"reactnative": ["connectionMode"],
"cordova": ["connectionMode"],
"shopify": ["connectionMode"],
"cloud": ["connectionMode"],
"warehouse": ["connectionMode"]
},
"secretKeys": ["clientKey"]
}
Expand Down
23 changes: 11 additions & 12 deletions src/configurations/destinations/leanplum/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,17 @@
"connectionMode": {
"type": "object",
"properties": {
"android": {
"type": "string",
"enum": ["cloud", "device", "hybrid"]
},
"ios": {
"type": "string",
"enum": ["cloud", "device", "hybrid"]
},
"flutter": {
"type": "string",
"enum": ["cloud", "device", "hybrid"]
}
"android": { "type": "string", "enum": ["cloud", "device", "hybrid"] },
"ios": { "type": "string", "enum": ["cloud", "device", "hybrid"] },
"flutter": { "type": "string", "enum": ["cloud", "device", "hybrid"] },
"web": { "type": "string", "enum": ["cloud"] },
"unity": { "type": "string", "enum": ["cloud"] },
"amp": { "type": "string", "enum": ["cloud"] },
"reactnative": { "type": "string", "enum": ["cloud"] },
"cordova": { "type": "string", "enum": ["cloud"] },
"shopify": { "type": "string", "enum": ["cloud"] },
"cloud": { "type": "string", "enum": ["cloud"] },
"warehouse": { "type": "string", "enum": ["cloud"] }
}
}
}
Expand Down
17 changes: 15 additions & 2 deletions src/configurations/destinations/one_signal/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
"reactnative": ["cloud"],
"flutter": ["cloud"],
"cordova": ["cloud"],
"shopify": ["cloud"]
"shopify": ["cloud"],
"cloud": ["cloud"],
"warehouse": ["cloud"]
},
"destConfig": {
"defaultConfig": [
Expand All @@ -41,7 +43,18 @@
"eventAsTags",
"allowedProperties",
"oneTrustCookieCategories"
]
],
"android": ["connectionMode"],
"ios": ["connectionMode"],
"web": ["connectionMode"],
"unity": ["connectionMode"],
"amp": ["connectionMode"],
"reactnative": ["connectionMode"],
"flutter": ["connectionMode"],
"cordova": ["connectionMode"],
"shopify": ["connectionMode"],
"cloud": ["connectionMode"],
"warehouse": ["connectionMode"]
},
"secretKeys": []
}
Expand Down
16 changes: 16 additions & 0 deletions src/configurations/destinations/one_signal/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,22 @@
}
}
}
},
"connectionMode": {
"type": "object",
"properties": {
"android": { "type": "string", "enum": ["cloud"] },
"ios": { "type": "string", "enum": ["cloud"] },
"web": { "type": "string", "enum": ["cloud"] },
"unity": { "type": "string", "enum": ["cloud"] },
"amp": { "type": "string", "enum": ["cloud"] },
"reactnative": { "type": "string", "enum": ["cloud"] },
"flutter": { "type": "string", "enum": ["cloud"] },
"cordova": { "type": "string", "enum": ["cloud"] },
"shopify": { "type": "string", "enum": ["cloud"] },
"cloud": { "type": "string", "enum": ["cloud"] },
"warehouse": { "type": "string", "enum": ["cloud"] }
}
}
}
}
Expand Down
Loading

0 comments on commit dde686c

Please sign in to comment.