Skip to content

Commit

Permalink
Merge pull request #502 from rudderlabs/hotfix-release/v1.20.0
Browse files Browse the repository at this point in the history
chore(release): pull hotfix-release/v1.20.0 into main
  • Loading branch information
ItsSudip authored Apr 4, 2023
2 parents d3d4bad + efb699c commit 40bdd4e
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 21 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

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.20.0](https://github.com/rudderlabs/rudder-config-schema/compare/v1.19.0...v1.20.0) (2023-04-04)


### Features

* **klaviyo:** make private API kay mandatory ([#501](https://github.com/rudderlabs/rudder-config-schema/issues/501)) ([a2d26b8](https://github.com/rudderlabs/rudder-config-schema/commit/a2d26b8d3a1e8faa463585545411b329ee1b950e))


### Bug Fixes

* impact error message and test update ([#499](https://github.com/rudderlabs/rudder-config-schema/issues/499)) ([de7d78f](https://github.com/rudderlabs/rudder-config-schema/commit/de7d78f67554f16c35bb0509fe0fd8f37a6adca2))

## 1.19.0 (2023-04-03)


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.19.0",
"version": "1.20.0",
"description": "",
"main": "src/index.ts",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion src/configurations/destinations/impact/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"configSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["apiKey"],
"required": ["apiKey", "accountSID", "campaignId"],
"properties": {
"accountSID": {
"type": "string",
Expand Down
12 changes: 6 additions & 6 deletions src/configurations/destinations/impact/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "textInput",
"label": "Account SID",
"value": "accountSID",
"regex": "^(.{1,100})$",
"regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$",
"regexErrorMessage": "Invalid Account SID",
"required": true,
"placeholder": "e.g. saDbFeVZicnpPeGJ6M0JOTXFxTVN2QkdpWTJ3NENpNUlZ",
Expand All @@ -18,7 +18,7 @@
"type": "textInput",
"label": "API Key",
"value": "apiKey",
"regex": "^(.{1,100})$",
"regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$",
"regexErrorMessage": "Invalid API Key",
"required": true,
"placeholder": "e.g: npPeGJ6M0JOjgAvfCs-XAYkh~dpWTJ",
Expand All @@ -29,7 +29,7 @@
"type": "textInput",
"label": "Campaign Id",
"value": "campaignId",
"regex": "^[0-9]+$",
"regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^[0-9]+$",
"regexErrorMessage": "Invalid Campaign Id",
"required": true,
"placeholder": "e.g: 34343",
Expand All @@ -40,7 +40,7 @@
"type": "textInput",
"label": "Impact App Id",
"value": "impactAppId",
"regex": "^[0-9]+$",
"regex": "(^\\{\\{.*\\|\\|(.*?)\\}\\}$)|(^env[.].+)|^[0-9]+$|^$",
"regexErrorMessage": "Invalid Impact App Id",
"required": false,
"placeholder": "e.g: 34343",
Expand All @@ -56,8 +56,8 @@
"type": "textInput",
"label": "Event Type Id",
"value": "eventTypeId",
"regex": "^[0-9]+$",
"regexErrorMessage": "Invalid Account SID",
"regex": "(^\\{\\{.*\\|\\|(.*?)\\}\\}$)|(^env[.].+)|^[0-9]+$|^$",
"regexErrorMessage": "Invalid Event Type Id",
"required": false,
"placeholder": "e.g. 35355",
"secret": false,
Expand Down
6 changes: 5 additions & 1 deletion src/configurations/destinations/klaviyo/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
"configSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["publicApiKey"],
"required": ["publicApiKey", "privateApiKey"],
"properties": {
"publicApiKey": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$"
},
"privateApiKey": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$"
},
"listId": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
Expand Down
4 changes: 2 additions & 2 deletions src/configurations/destinations/klaviyo/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"type": "textInput",
"label": "Private API Key",
"value": "privateApiKey",
"regex": ".*",
"required": false,
"regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$",
"required": true,
"placeholder": "e.g. c59e3838",
"secret": true,
"footerNote": "Your Private API Key"
Expand Down
12 changes: 4 additions & 8 deletions test/data/validation/destinations/impact.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"accountSID": "dfsgertrtff3erfc34rfwf",
"apiKey": "fghsdfgegvcergfvfdfsag",
"campaignId": "23224",
"impactAppId": "rtfjb",
"impactAppId": false,
"eventTypeId": "56446",
"enableEmailHashing": true,
"rudderToImpactProperty": [
Expand All @@ -54,17 +54,15 @@
"installEventNames": [{ "eventName": "App Installed" }]
},
"result": false,
"err": [
"impactAppId must match pattern \"(^\\{\\{.*\\|\\|(.*?)\\}\\}$)|(^env[.].+)|^[0-9]+$|^$\""
]
"err": ["impactAppId must be string"]
},
{
"config": {
"accountSID": "dfsgertrtff3erfc34rfwf",
"apiKey": "fghsdfgegvcergfvfdfsag",
"campaignId": "23224",
"impactAppId": "56446",
"eventTypeId": "rtfjb",
"eventTypeId": 43434,
"enableEmailHashing": true,
"rudderToImpactProperty": [
{
Expand All @@ -85,9 +83,7 @@
"installEventNames": [{ "eventName": "App Installed" }]
},
"result": false,
"err": [
"eventTypeId must match pattern \"(^\\{\\{.*\\|\\|(.*?)\\}\\}$)|(^env[.].+)|^[0-9]+$|^$\""
]
"err": ["eventTypeId must be string"]
},
{
"config": {
Expand Down
20 changes: 20 additions & 0 deletions test/data/validation/destinations/klaviyo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[
{
"config": {
"privateApiKey": "WfO9dsffsf1",
"listId": "ior6v5j",
"enforceEmailAsPrimary": true,
"consent": "directmail",
Expand Down Expand Up @@ -31,6 +32,25 @@
"useNativeSDK": { "web": true },
"oneTrustCookieCategories": [{ "oneTrustCookieCategory": "" }]
},
"result": false,
"err": [" must have required property 'privateApiKey'"]
},
{
"config": {
"publicApiKey": "WfO9f1",
"privateApiKey": "WfO9dsffsf1",
"listId": "ior6v5j",
"enforceEmailAsPrimary": true,
"consent": "directmail",
"smsConsent": false,
"sendPageAsTrack": true,
"additionalPageInfo": true,
"eventFilteringOption": "disable",
"whitelistedEvents": [{ "eventName": "" }],
"blacklistedEvents": [{ "eventName": "" }],
"useNativeSDK": { "web": true },
"oneTrustCookieCategories": [{ "oneTrustCookieCategory": "" }]
},
"result": true
}
]

0 comments on commit 40bdd4e

Please sign in to comment.