Skip to content

Commit

Permalink
feat: marketo: migrate to new UI layout (#1044)
Browse files Browse the repository at this point in the history
Co-authored-by: Ujjwal Abhishek <[email protected]>
  • Loading branch information
anantjain45823 and ujjwal-ab authored Nov 10, 2023
1 parent 0874512 commit 968310a
Show file tree
Hide file tree
Showing 4 changed files with 558 additions and 150 deletions.
119 changes: 99 additions & 20 deletions src/configurations/destinations/marketo/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"transformAt": "router",
"transformAtV1": "router",
"saveDestinationResponse": true,
"includeKeys": ["oneTrustCookieCategories"],
"includeKeys": [
"oneTrustCookieCategories"
],
"excludeKeys": [],
"supportedSourceTypes": [
"android",
Expand All @@ -22,46 +24,123 @@
"cordova",
"shopify"
],
"supportedMessageTypes": ["identify", "track"],
"supportedConnectionModes": {
"web": [
"cloud"
],
"android": [
"cloud"
],
"ios": [
"cloud"
],
"unity": [
"cloud"
],
"amp": [
"cloud"
],
"reactnative": [
"cloud"
],
"flutter": [
"cloud"
],
"cordova": [
"cloud"
],
"shopify": [
"cloud"
]
},
"supportedMessageTypes": {
"cloud": [
"identify",
"track"
]
},
"destConfig": {
"defaultConfig": [
"accountId",
"clientId",
"clientSecret",
"trackAnonymousEvents",
"createIfNotExist",
"customActivityEventMap",
"rudderEventsMapping",
"customActivityPropertyMap",
"customActivityPrimaryKeyMap",
"leadTraitMapping",
"oneTrustCookieCategories"
]
},
"secretKeys": ["clientSecret"]
"secretKeys": [
"clientSecret"
]
},
"responseRules": {
"responseType": "JSON",
"rules": {
"retryable": [
{ "success": "false", "errors.0.code": 600 },
{ "success": "false", "errors.0.code": 601 },
{ "success": "false", "errors.0.code": 602 },
{ "success": "false", "errors.0.code": 604 },
{ "success": "false", "errors.0.code": 611 }
{
"success": "false",
"errors.0.code": 600
},
{
"success": "false",
"errors.0.code": 601
},
{
"success": "false",
"errors.0.code": 602
},
{
"success": "false",
"errors.0.code": 604
},
{
"success": "false",
"errors.0.code": 611
}
],
"abortable": [
{ "success": "false", "errors.0.code": 603 },
{ "success": "false", "errors.0.code": 605 },
{ "success": "false", "errors.0.code": 609 },
{ "success": "false", "errors.0.code": 610 }
{
"success": "false",
"errors.0.code": 603
},
{
"success": "false",
"errors.0.code": 605
},
{
"success": "false",
"errors.0.code": 609
},
{
"success": "false",
"errors.0.code": 610
}
],
"throttled": [
{ "success": "false", "errors.0.code": 502 },
{ "success": "false", "errors.0.code": 606 },
{ "success": "false", "errors.0.code": 607 },
{ "success": "false", "errors.0.code": 608 },
{ "success": "false", "errors.0.code": 615 }
{
"success": "false",
"errors.0.code": 502
},
{
"success": "false",
"errors.0.code": 606
},
{
"success": "false",
"errors.0.code": 607
},
{
"success": "false",
"errors.0.code": 608
},
{
"success": "false",
"errors.0.code": 615
}
]
}
}
}
}
98 changes: 96 additions & 2 deletions src/configurations/destinations/marketo/schema.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,97 @@
{
"configSchema": null
}
"configSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"accountId",
"clientId",
"clientSecret"
],
"type": "object",
"properties": {
"accountId": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$"
},
"clientId": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$"
},
"clientSecret": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$"
},
"trackAnonymousEvents": {
"type": "boolean",
"default": false
},
"createIfNotExist": {
"type": "boolean",
"default": true
},
"leadTraitMapping": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
}
}
}
},
"customActivityPropertyMap": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
}
}
}
},
"rudderEventsMapping": {
"type": "array",
"items": {
"type": "object",
"properties": {
"event": {
"type": "string"
},
"marketoPrimarykey": {
"type": "string"
},
"marketoActivityId": {
"type": "string"
}
}
}
},
"oneTrustCookieCategories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"oneTrustCookieCategory": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
},
"useNativeSDK": {
"type": "boolean"
},
"connectionMode": {
"type": "object",
"properties": {}
}
}
}
}
Loading

0 comments on commit 968310a

Please sign in to comment.