From 090ea76402480f1df747d5696fe4277341f6dcd6 Mon Sep 17 00:00:00 2001 From: Sudip Paul <67197965+ItsSudip@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:35:34 +0530 Subject: [PATCH 1/2] fix: onboard yandex metrica offline events (#1326) --- .../db-config.json | 30 +++++++++++ .../yandex_metrica_offline_events/schema.json | 29 +++++++++++ .../ui-config.json | 52 +++++++++++++++++++ .../yandex_metrica_offline_events.json | 19 +++++++ 4 files changed, 130 insertions(+) create mode 100644 src/configurations/destinations/yandex_metrica_offline_events/db-config.json create mode 100644 src/configurations/destinations/yandex_metrica_offline_events/schema.json create mode 100644 src/configurations/destinations/yandex_metrica_offline_events/ui-config.json create mode 100644 test/data/validation/destinations/yandex_metrica_offline_events.json diff --git a/src/configurations/destinations/yandex_metrica_offline_events/db-config.json b/src/configurations/destinations/yandex_metrica_offline_events/db-config.json new file mode 100644 index 000000000..1ce6d3e06 --- /dev/null +++ b/src/configurations/destinations/yandex_metrica_offline_events/db-config.json @@ -0,0 +1,30 @@ +{ + "name": "YANDEX_METRICA_OFFLINE_EVENTS", + "displayName": "Yandex Metrica Offline Events", + "config": { + "auth": { + "type": "OAuth", + "rudderScopes": ["delivery"] + }, + "cdkV2Enabled": true, + "supportsVisualMapper": true, + "disableJsonMapper": true, + "syncBehaviours": ["upsert"], + "transformAtV1": "processor", + "saveDestinationResponse": true, + "supportedSourceTypes": ["warehouse"], + "supportedMessageTypes": { + "cloud": ["identify"] + }, + "supportedConnectionModes": { + "cloud": ["cloud"], + "warehouse": ["cloud"] + }, + "destConfig": { + "defaultConfig": ["rudderAccountId", "counterId", "goalId"] + } + }, + "options": { + "isBeta": true + } +} diff --git a/src/configurations/destinations/yandex_metrica_offline_events/schema.json b/src/configurations/destinations/yandex_metrica_offline_events/schema.json new file mode 100644 index 000000000..93dcb1cb6 --- /dev/null +++ b/src/configurations/destinations/yandex_metrica_offline_events/schema.json @@ -0,0 +1,29 @@ +{ + "configSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["counterId"], + "properties": { + "counterId": { + "type": "string", + "pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$" + }, + "goalId": { + "type": "string", + "pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$" + }, + "oneTrustCookieCategories": { + "type": "array", + "items": { + "type": "object", + "properties": { + "oneTrustCookieCategory": { + "type": "string", + "pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$" + } + } + } + } + } + } +} diff --git a/src/configurations/destinations/yandex_metrica_offline_events/ui-config.json b/src/configurations/destinations/yandex_metrica_offline_events/ui-config.json new file mode 100644 index 000000000..5286a4e0e --- /dev/null +++ b/src/configurations/destinations/yandex_metrica_offline_events/ui-config.json @@ -0,0 +1,52 @@ +{ + "uiConfig": [ + { + "title": "Connection Settings", + "fields": [ + { + "type": "textInput", + "label": "Counter ID", + "value": "counterId", + "regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$", + "regexErrorMessage": "Invalid Counter ID, example value 56252632", + "required": true, + "placeholder": "e.g. 562XX632", + "secret": false, + "footerNote": "Your Counter ID" + }, + { + "type": "textInput", + "label": "Goal ID", + "value": "goalId", + "regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$", + "regexErrorMessage": "Invalid Goal ID, example value 56252632", + "required": false, + "placeholder": "e.g. 562XX632", + "secret": false, + "footerNote": "Your Goal ID" + } + ] + }, + { + "title": "Consent Settings", + "fields": [ + { + "type": "dynamicCustomForm", + "value": "oneTrustCookieCategories", + "label": "OneTrust Consent Categories", + "footerNote": "The support for category names is deprecated. We recommend using the category IDs instead of the names as IDs are unique and less likely to change over time, making them a more reliable choice.", + "customFields": [ + { + "type": "textInput", + "placeholder": "C0001", + "value": "oneTrustCookieCategory", + "regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$", + "label": "Category ID", + "required": false + } + ] + } + ] + } + ] +} diff --git a/test/data/validation/destinations/yandex_metrica_offline_events.json b/test/data/validation/destinations/yandex_metrica_offline_events.json new file mode 100644 index 000000000..5958b93e5 --- /dev/null +++ b/test/data/validation/destinations/yandex_metrica_offline_events.json @@ -0,0 +1,19 @@ +[ + { + "config": { + "counterId": "95518171", + "goalId": "23432565", + "rudderAccountId": "2du7fLeK82nk4P2XXXX507uiD1B", + "authStatus": "active" + }, + "result": true + }, + { + "config": { + "counterId": "31517172", + "rudderAccountId": "2du1fLeS82sk0P2XXXX501uiX1B", + "authStatus": "active" + }, + "result": true + } +] From bf63d745c6d7a4e88fa0601f83273c0fad48652a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 22 Apr 2024 11:13:15 +0000 Subject: [PATCH 2/2] chore(release): 1.71.1 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a40c14919..70b95f125 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.1](https://github.com/rudderlabs/rudder-config-schema/compare/v1.71.0...v1.71.1) (2024-04-22) + + +### Bug Fixes + +* onboard yandex metrica offline events ([#1326](https://github.com/rudderlabs/rudder-config-schema/issues/1326)) ([090ea76](https://github.com/rudderlabs/rudder-config-schema/commit/090ea76402480f1df747d5696fe4277341f6dcd6)) + ## [1.71.0](https://github.com/rudderlabs/rudder-config-schema/compare/v1.70.1...v1.71.0) (2024-04-15) diff --git a/package-lock.json b/package-lock.json index 2c0ea8b18..737f7cc55 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "rudder-config-schema", - "version": "1.71.0", + "version": "1.71.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "rudder-config-schema", - "version": "1.71.0", + "version": "1.71.1", "license": "MIT", "dependencies": { "ajv": "^8.12.0", diff --git a/package.json b/package.json index a17adc9c8..4b30db7d5 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rudder-config-schema", - "version": "1.71.0", + "version": "1.71.1", "description": "", "main": "src/index.ts", "private": true,