Skip to content

Commit

Permalink
Merge pull request #1333 from rudderlabs/hotfix-release/v1.71.2
Browse files Browse the repository at this point in the history
chore(release): pull hotfix-release/v1.71.2 into main
  • Loading branch information
Gauravudia authored Apr 24, 2024
2 parents d41209e + 1d66672 commit b30b37c
Show file tree
Hide file tree
Showing 5 changed files with 226 additions and 38 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.71.2](https://github.com/rudderlabs/rudder-config-schema/compare/v1.71.1...v1.71.2) (2024-04-24)


### Bug Fixes

* iterable schema ([#1332](https://github.com/rudderlabs/rudder-config-schema/issues/1332)) ([73060ab](https://github.com/rudderlabs/rudder-config-schema/commit/73060ab151274fadd7701ccfd30f1af9d93cc5b3))

### [1.71.1](https://github.com/rudderlabs/rudder-config-schema/compare/v1.71.0...v1.71.1) (2024-04-22)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rudder-config-schema",
"version": "1.71.1",
"version": "1.71.2",
"description": "",
"main": "src/index.ts",
"private": true,
Expand Down
230 changes: 195 additions & 35 deletions src/configurations/destinations/iterable/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
},
"useNativeSDK": { "type": "object", "properties": { "web": { "type": "boolean" } } },
"useNativeSDK": {
"type": "object",
"properties": {
"web": {
"type": "boolean"
}
}
},
"getInAppEventMapping": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -50,15 +57,61 @@
"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" } } },
"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": {
Expand All @@ -71,36 +124,102 @@
},
"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"
}
}
},
"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" }
"web": {
"type": "string",
"enum": ["top-right", "top-left"],
"default": "top-right"
}
}
},
"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 @@ -116,25 +235,66 @@
"connectionMode": {
"type": "object",
"properties": {
"web": { "type": "string", "enum": ["cloud", "device"] },
"android": { "type": "string", "enum": ["cloud"] },
"ios": { "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"] }
"web": {
"type": "string",
"enum": ["cloud", "device"]
},
"android": {
"type": "string",
"enum": ["cloud"]
},
"ios": {
"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"]
}
}
}
},
"anyOf": [
{
"if": {
"properties": {
"connectionMode": { "type": "object", "properties": { "web": { "const": "device" } } }
"connectionMode": {
"type": "object",
"required": ["web"],
"properties": {
"web": {
"const": "device"
}
}
}
},
"required": ["connectionMode"]
},
Expand Down
21 changes: 21 additions & 0 deletions test/data/validation/destinations/iterable.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,27 @@
},
"result": true
},
{
"config": {
"apiKey": "73983282843839749873",
"mapToSingleEvent": true,
"trackAllPages": false,
"trackCategorisedPages": true,
"trackNamedPages": true,
"useNativeSDK": {
"web": false
},
"connectionMode": {
"cloud": "cloud"
},
"oneTrustCookieCategories": [
{
"oneTrustCookieCategory": ""
}
]
},
"result": true
},
{
"config": {
"apiKey": "73983282843839749873",
Expand Down

0 comments on commit b30b37c

Please sign in to comment.