Skip to content

Commit

Permalink
feat: onboard new destination ninetailed (#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
anantjain45823 authored Feb 29, 2024
1 parent 1812a8c commit ef2045f
Show file tree
Hide file tree
Showing 4 changed files with 663 additions and 0 deletions.
64 changes: 64 additions & 0 deletions src/configurations/destinations/ninetailed/db-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "NINETAILED",
"displayName": "Ninetailed",
"config": {
"cdkV2Enabled": true,
"transformAtV1": "router",
"saveDestinationResponse": true,
"includeKeys": [
"environment",
"blacklistedEvents",
"whitelistedEvents",
"eventFilteringOption",
"oneTrustCookieCategories"
],
"excludeKeys": [],
"supportedSourceTypes": [
"web",
"ios",
"android",
"unity",
"amp",
"cloud",
"warehouse",
"reactnative",
"flutter",
"cordova",
"shopify"
],
"supportedMessageTypes": {
"cloud": ["identify", "track", "page"],
"device": {
"web": ["identify", "track", "page"]
}
},
"supportedConnectionModes": {
"web": ["cloud", "device"],
"android": ["cloud"],
"ios": ["cloud"],
"unity": ["cloud"],
"amp": ["cloud"],
"reactnative": ["cloud"],
"flutter": ["cloud"],
"cordova": ["cloud"],
"shopify": ["cloud"],
"warehouse": ["cloud"],
"cloud": ["cloud"]
},
"destConfig": {
"defaultConfig": [
"environment",
"organisationId",
"blacklistedEvents",
"whitelistedEvents",
"eventFilteringOption",
"oneTrustCookieCategories"
],
"web": ["useNativeSDK", "connectionMode"]
},
"secretKeys": ["organisationId"]
},
"options": {
"isBeta": true
}
}
184 changes: 184 additions & 0 deletions src/configurations/destinations/ninetailed/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
{
"configSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [],
"type": "object",
"properties": {
"environment": {
"type": "string",
"enum": ["main", "dev"],
"default": "main"
},
"eventFilteringOption": {
"type": "string",
"enum": ["disable", "whitelistedEvents", "blacklistedEvents"],
"default": "disable"
},
"whitelistedEvents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"eventName": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
},
"blacklistedEvents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"eventName": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
},
"useNativeSDK": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"oneTrustCookieCategories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"oneTrustCookieCategory": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
},
"connectionMode": {
"type": "object",
"properties": {
"web": {
"type": "string",
"enum": ["device", "cloud"]
}
}
}
},
"additonalProperties": false,
"allOf": [
{
"if": {
"properties": {
"connectionMode": {
"type": "object",
"anyOf": [
{
"required": ["web"],
"properties": {
"web": {
"const": "cloud"
}
}
},
{
"required": ["ios"],
"properties": {
"ios": {
"const": "cloud"
}
}
},
{
"required": ["android"],
"properties": {
"android": {
"const": "cloud"
}
}
},
{
"required": ["unity"],
"properties": {
"unity": {
"const": "cloud"
}
}
},
{
"required": ["amp"],
"properties": {
"amp": {
"const": "cloud"
}
}
},
{
"required": ["reactnative"],
"properties": {
"reactnative": {
"const": "cloud"
}
}
},
{
"required": ["flutter"],
"properties": {
"flutter": {
"const": "cloud"
}
}
},
{
"required": ["cordova"],
"properties": {
"cordova": {
"const": "cloud"
}
}
},
{
"required": ["shopify"],
"properties": {
"shopify": {
"const": "cloud"
}
}
},
{
"required": ["cloud"],
"properties": {
"cloud": {
"const": "cloud"
}
}
},
{
"required": ["warehouse"],
"properties": {
"warehouse": {
"const": "cloud"
}
}
}
]
}
},
"required": ["connectionMode"]
},
"then": {
"properties": {
"organisationId": {
"type": "string",
"pattern": "^(.{1,100})$"
}
},
"required": ["organisationId"]
}
}
]
}
}
Loading

0 comments on commit ef2045f

Please sign in to comment.