Skip to content

Commit

Permalink
fix: add new field for list of props (#1734)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsSudip authored Oct 9, 2024
1 parent 2ef7ae4 commit d45386b
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/configurations/destinations/af/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
"whitelistedEvents",
"eventFilteringOption",
"statusCallbackUrls",
"apiToken"
"apiToken",
"listOfProps"
],
"android": [
"useNativeSDK",
Expand Down
11 changes: 11 additions & 0 deletions src/configurations/destinations/af/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@
"type": "boolean",
"default": false
},
"listOfProps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"property": {
"type": "string"
}
}
}
},
"afCurrencyAtRoot": {
"type": "boolean",
"default": false
Expand Down
18 changes: 18 additions & 0 deletions src/configurations/destinations/af/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,24 @@
"footerNote": "To send the custom properties to the root of eventValue.",
"default": false
},
{
"type": "dynamicCustomForm",
"label": "List of properties",
"value": "listOfProps",
"footerNote": "Add your name of properties that need to be sent at the root of eventValue.",
"customFields": [
{
"type": "textInput",
"value": "property",
"required": false,
"placeholder": "e.g: Price"
}
],
"preRequisiteField": {
"name": "addPropertiesAtRoot",
"selectedValue": false
}
},
{
"type": "checkbox",
"label": "Add af_currency to root of eventValue",
Expand Down
14 changes: 14 additions & 0 deletions test/data/validation/destinations/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@
"useRichEventName": true,
"sharingFilter": "all",
"eventFilteringOption": "whitelistedEvents",
"listOfProps": [
{
"property": "prop1"
},
{
"property": "prop2"
},
{
"property": "prop3"
},
{
"property": "prop4"
}
],
"whitelistedEvents": [
{
"eventName": "devKey_event"
Expand Down

0 comments on commit d45386b

Please sign in to comment.