Skip to content

Commit

Permalink
feat: onboard zoho (#1528)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 authored Jul 22, 2024
1 parent 6f533ad commit e9ea507
Show file tree
Hide file tree
Showing 4 changed files with 516 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/configurations/destinations/zoho/db-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "ZOHO",
"displayName": "ZOHO",
"config": {
"cdkV2Enabled": true,
"supportsVisualMapper": true,
"auth": { "type": "OAuth" },
"transformAtV1": "router",
"saveDestinationResponse": true,
"excludeKeys": [],
"supportedSourceTypes": ["warehouse"],
"supportedMessageTypes": { "cloud": ["record"] },
"syncBehaviours": ["mirror"],
"disableJsonMapper": true,
"supportedConnectionModes": {
"warehouse": ["cloud"]
},
"includeKeys": ["oneTrustCookieCategories", "consentManagement"],
"destConfig": {
"defaultConfig": [
"rudderAccountId",
"region",
"trigger",
"module",
"addDefaultDuplicateCheck",
"multiSelectFieldLevelDecision",
"oneTrustCookieCategories"
],
"warehouse": ["connectionMode", "consentManagement"]
}
},
"options": {
"isBeta": true,
"hidden": {
"featureFlagName": "AMP_zoho",
"featureFlagValue": false
}
}
}
114 changes: 114 additions & 0 deletions src/configurations/destinations/zoho/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"configSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["region"],
"properties": {
"region": {
"type": "string",
"enum": ["US"],
"default": "US"
},
"module": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"multiSelectFieldLevelDecision": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$"
},
"to": {
"type": "string",
"enum": ["true", "false"],
"default": "true"
}
}
}
},
"trigger": {
"type": "string",
"enum": ["workflow", "approval", "blueprint", "Default", "None"],
"default": "None"
},
"addDefaultDuplicateCheck": {
"type": "boolean",
"default": true
},
"oneTrustCookieCategories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"oneTrustCookieCategory": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
},
"connectionMode": {
"type": "object",
"properties": {
"warehouse": { "type": "string", "enum": ["cloud"] }
}
},
"consentManagement": {
"type": "object",
"properties": {
"warehouse": {
"type": "array",
"items": {
"type": "object",
"properties": {
"provider": {
"type": "string",
"enum": ["custom", "ketch", "oneTrust"],
"default": "oneTrust"
},
"consents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"consent": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
}
},
"allOf": [
{
"if": {
"properties": {
"provider": {
"const": "custom"
}
},
"required": ["provider"]
},
"then": {
"properties": {
"resolutionStrategy": {
"type": "string",
"enum": ["and", "or"]
}
},
"required": ["resolutionStrategy"]
}
}
]
}
}
}
}
},
"additionalProperties": true
}
}
Loading

0 comments on commit e9ea507

Please sign in to comment.