Skip to content

Commit

Permalink
Merge pull request #802 from rudderlabs/feat.move-iterable-to-new-ui
Browse files Browse the repository at this point in the history
feat(INT-165): move to new ui
  • Loading branch information
mihir-4116 authored Sep 14, 2023
2 parents a9deca0 + bfb1f1e commit d6fc0a0
Show file tree
Hide file tree
Showing 4 changed files with 788 additions and 242 deletions.
34 changes: 23 additions & 11 deletions src/configurations/destinations/iterable/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
"iconPath",
"isRequiredToDismissMessage",
"closeButtonPosition",
"oneTrustCookieCategories",
"preferUserId",
"mergeNestedObjects"
"oneTrustCookieCategories"
],
"excludeKeys": [],
"supportedSourceTypes": [
Expand All @@ -47,17 +45,31 @@
"cordova",
"shopify"
],
"supportedMessageTypes": ["identify", "page", "screen", "track", "alias"],
"supportedMessageTypes": [
"identify",
"page",
"screen",
"track",
"alias"
],
"supportedConnectionModes": {
"web": [
"cloud",
"device"
]
},
"destConfig": {
"defaultConfig": [
"apiKey",
"mapToSingleEvent",
"packageName",
"preferUserId",
"trackAllPages",
"trackCategorisedPages",
"trackNamedPages",
"mapToSingleEvent",
"mergeNestedObjects",
"trackCategorisedPages",
"oneTrustCookieCategories",
"preferUserId",
"mergeNestedObjects"
"registerDeviceOrBrowserApiKey"
],
"web": [
"useNativeSDK",
Expand All @@ -69,7 +81,6 @@
"displayInterval",
"onOpenScreenReaderMessage",
"onOpenNodeToTakeFocus",
"packageName",
"rightOffset",
"topOffset",
"bottomOffset",
Expand All @@ -80,9 +91,10 @@
"closeButtonColorSideOffset",
"iconPath",
"isRequiredToDismissMessage",
"closeButtonPosition"
"closeButtonPosition",
"connectionMode"
]
},
"secretKeys": []
}
}
}
238 changes: 210 additions & 28 deletions src/configurations/destinations/iterable/schema.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
{
"configSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"required": ["apiKey"],
"required": [
"apiKey"
],
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$"
},
"useNativeSDK": { "type": "object", "properties": { "web": { "type": "boolean" } } },
"registerDeviceOrBrowserApiKey": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"useNativeSDK": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"getInAppEventMapping": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -46,52 +59,179 @@
"initialisationIdentifier": {
"type": "object",
"properties": {
"web": { "type": "string", "enum": ["email", "userId"], "default": "email" }
"web": {
"type": "string",
"enum": [
"email",
"userId"
],
"default": "email"
}
}
},
"sendTrackForInapp": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"animationDuration": {
"type": "object",
"properties": {
"web": {
"type": "string"
}
}
},
"bottomOffset": {
"type": "object",
"properties": {
"web": {
"type": "string"
}
}
},
"rightOffset": {
"type": "object",
"properties": {
"web": {
"type": "string"
}
}
},
"topOffset": {
"type": "object",
"properties": {
"web": {
"type": "string"
}
}
},
"displayInterval": {
"type": "object",
"properties": {
"web": {
"type": "string"
}
}
},
"sendTrackForInapp": { "type": "object", "properties": { "web": { "type": "boolean" } } },
"packageName": { "type": "object", "properties": { "web": { "type": "string" } } },
"animationDuration": { "type": "object", "properties": { "web": { "type": "string" } } },
"bottomOffset": { "type": "object", "properties": { "web": { "type": "string" } } },
"rightOffset": { "type": "object", "properties": { "web": { "type": "string" } } },
"topOffset": { "type": "object", "properties": { "web": { "type": "string" } } },
"displayInterval": { "type": "object", "properties": { "web": { "type": "string" } } },
"handleLinks": {
"type": "object",
"properties": {
"web": {
"type": "string",
"enum": ["open-all-new-tab", "open-all-same-tab", "external-new-tab", ""]
"enum": [
"open-all-new-tab",
"open-all-same-tab",
"external-new-tab"
],
"default": "open-all-new-tab"
}
}
},
"onOpenScreenReaderMessage": {
"type": "object",
"properties": { "web": { "type": "string" } }
"properties": {
"web": {
"type": "string"
}
}
},
"onOpenNodeToTakeFocus": {
"type": "object",
"properties": {
"web": {
"type": "string"
}
}
},
"closeButtonColor": {
"type": "object",
"properties": {
"web": {
"type": "string"
}
}
},
"closeButtonSize": {
"type": "object",
"properties": {
"web": {
"type": "string"
}
}
},
"closeButtonPosition": {
"type": "object",
"properties": {
"web": {
"type": "string",
"enum": [
"top-right",
"top-left"
],
"default": "top-right"
}
}
},
"onOpenNodeToTakeFocus": { "type": "object", "properties": { "web": { "type": "string" } } },
"closeButtonColor": { "type": "object", "properties": { "web": { "type": "string" } } },
"closeButtonSize": { "type": "object", "properties": { "web": { "type": "string" } } },
"closeButtonPosition": { "type": "object", "properties": { "web": { "type": "string" } } },
"closeButtonColorTopOffset": {
"type": "object",
"properties": { "web": { "type": "string" } }
"properties": {
"web": {
"type": "string"
}
}
},
"closeButtonColorSideOffset": {
"type": "object",
"properties": { "web": { "type": "string" } }
"properties": {
"web": {
"type": "string"
}
}
},
"iconPath": {
"type": "object",
"properties": {
"web": {
"type": "string"
}
}
},
"iconPath": { "type": "object", "properties": { "web": { "type": "string" } } },
"isRequiredToDismissMessage": {
"type": "object",
"properties": { "web": { "type": "boolean" } }
"properties": {
"web": {
"type": "boolean"
}
}
},
"mapToSingleEvent": {
"type": "boolean",
"default": true
},
"trackAllPages": {
"type": "boolean",
"default": false
},
"trackCategorisedPages": {
"type": "boolean",
"default": true
},
"trackNamedPages": {
"type": "boolean",
"default": true
},
"preferUserId": {
"type": "boolean",
"default": true
},
"mergeNestedObjects": {
"type": "boolean",
"default": true
},
"mapToSingleEvent": { "type": "boolean", "default": true },
"trackAllPages": { "type": "boolean", "default": false },
"trackCategorisedPages": { "type": "boolean", "default": true },
"trackNamedPages": { "type": "boolean", "default": true },
"preferUserId": { "type": "boolean", "default": true },
"mergeNestedObjects": { "type": "boolean", "default": true },
"oneTrustCookieCategories": {
"type": "array",
"items": {
Expand All @@ -103,7 +243,49 @@
}
}
}
},
"connectionMode": {
"type": "object",
"properties": {
"web": {
"type": "string",
"enum": [
"cloud",
"device"
]
}
}
}
},
"anyOf": [
{
"if": {
"properties": {
"connectionMode": {
"type": "object",
"properties": {
"web": {
"const": "device"
}
}
}
},
"required": [
"connectionMode"
]
},
"then": {
"properties": {
"packageName": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$"
}
},
"required": [
"packageName"
]
}
}
}
]
}
}
}
Loading

0 comments on commit d6fc0a0

Please sign in to comment.