From b5a49aad7ab37d2faaac35d9f56841437d6997d4 Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Mon, 9 Oct 2023 01:36:26 +0530 Subject: [PATCH 1/9] refactor: algolia, appcues, attentive to component tc --- .../destinations/algolia/processor/data.ts | 1243 ++++++++++++ .../destinations/appcues/processor/data.ts | 1387 ++++++++++++++ .../attentive_tag/processor/data.ts | 1659 +++++++++++++++++ 3 files changed, 4289 insertions(+) create mode 100644 test/integrations/destinations/algolia/processor/data.ts create mode 100644 test/integrations/destinations/appcues/processor/data.ts create mode 100644 test/integrations/destinations/attentive_tag/processor/data.ts diff --git a/test/integrations/destinations/algolia/processor/data.ts b/test/integrations/destinations/algolia/processor/data.ts new file mode 100644 index 0000000000..fa76b6376e --- /dev/null +++ b/test/integrations/destinations/algolia/processor/data.ts @@ -0,0 +1,1243 @@ +export const data = [ + { + "name": "algolia", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "testone@gmail.com", + "firstName": "test", + "lastName": "one" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/destinations/ometria", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/ometria", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "event": "product clicked", + "userId": "testuserId1", + "properties": { + "index": "products", + "filters": [ + "field1:hello", + "val1:val2" + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "applicationId": "O2YARRI15I", + "eventTypeSettings": [ + { + "from": "product clicked", + "to": "cLick " + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "FORM": {}, + "JSON_ARRAY": {}, + "JSON": { + "events": [ + { + "eventName": "product clicked", + "eventType": "click", + "filters": [ + "field1:hello", + "val1:val2" + ], + "index": "products", + "userToken": "testuserId1" + } + ] + }, + "XML": {} + }, + "endpoint": "https://insights.algolia.io/1/events", + "files": {}, + "headers": { + "X-Algolia-API-Key": "dummyApiKey", + "X-Algolia-Application-Id": "O2YARRI15I" + }, + "method": "POST", + "params": {}, + "type": "REST", + "userId": "", + "version": "1" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "algolia", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "testone@gmail.com", + "firstName": "test", + "lastName": "one" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/destinations/ometria", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/ometria", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "event": "product list viewed", + "userId": "testuserId1", + "properties": { + "index": "products", + "products": [ + { + "objectId": "ecommerce-sample-data-919", + "position": 7 + }, + { + "objectId": "9780439784542", + "position": 8 + } + ], + "queryId": "43b15df305339e827f0ac0bdc5ebcaa7" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "applicationId": "O2YARRI15I", + "eventTypeSettings": [ + { + "from": "product list viewed", + "to": "click" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "FORM": {}, + "JSON_ARRAY": {}, + "JSON": { + "events": [ + { + "eventName": "product list viewed", + "eventType": "click", + "objectIDs": [ + "ecommerce-sample-data-919", + "9780439784542" + ], + "positions": [ + 7, + 8 + ], + "index": "products", + "userToken": "testuserId1", + "queryID": "43b15df305339e827f0ac0bdc5ebcaa7" + } + ] + }, + "XML": {} + }, + "endpoint": "https://insights.algolia.io/1/events", + "files": {}, + "headers": { + "X-Algolia-API-Key": "dummyApiKey", + "X-Algolia-Application-Id": "O2YARRI15I" + }, + "method": "POST", + "params": {}, + "type": "REST", + "userId": "", + "version": "1" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "algolia", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "testone@gmail.com", + "firstName": "test", + "lastName": "one" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/destinations/ometria", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/ometria", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "event": "product clicked", + "userId": "testuserId1", + "properties": { + "eventType": "click", + "index": "products", + "queryId": "43b15df305339e827f0ac0bdc5ebcaa8" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "applicationId": "O2YARRI15I", + "eventTypeSettings": [] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Either filters or objectIds is required.", + "statTags": { + "destType": "ALGOLIA", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "algolia", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "testone@gmail.com", + "firstName": "test", + "lastName": "one" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/destinations/ometria", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/ometria", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "userId": "testuserId1", + "event": "product clicked", + "properties": { + "index": "products", + "queryId": "43b15df305339e827f0ac0bdc5ebcaa7" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "applicationId": "O2YARRI15I", + "eventTypeSettings": [] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "eventType is mandatory for track call", + "statTags": { + "destType": "ALGOLIA", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "algolia", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "testone@gmail.com", + "firstName": "test", + "lastName": "one" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/destinations/ometria", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/ometria", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "event": "product list viewed", + "userId": "testuserId1", + "properties": { + "index": "products", + "products": [ + { + "objectId": "ecommerce-sample-data-919", + "position": 7 + }, + { + "objectId": "9780439784542", + "position": 8 + } + ], + "queryId": "" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "applicationId": "O2YARRI15I", + "eventTypeSettings": [ + { + "from": "product list viewed", + "to": "click" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "for click eventType either both positions and queryId should be present or none", + "statTags": { + "destType": "ALGOLIA", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "algolia", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "testone@gmail.com", + "firstName": "test", + "lastName": "one" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/destinations/ometria", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/ometria", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "event": "product list viewed", + "userId": "testuserId1", + "properties": { + "index": "products", + "products": [ + { + "objectId": "ecommerce-sample-data-919", + "position": 7 + }, + { + "objectId": "9780439784542", + "position": 8 + } + ], + "queryId": "43b15df305339e827f0ac0bdc5ebcaa7" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "applicationId": "O2YARRI15I", + "eventTypeSettings": [ + { + "from": "product list viewed", + "to": "view" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "FORM": {}, + "JSON_ARRAY": {}, + "JSON": { + "events": [ + { + "eventName": "product list viewed", + "eventType": "view", + "index": "products", + "objectIDs": [ + "ecommerce-sample-data-919", + "9780439784542" + ], + "userToken": "testuserId1", + "queryID": "43b15df305339e827f0ac0bdc5ebcaa7" + } + ] + }, + "XML": {} + }, + "endpoint": "https://insights.algolia.io/1/events", + "files": {}, + "headers": { + "X-Algolia-API-Key": "dummyApiKey", + "X-Algolia-Application-Id": "O2YARRI15I" + }, + "method": "POST", + "params": {}, + "type": "REST", + "userId": "", + "version": "1" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "algolia", + "description": "Test 6", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "testone@gmail.com", + "firstName": "test", + "lastName": "one" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/destinations/ometria", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/ometria", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "event": "product list viewed", + "userId": "testuserId1", + "properties": { + "index": "products", + "products": [ + { + "objectId": "ecommerce-sample-data-919", + "position": "7" + }, + { + "objectId": "9780439784542", + "position": "a" + } + ], + "queryId": "43b15df305339e827f0ac0bdc5ebcaa7" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "applicationId": "O2YARRI15I", + "eventTypeSettings": [ + { + "from": "product list viewed", + "to": "click" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "for click eventType either both positions and queryId should be present or none", + "statTags": { + "destType": "ALGOLIA", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "algolia", + "description": "Test 7", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "testone@gmail.com", + "firstName": "test", + "lastName": "one" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/destinations/ometria", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/ometria", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "event": "product list viewed", + "userId": "testuserId1", + "properties": { + "index": "products", + "products": [ + { + "objectId": "ecommerce-sample-data-919", + "position": "7" + }, + { + "objectId": "9780439784542", + "position": "a" + } + ], + "queryId": "43b15df305339e827f0ac0bdc5ebcaa7" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "applicationId": "O2YARRI15I", + "eventTypeSettings": [ + { + "from": "product list viewed", + "to": "check" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "eventType can be either click, view or conversion", + "statTags": { + "destType": "ALGOLIA", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "algolia", + "description": "Test 8", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "testone@gmail.com", + "firstName": "test", + "lastName": "one" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/destinations/ometria", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/ometria", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "event": "product list viewed", + "userId": "testuserId1", + "properties": { + "index": "products", + "products": [ + { + "objectId": "ecommerce-sample-data-919", + "position": "7" + }, + { + "objectId": "9780439784542", + "position": "a" + } + ], + "queryId": "43b15df305339e827f0ac0bdc5ebcaa7" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "applicationId": "O2YARRI15I" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "eventType is mandatory for track call", + "statTags": { + "destType": "ALGOLIA", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "algolia", + "description": "Test 9", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "testone@gmail.com", + "firstName": "test", + "lastName": "one" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/destinations/ometria", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/ometria", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "event": "product clicked", + "userId": "testuserId1", + "properties": { + "filters": [ + "field1:hello", + "val1:val2" + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "applicationId": "O2YARRI15I", + "eventTypeSettings": [ + { + "from": "product clicked", + "to": "cLick " + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Missing required value from \"properties.index\"", + "statTags": { + "destType": "ALGOLIA", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "algolia", + "description": "Test 10", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "testone@gmail.com", + "firstName": "test", + "lastName": "one" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/destinations/ometria", + "referrer": "", + "search": "", + "title": "", + "url": "https://docs.rudderstack.com/destinations/ometria", + "category": "destination", + "initial_referrer": "https://docs.rudderstack.com", + "initial_referring_domain": "docs.rudderstack.com" + } + }, + "type": "track", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "event": [ + "abc", + "def" + ], + "userId": "testuserId1", + "properties": { + "filters": [ + "field1:hello", + "val1:val2" + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "applicationId": "O2YARRI15I", + "eventTypeSettings": [ + { + "from": "product clicked", + "to": "cLick " + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "event name should be a string", + "statTags": { + "destType": "ALGOLIA", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + } +] \ No newline at end of file diff --git a/test/integrations/destinations/appcues/processor/data.ts b/test/integrations/destinations/appcues/processor/data.ts new file mode 100644 index 0000000000..c01abc241e --- /dev/null +++ b/test/integrations/destinations/appcues/processor/data.ts @@ -0,0 +1,1387 @@ +export const data = [ + { + name: 'appcues', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '33787665-4168-4acc-8df7-17ba79325332', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + campaign: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + page: { + path: '/rudder-sdk-js/tests/html/script-test.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', + }, + screen: { + density: 2, + }, + traits: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '6a5f38c0-4e75-4268-a066-2b73fbcad01f', + originalTimestamp: '2021-01-04T08:25:04.780Z', + receivedAt: '2021-01-04T13:55:04.799+05:30', + request_ip: '[::1]', + rudderId: '79881a62-980a-4d76-89ca-7099440f8c13', + sentAt: '2021-01-04T08:25:04.781Z', + timestamp: '2021-01-04T13:55:04.798+05:30', + type: 'identify', + userId: 'onlyUserId', + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + request_id: '6a5f38c0-4e75-4268-a066-2b73fbcad01f', + profile_update: {}, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + userId: '', + params: {}, + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.appcues.com/v1/accounts/86086/users/onlyUserId/activity', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'appcues', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '33787665-4168-4acc-8df7-17ba79325332', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + campaign: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + page: { + path: '/rudder-sdk-js/tests/html/script-test.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', + }, + screen: { + density: 2, + }, + traits: { + 'first name': 'John', + 'last name': 'Abraham', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '57494c6a-3c62-4b30-83aa-6e821d37ac75', + originalTimestamp: '2021-01-04T08:25:04.786Z', + receivedAt: '2021-01-04T13:55:04.799+05:30', + request_ip: '[::1]', + rudderId: 'ed2ed08a-3cd9-4b2c-9b04-7e3d3501fab7', + sentAt: '2021-01-04T08:25:04.787Z', + timestamp: '2021-01-04T13:55:04.798+05:30', + type: 'identify', + userId: 'userIdWithProperties', + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + request_id: '57494c6a-3c62-4b30-83aa-6e821d37ac75', + profile_update: { + 'last name': 'Abraham', + 'first name': 'John', + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + userId: '', + params: {}, + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: + 'https://api.appcues.com/v1/accounts/86086/users/userIdWithProperties/activity', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'appcues', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '59f2911c-f050-497d-9f80-e1696a3c56aa', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + campaign: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + page: { + path: '/rudder-sdk-js/tests/html/script-test.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', + }, + screen: { + density: 2, + }, + traits: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + }, + event: 'eventWithoutProperties', + integrations: { + All: true, + }, + messageId: '045f5107-6036-4557-ae17-6ddf5ee57eb6', + originalTimestamp: '2021-01-04T08:33:07.004Z', + properties: {}, + receivedAt: '2021-01-04T14:03:07.009+05:30', + request_ip: '[::1]', + rudderId: '9b6b8204-292c-493b-9c08-2c3ec0ade688', + sentAt: '2021-01-04T08:33:07.005Z', + timestamp: '2021-01-04T14:03:07.008+05:30', + type: 'track', + userId: 'sampleId', + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'eventWithoutProperties', + timestamp: 1609749187, + attributes: {}, + }, + ], + request_id: '045f5107-6036-4557-ae17-6ddf5ee57eb6', + }, + }, + type: 'REST', + files: {}, + method: 'POST', + userId: '', + params: {}, + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.appcues.com/v1/accounts/86086/users/sampleId/activity', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'appcues', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '59f2911c-f050-497d-9f80-e1696a3c56aa', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + campaign: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + page: { + path: '/rudder-sdk-js/tests/html/script-test.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', + }, + screen: { + density: 2, + }, + traits: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + }, + event: 'eventWithProperties', + integrations: { + All: true, + }, + messageId: '4b99c45d-8591-473c-b79d-abd466f6f4d5', + originalTimestamp: '2021-01-04T08:33:07.006Z', + properties: { + category: 'blah', + }, + receivedAt: '2021-01-04T14:03:07.026+05:30', + request_ip: '[::1]', + rudderId: '9b6b8204-292c-493b-9c08-2c3ec0ade688', + sentAt: '2021-01-04T08:33:07.006Z', + timestamp: '2021-01-04T14:03:07.026+05:30', + type: 'track', + userId: 'sampleId', + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'eventWithProperties', + timestamp: 1609749187, + attributes: { + category: 'blah', + }, + }, + ], + request_id: '4b99c45d-8591-473c-b79d-abd466f6f4d5', + }, + }, + type: 'REST', + files: {}, + method: 'POST', + userId: '', + params: {}, + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.appcues.com/v1/accounts/86086/users/sampleId/activity', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'appcues', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'a4a6304a-df41-4ca9-b2b7-4b0009dfddaa', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + campaign: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + page: { + path: '/rudder-sdk-js/tests/html/script-test.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', + }, + screen: { + density: 2, + }, + traits: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '75a9e08b-955a-4dc7-8a39-3f6fba9d7497', + originalTimestamp: '2021-01-04T08:43:05.783Z', + properties: { + path: '/rudder-sdk-js/tests/html/script-test.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', + }, + receivedAt: '2021-01-04T14:13:05.800+05:30', + request_ip: '[::1]', + rudderId: '2d03081c-8053-4cce-9abf-bb024f747900', + sentAt: '2021-01-04T08:43:05.783Z', + timestamp: '2021-01-04T14:13:05.799+05:30', + type: 'page', + userId: 'sampleId', + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'Visited a Page', + context: { + url: 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', + }, + timestamp: 1609749785, + attributes: { + url: 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', + path: '/rudder-sdk-js/tests/html/script-test.html', + _identity: { + userId: 'sampleId', + }, + }, + }, + ], + request_id: '75a9e08b-955a-4dc7-8a39-3f6fba9d7497', + profile_update: { + _appcuesId: '86086', + _updatedAt: '2021-01-04T14:13:05.799+05:30', + _userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + _currentPageUrl: + 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', + _lastBrowserLanguage: 'en-GB', + userId: 'sampleId', + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + userId: '', + params: {}, + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.appcues.com/v1/accounts/86086/users/sampleId/activity', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'appcues', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'a4a6304a-df41-4ca9-b2b7-4b0009dfddaa', + category: 'page category', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + campaign: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + page: { + path: '/testing', + referrer: '', + search: '', + title: '', + url: 'https://pagecall.com/testing', + }, + screen: { + density: 2, + }, + traits: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '397fdf96-daee-46c8-ac38-5d717cd8cabd', + name: 'page name', + originalTimestamp: '2021-01-04T08:43:05.784Z', + properties: { + category: 'page category', + name: 'page name', + path: '/testing', + referrer: '', + search: '', + title: '', + url: 'https://pagecall.com/testing', + }, + receivedAt: '2021-01-04T14:13:05.801+05:30', + request_ip: '[::1]', + rudderId: '2d03081c-8053-4cce-9abf-bb024f747900', + sentAt: '2021-01-04T08:43:05.784Z', + timestamp: '2021-01-04T14:13:05.801+05:30', + type: 'page', + userId: 'sampleId', + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + events: [ + { + name: 'Visited a Page', + context: { + url: 'https://pagecall.com/testing', + }, + timestamp: 1609749785, + attributes: { + url: 'https://pagecall.com/testing', + name: 'page name', + path: '/testing', + category: 'page category', + _identity: { + userId: 'sampleId', + }, + }, + }, + ], + request_id: '397fdf96-daee-46c8-ac38-5d717cd8cabd', + profile_update: { + _appcuesId: '86086', + _updatedAt: '2021-01-04T14:13:05.801+05:30', + _userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + _currentPageUrl: 'https://pagecall.com/testing', + _lastBrowserLanguage: 'en-GB', + userId: 'sampleId', + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + userId: '', + params: {}, + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.appcues.com/v1/accounts/86086/users/sampleId/activity', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'appcues', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'a4a6304a-df41-4ca9-b2b7-4b0009dfddaa', + category: 'page category', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + campaign: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + page: { + path: '/testing', + referrer: '', + search: '', + }, + screen: { + density: 2, + }, + traits: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '397fdf96-daee-46c8-ac38-5d717cd8cabd', + name: 'page name', + originalTimestamp: '2021-01-04T08:43:05.784Z', + properties: { + category: 'page category', + name: 'page name', + path: '/testing', + referrer: '', + search: '', + title: 'properties title', + url: 'https://pagecall.com/properties_url', + }, + receivedAt: '2021-01-04T14:13:05.801+05:30', + request_ip: '[::1]', + rudderId: '2d03081c-8053-4cce-9abf-bb024f747900', + sentAt: '2021-01-04T08:43:05.784Z', + timestamp: '2021-01-04T14:13:05.801+05:30', + type: 'page', + userId: 'sampleId', + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.appcues.com/v1/accounts/86086/users/sampleId/activity', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + request_id: '397fdf96-daee-46c8-ac38-5d717cd8cabd', + profile_update: { + userId: 'sampleId', + _lastBrowserLanguage: 'en-GB', + _updatedAt: '2021-01-04T14:13:05.801+05:30', + _userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + _currentPageTitle: 'properties title', + _currentPageUrl: 'https://pagecall.com/properties_url', + _appcuesId: '86086', + }, + events: [ + { + timestamp: 1609749785, + attributes: { + category: 'page category', + name: 'page name', + path: '/testing', + title: 'properties title', + url: 'https://pagecall.com/properties_url', + _identity: { + userId: 'sampleId', + }, + }, + name: 'Visited a Page', + context: { + url: 'https://pagecall.com/properties_url', + }, + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'appcues', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'a4a6304a-df41-4ca9-b2b7-4b0009dfddaa', + category: 'page category', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + campaign: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + page: { + path: '/testing', + referrer: '', + search: '', + title: 'context title', + url: 'https://pagecall.com/context_url', + }, + screen: { + density: 2, + }, + traits: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '397fdf96-daee-46c8-ac38-5d717cd8cabd', + name: 'page name', + originalTimestamp: '2021-01-04T08:43:05.784Z', + properties: { + category: 'page category', + name: 'page name', + path: '/testing', + referrer: '', + search: '', + }, + receivedAt: '2021-01-04T14:13:05.801+05:30', + request_ip: '[::1]', + rudderId: '2d03081c-8053-4cce-9abf-bb024f747900', + sentAt: '2021-01-04T08:43:05.784Z', + timestamp: '2021-01-04T14:13:05.801+05:30', + type: 'page', + userId: 'sampleId', + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + userId: '', + endpoint: 'https://api.appcues.com/v1/accounts/86086/users/sampleId/activity', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + request_id: '397fdf96-daee-46c8-ac38-5d717cd8cabd', + profile_update: { + userId: 'sampleId', + _lastBrowserLanguage: 'en-GB', + _updatedAt: '2021-01-04T14:13:05.801+05:30', + _userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + _currentPageTitle: 'context title', + _currentPageUrl: 'https://pagecall.com/context_url', + _appcuesId: '86086', + }, + events: [ + { + timestamp: 1609749785, + attributes: { + category: 'page category', + name: 'page name', + path: '/testing', + _identity: { + userId: 'sampleId', + }, + }, + name: 'Visited a Page', + context: { + url: 'https://pagecall.com/context_url', + }, + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'appcues', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '5094f5704b9cf2b3', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'AppcuesIntegration', + namespace: 'com.Appcues', + version: '1.0', + }, + device: { + id: '5094f5704b9cf2b3', + manufacturer: 'Google', + model: 'Android SDK built for x86', + name: 'generic_x86', + type: 'android', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.1-beta.1', + }, + locale: 'en-US', + network: { + carrier: 'Android', + bluetooth: false, + cellular: true, + wifi: true, + }, + os: { + name: 'Android', + version: '8.1.0', + }, + screen: { + density: 420, + height: 1794, + width: 1080, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '5094f5704b9cf2b3', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'MainActivity', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + name: 'MainActivity', + automatic: true, + }, + originalTimestamp: '2020-03-12T09:05:03.421Z', + type: 'screen', + userId: 'sampleId', + sentAt: '2020-03-12T09:05:13.042Z', + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + userId: '', + endpoint: 'https://api.appcues.com/v1/accounts/86086/users/sampleId/activity', + headers: { + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + request_id: 'id1', + events: [ + { + name: 'Viewed a Screen', + timestamp: 1584003903, + attributes: { + name: 'MainActivity', + automatic: true, + }, + }, + ], + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'appcues', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '5094f5704b9cf2b3', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'AppcuesIntegration', + namespace: 'com.Appcues', + version: '1.0', + }, + device: { + id: '5094f5704b9cf2b3', + manufacturer: 'Google', + model: 'Android SDK built for x86', + name: 'generic_x86', + type: 'android', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.1-beta.1', + }, + locale: 'en-US', + network: { + carrier: 'Android', + bluetooth: false, + cellular: true, + wifi: true, + }, + os: { + name: 'Android', + version: '8.1.0', + }, + screen: { + density: 420, + height: 1794, + width: 1080, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '5094f5704b9cf2b3', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'MainActivity', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + name: 'MainActivity', + automatic: true, + }, + originalTimestamp: '2020-03-12T09:05:03.421Z', + type: 'screen', + sentAt: '2020-03-12T09:05:13.042Z', + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: "User id is absent. Aborting event as userId is mandatory for Appcues", + statTags: { + destType: 'APPCUES', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'appcues', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '5094f5704b9cf2b3', + channel: 'mobile', + context: { + app: { + build: '1', + name: 'AppcuesIntegration', + namespace: 'com.Appcues', + version: '1.0', + }, + device: { + id: '5094f5704b9cf2b3', + manufacturer: 'Google', + model: 'Android SDK built for x86', + name: 'generic_x86', + type: 'android', + }, + library: { + name: 'com.rudderstack.android.sdk.core', + version: '1.0.1-beta.1', + }, + locale: 'en-US', + network: { + carrier: 'Android', + bluetooth: false, + cellular: true, + wifi: true, + }, + os: { + name: 'Android', + version: '8.1.0', + }, + screen: { + density: 420, + height: 1794, + width: 1080, + }, + timezone: 'Asia/Kolkata', + traits: { + anonymousId: '5094f5704b9cf2b3', + }, + userAgent: + 'Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)', + }, + event: 'MainActivity', + integrations: { + All: true, + }, + messageId: 'id1', + properties: { + name: 'MainActivity', + automatic: true, + }, + originalTimestamp: '2020-03-12T09:05:03.421Z', + type: '', + userId: 'sampleId', + sentAt: '2020-03-12T09:05:13.042Z', + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Message Type is not present. Aborting message.', + statTags: { + destType: 'APPCUES', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'appcues', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.5', + }, + traits: { + name: 'Shehan Study', + category: 'SampleIdentify', + email: 'test@rudderstack.com', + plan: 'Open source', + logins: 5, + createdAt: 1599264000, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.5', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 0.8999999761581421, + }, + campaign: { + source: 'google', + medium: 'medium', + term: 'keyword', + content: 'some content', + name: 'some campaign', + test: 'other value', + }, + page: { + path: '/html/sajal.html', + referrer: '', + search: + '?utm_source=google&utm_medium=medium&utm_term=keyword&utm_content=some%20content&utm_campaign=some%20campaign&utm_test=other%20value', + title: '', + url: 'http://localhost:9116/html/sajal.html?utm_source=google&utm_medium=medium&utm_term=keyword&utm_content=some%20content&utm_campaign=some%20campaign&utm_test=other%20value', + }, + }, + type: 'group', + messageId: 'e5034df0-a404-47b4-a463-76df99934fea', + originalTimestamp: '2020-10-20T07:54:58.983Z', + anonymousId: 'my-anonymous-id-new', + userId: 'sampleusrRudder3', + integrations: { + All: true, + }, + groupId: 'Sample_groupId23', + traits: { + KEY_3: { + CHILD_KEY_92: 'value_95', + CHILD_KEY_102: 'value_103', + }, + KEY_2: { + CHILD_KEY_92: 'value_95', + CHILD_KEY_102: 'value_103', + }, + name_trait: 'Company', + value_trait: 'Comapny-ABC', + }, + sentAt: '2020-10-20T07:54:58.983Z', + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Message type is not supported', + statTags: { + destType: 'APPCUES', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/attentive_tag/processor/data.ts b/test/integrations/destinations/attentive_tag/processor/data.ts new file mode 100644 index 0000000000..df5292ac42 --- /dev/null +++ b/test/integrations/destinations/attentive_tag/processor/data.ts @@ -0,0 +1,1659 @@ +export const data = [ + { + "name": "attentive_tag", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", + "channel": "web", + "context": { + "locale": "en-GB", + "traits": { + "email": "a@gmail.com", + "phone": "+16405273911", + "customIdentifiers": [ + { + "name": "string", + "value": "string" + } + ] + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36" + }, + "integrations": { + "All": true + }, + "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", + "receivedAt": "2019-10-14T09:03:17.562Z", + "type": "identify" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "241654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "userId": "", + "method": "POST", + "endpoint": "https://api.attentivemobile.com/v1/subscriptions", + "headers": { + "Authorization": "Bearer dummyApiKey", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "user": { + "phone": "+16405273911", + "email": "a@gmail.com" + }, + "signUpSourceId": "241654", + "externalIdentifiers": { + "customIdentifiers": [ + { + "name": "string", + "value": "string" + } + ] + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {} + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "phone": "+16465053911" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "id": "72e528f869711c3d", + "manufacturer": "Google", + "model": "sdk_gphone_x86", + "name": "generic_x86_arm", + "token": "some_device_token", + "type": "android" + }, + "screen": { + "density": 2 + }, + "externalId": [ + { + "type": "clientUserId", + "id": "144" + }, + { + "type": "shopifyId", + "id": "224" + }, + { + "type": "klaviyoId", + "id": "132" + } + ] + }, + "type": "track", + "properties": { + "price": "12", + "currency": "USD", + "product,id": "r494", + "quantity": "34", + "variant": "f" + }, + "event": "Order Shipped", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:17.562Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "240654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "[Attentive_Tag]: Events must be sent within 12 hours of their occurrence.", + "statTags": { + "destType": "ATTENTIVE_TAG", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", + "channel": "web", + "context": { + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "traits": { + "company": { + "id": "abc123" + }, + "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", + "phone": "+16465453911" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36" + }, + "integrations": { + "All": true, + "attentive_tag": { + "signUpSourceId": "241654", + "identifyOperation": "unsubscribe" + } + }, + "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", + "receivedAt": "2020-10-16T13:56:14.945+05:30", + "type": "identify" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "241654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "userId": "", + "method": "POST", + "endpoint": "https://api.attentivemobile.com/v1/subscriptions/unsubscribe", + "headers": { + "Authorization": "Bearer dummyApiKey", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "user": { + "phone": "+16465453911" + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {} + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "id": "72e528f869711c3d", + "manufacturer": "Google", + "model": "sdk_gphone_x86", + "name": "generic_x86_arm", + "token": "some_device_token", + "type": "android" + }, + "screen": { + "density": 2 + }, + "externalId": [ + { + "type": "clientUserId", + "id": "144" + }, + { + "type": "shopifyId", + "id": "143" + }, + { + "type": "klaviyoId", + "id": "142" + } + ] + }, + "type": "track", + "properties": { + "price": "12", + "currency": "USD", + "product_id": "r494", + "quantity": "34", + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "name": "MOBILE", + "variant": "green", + "price": "19", + "quantity": "2", + "currency": "USD" + } + ] + }, + "event": "Order Completed", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "240654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "[Attentive_Tag]: Events must be sent within 12 hours of their occurrence.", + "statTags": { + "destType": "ATTENTIVE_TAG", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "phone": "+16465053911" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "id": "72e528f869711c3d", + "manufacturer": "Google", + "model": "sdk_gphone_x86", + "name": "generic_x86_arm", + "token": "some_device_token", + "type": "android" + }, + "screen": { + "density": 2 + }, + "externalId": [ + { + "type": "clientUserId", + "id": 1 + }, + { + "type": "shopifyId", + "id": 1 + }, + { + "type": "klaviyoId", + "id": 1 + } + ] + }, + "type": "track", + "properties": { + "price": "12", + "currency": "USD", + "product_id": "r494", + "quantity": "34", + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "name": "MOBILE", + "variant": "green", + "price": "19", + "quantity": "2", + "currency": "USD" + } + ] + }, + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "240654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "[Attentive Tag] :: Event name is not present", + "statTags": { + "destType": "ATTENTIVE_TAG", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "phone": "+16465053911" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "id": "72e528f869711c3d", + "manufacturer": "Google", + "model": "sdk_gphone_x86", + "name": "generic_x86_arm", + "token": "some_device_token", + "type": "android" + }, + "screen": { + "density": 2 + }, + "externalId": [ + { + "type": "clientUserId", + "id": "144" + }, + { + "type": "shopifyId", + "id": "143" + }, + { + "type": "klaviyoId", + "id": "142" + } + ] + }, + "type": "track", + "properties": { + "price": "12", + "currency": "USD", + "product_id": "r494", + "quantity": "34", + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "name": "MOBILE", + "variant": "green", + "price": "19", + "quantity": "2", + "currency": "USD" + } + ] + }, + "event": "Product List Viewed", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "240654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "[Attentive Tag]: Events must be sent within 12 hours of their occurrence.", + "statTags": { + "destType": "ATTENTIVE_TAG", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 6", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "phone": "+16465053911" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "id": "72e528f869711c3d", + "manufacturer": "Google", + "model": "sdk_gphone_x86", + "name": "generic_x86_arm", + "token": "some_device_token", + "type": "android" + }, + "screen": { + "density": 2 + }, + "externalId": [ + { + "type": "clientUserId", + "id": "144" + }, + { + "type": "shopifyId", + "id": "143" + }, + { + "type": "klaviyoId", + "id": "142" + } + ] + }, + "type": "track", + "properties": { + "price": "12", + "currency": "USD", + "product_id": "r494", + "quantity": "34", + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "name": "MOBILE", + "variant": "green", + "price": "19", + "quantity": "2", + "currency": "USD" + } + ] + }, + "event": "Product Viewed", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "240654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "[Attentive Tag]: Events must be sent within 12 hours of their occurrence.", + "statTags": { + "destType": "ATTENTIVE_TAG", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 7", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "phone": "+16465053911" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "id": "72e528f869711c3d", + "manufacturer": "Google", + "model": "sdk_gphone_x86", + "name": "generic_x86_arm", + "token": "some_device_token", + "type": "android" + }, + "screen": { + "density": 2 + }, + "externalId": [ + { + "type": "clientUserId", + "id": "144" + }, + { + "type": "shopifyId", + "id": "224" + }, + { + "type": "klaviyoId", + "id": "132" + } + ] + }, + "type": "track", + "properties": { + "price": "12", + "currency": "USD", + "product_id": "r494", + "quantity": "34" + }, + "event": "Order Shipped", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "240654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "[Attentive Tag]: Events must be sent within 12 hours of their occurrence.", + "statTags": { + "destType": "ATTENTIVE_TAG", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 8", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "phone": "+16465053911" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "id": "72e528f869711c3d", + "manufacturer": "Google", + "model": "sdk_gphone_x86", + "name": "generic_x86_arm", + "token": "some_device_token", + "type": "android" + }, + "screen": { + "density": 2 + }, + "externalId": [ + { + "type": "clientUserId", + "id": 1 + }, + { + "type": "shopifyId", + "id": 1 + }, + { + "type": "klaviyoId", + "id": 1 + } + ] + }, + "properties": { + "price": "12", + "currency": "USD", + "product_id": "r494", + "quantity": "34", + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "name": "MOBILE", + "variant": "green", + "price": "19", + "quantity": "2", + "currency": "USD" + } + ] + }, + "event": "Order Completed", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "240654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Message Type is not present. Aborting message.", + "statTags": { + "destType": "ATTENTIVE_TAG", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 9", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", + "channel": "web", + "context": { + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "traits": { + "company": { + "id": "abc123" + }, + "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", + "email": "test0@gmail.com", + "phone": "+16465453911" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36" + }, + "integrations": { + "All": true, + "attentive_tag": { + "signUpSourceId": "241654", + "identifyOperation": "subscribe" + } + }, + "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", + "receivedAt": "2020-10-16T13:56:14.945+05:30", + "type": "identify" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "241654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "userId": "", + "method": "POST", + "endpoint": "https://api.attentivemobile.com/v1/subscriptions", + "headers": { + "Authorization": "Bearer dummyApiKey", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "user": { + "phone": "+16465453911", + "email": "test0@gmail.com" + }, + "signUpSourceId": "241654" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {} + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 10", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": {}, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "id": "72e528f869711c3d", + "manufacturer": "Google", + "model": "sdk_gphone_x86", + "name": "generic_x86_arm", + "token": "some_device_token", + "type": "android" + }, + "screen": { + "density": 2 + }, + "externalId": [ + { + "type": "clientUserId", + "id": "144" + }, + { + "type": "shopifyId", + "id": "143" + }, + { + "type": "klaviyoId", + "id": "142" + } + ] + }, + "type": "track", + "properties": { + "price": "12", + "currency": "USD", + "product_id": "r494", + "quantity": "34", + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "name": "MOBILE", + "variant": "green", + "price": "19", + "quantity": "2", + "currency": "USD" + } + ] + }, + "event": "Product Viewed", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "240654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "[Attentive_Tag]: Events must be sent within 12 hours of their occurrence.", + "statTags": { + "destType": "ATTENTIVE_TAG", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 11", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "phone": "+16465053911" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "id": "72e528f869711c3d", + "manufacturer": "Google", + "model": "sdk_gphone_x86", + "name": "generic_x86_arm", + "token": "some_device_token", + "type": "android" + }, + "screen": { + "density": 2 + }, + "externalId": [ + { + "type": "clientUserId", + "id": "144" + }, + { + "type": "shopifyId", + "id": "143" + }, + { + "type": "klaviyoId", + "id": "142" + } + ] + }, + "type": "track", + "properties": { + "price": "12", + "currency": "USD", + "product_id": "r494", + "quantity": "34", + "products": [ + { + "name": "MOBILE", + "variant": "green", + "price": "19", + "quantity": "2", + "currency": "USD" + } + ] + }, + "event": "Product Viewed", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "240654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "Missing required value from \"product_id\"", + "statTags": { + "destType": "ATTENTIVE_TAG", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 12", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "phone": "+16465053911" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "id": "72e528f869711c3d", + "manufacturer": "Google", + "model": "sdk_gphone_x86", + "name": "generic_x86_arm", + "token": "some_device_token", + "type": "android" + }, + "screen": { + "density": 2 + }, + "externalId": [ + { + "type": "clientUserId", + "id": "144" + }, + { + "type": "shopifyId", + "id": "143" + }, + { + "type": "klaviyoId", + "id": "142" + } + ] + }, + "type": "track", + "properties": { + "price": "12", + "currency": "USD", + "product_id": "r494", + "quantity": "34", + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "name": "MOBILE", + "price": "19", + "quantity": "2", + "currency": "USD" + } + ] + }, + "event": "Product Viewed", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "240654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "statusCode": 400, + "error": "Missing required value from \"variant\"" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 13", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "phone": "+16465053911" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "id": "72e528f869711c3d", + "manufacturer": "Google", + "model": "sdk_gphone_x86", + "name": "generic_x86_arm", + "token": "some_device_token", + "type": "android" + }, + "screen": { + "density": 2 + }, + "externalId": [ + { + "type": "clientUserId", + "id": "144" + }, + { + "type": "shopifyId", + "id": "143" + }, + { + "type": "klaviyoId", + "id": "142" + } + ] + }, + "type": "track", + "properties": { + "price": "12", + "curre,ncy": "USD", + "product_id": "r494", + "quantity": "34", + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "name": "MOBILE", + "variant": "green", + "price": "19", + "quantity": "2", + "currency": "USD" + } + ] + }, + "event": "Order Shipped", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "240654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "statusCode": 400, + "error": "[Attentive Tag]:The event name contains characters which is not allowed" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 14", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", + "channel": "web", + "context": { + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "traits": { + "company": { + "id": "abc123" + }, + "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", + "email": "test0@gmail.com", + "phone": "+16465453911" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36" + }, + "integrations": { + "All": true, + "attentive_tag": { + "signUpSourceId": "241654" + } + }, + "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", + "receivedAt": "2020-10-16T13:56:14.945+05:30", + "type": "identify" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "241654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.attentivemobile.com/v1/subscriptions", + "headers": { + "Authorization": "Bearer dummyApiKey", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "user": { + "phone": "+16465453911", + "email": "test0@gmail.com" + }, + "signUpSourceId": "241654" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {} + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "attentive_tag", + "description": "Test 15", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": {}, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "id": "72e528f869711c3d", + "manufacturer": "Google", + "model": "sdk_gphone_x86", + "name": "generic_x86_arm", + "token": "some_device_token", + "type": "android" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "properties": { + "price": "12", + "currency": "USD", + "product_id": "r494", + "quantity": "34", + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "name": "MOBILE", + "variant": "green", + "price": "19", + "quantity": "2", + "currency": "USD" + } + ] + }, + "event": "Product Viewed", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey", + "signUpSourceId": "240654" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.attentivemobile.com/v1/events/ecommerce/product-view", + "headers": { + "Authorization": "Bearer dummyApiKey", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "user": {}, + "occuredAt": "2019-10-14T09:03:17.562Z", + "items": [ + { + "productId": "507f1f77bcf86cd799439011", + "name": "MOBILE", + "productVariantId": "green", + "quantity": "2", + "price": [ + { + "value": 19, + "currency": "USD" + } + ] + } + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {} + }, + "statusCode": 200 + } + ] + } + } + } +] \ No newline at end of file From 48720de1990bdd6469c9feed99abc6998751d7a1 Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Fri, 13 Oct 2023 02:07:11 +0530 Subject: [PATCH 2/9] test: fix processor tc for branch,candu,customerio --- .../destinations/branch/processor/data.ts | 1493 +++ .../destinations/candu/processor/data.ts | 1366 +++ .../destinations/customerio/processor/data.ts | 8483 +++++++++++++++++ 3 files changed, 11342 insertions(+) create mode 100644 test/integrations/destinations/branch/processor/data.ts create mode 100644 test/integrations/destinations/candu/processor/data.ts create mode 100644 test/integrations/destinations/customerio/processor/data.ts diff --git a/test/integrations/destinations/branch/processor/data.ts b/test/integrations/destinations/branch/processor/data.ts new file mode 100644 index 0000000000..9fed354235 --- /dev/null +++ b/test/integrations/destinations/branch/processor/data.ts @@ -0,0 +1,1493 @@ +export const data = [ + { + name: 'branch', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: true, + advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + type: 'ios', + attTrackingStatus: 3, + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'iOS', + version: '14.4.1', + }, + screen: { + density: 2, + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + event: 'product added', + integrations: { + All: true, + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + properties: { + name: 'sampath', + }, + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'track', + userId: 'sampath', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.branch.io/v2/event/standard', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + branch_key: '', + name: 'ADD_TO_CART', + content_items: [ + { + $product_name: 'sampath', + }, + ], + user_data: { + os: 'iOS', + os_version: '14.4.1', + app_version: '1.0.0', + screen_dpi: 2, + developer_identity: 'sampath', + idfa: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + idfv: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + limit_ad_tracking: false, + model: 'AOSP on IA Emulator', + user_agent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: 'sampath', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'branch', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: true, + advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + type: 'Android', + attTrackingStatus: 2, + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'Android', + version: '9', + }, + screen: { + density: 2, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + integrations: { + All: true, + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'identify', + userId: 'sampath', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.branch.io/v2/event/custom', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + branch_key: '', + name: 'sampath', + custom_data: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + content_items: [{}], + user_data: { + os: 'Android', + os_version: '9', + app_version: '1.0.0', + screen_dpi: 2, + developer_identity: 'sampath', + android_id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + aaid: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + limit_ad_tracking: true, + model: 'AOSP on IA Emulator', + user_agent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: 'sampath', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'branch', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + integrations: { + All: true, + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'page', + userId: 'sampath', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + statTags: { + destType: 'BRANCH', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + error: 'Message type is not supported', + }, + ], + }, + }, + }, + { + name: 'branch', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: true, + advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + attTrackingStatus: 3, + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'watchos', + }, + screen: { + density: 2, + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + event: 'product added', + integrations: { + All: true, + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + properties: { + name: 'sampath', + }, + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'track', + userId: 'sampath', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.branch.io/v2/event/standard', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + content_items: [ + { + $product_name: 'sampath', + }, + ], + user_data: { + os: 'watchos', + app_version: '1.0.0', + screen_dpi: 2, + developer_identity: 'sampath', + idfa: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + idfv: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + limit_ad_tracking: false, + model: 'AOSP on IA Emulator', + user_agent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + name: 'ADD_TO_CART', + branch_key: '', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'sampath', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'branch', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: true, + advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + attTrackingStatus: 3, + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'ipados', + }, + screen: { + density: 2, + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + event: 'product added', + integrations: { + All: true, + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + properties: { + name: 'sampath', + }, + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'track', + userId: 'sampath', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.branch.io/v2/event/standard', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + content_items: [ + { + $product_name: 'sampath', + }, + ], + user_data: { + os: 'ipados', + app_version: '1.0.0', + screen_dpi: 2, + developer_identity: 'sampath', + idfa: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + idfv: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + limit_ad_tracking: false, + model: 'AOSP on IA Emulator', + user_agent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + name: 'ADD_TO_CART', + branch_key: '', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'sampath', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'branch', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: true, + advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + attTrackingStatus: 3, + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'tvos', + }, + screen: { + density: 2, + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + event: 'product added', + integrations: { + All: true, + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + properties: { + name: 'sampath', + }, + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'track', + userId: 'sampath', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.branch.io/v2/event/standard', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + content_items: [ + { + $product_name: 'sampath', + }, + ], + user_data: { + os: 'tvos', + app_version: '1.0.0', + screen_dpi: 2, + developer_identity: 'sampath', + idfa: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + idfv: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + limit_ad_tracking: false, + model: 'AOSP on IA Emulator', + user_agent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + name: 'ADD_TO_CART', + branch_key: '', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'sampath', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'branch', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: true, + advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + type: 'ios', + attTrackingStatus: 3, + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'iOS', + version: '14.4.1', + }, + screen: { + density: 2, + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + event: 'product added', + integrations: { + All: true, + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'track', + userId: 'sampath', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.branch.io/v2/event/standard', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + user_data: { + os: 'iOS', + os_version: '14.4.1', + app_version: '1.0.0', + screen_dpi: 2, + developer_identity: 'sampath', + idfa: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + idfv: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + limit_ad_tracking: false, + model: 'AOSP on IA Emulator', + user_agent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + name: 'ADD_TO_CART', + branch_key: '', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'sampath', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'branch', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: true, + advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + type: 'ios', + attTrackingStatus: 3, + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + screen: { + density: 2, + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + event: 'product added', + integrations: { + All: true, + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'track', + userId: 'sampath', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.branch.io/v2/event/standard', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + user_data: { + app_version: '1.0.0', + screen_dpi: 2, + developer_identity: 'sampath', + limit_ad_tracking: false, + model: 'AOSP on IA Emulator', + user_agent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + name: 'ADD_TO_CART', + branch_key: '', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'sampath', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'branch', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + device: { + adTrackingEnabled: true, + advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + type: 'ios', + attTrackingStatus: 3, + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'iOS', + version: '14.4.1', + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + event: 'product added', + integrations: { + All: true, + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'track', + userId: 'sampath', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.branch.io/v2/event/standard', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + user_data: { + os: 'iOS', + os_version: '14.4.1', + developer_identity: 'sampath', + idfa: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + idfv: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + limit_ad_tracking: false, + model: 'AOSP on IA Emulator', + user_agent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + name: 'ADD_TO_CART', + branch_key: '', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'sampath', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'branch', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + device: { + adTrackingEnabled: true, + advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + type: 'ios', + attTrackingStatus: 3, + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'iOS', + version: '14.4.1', + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'track', + userId: 'sampath', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Event name is required', + statTags: { + destType: 'BRANCH', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + }, + ], + }, + }, + }, + { + name: 'branch', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: true, + advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + type: 'Android', + attTrackingStatus: 2, + brand: 'testBrand', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'Android', + version: '9', + }, + screen: { + density: 2, + height: 1794, + width: 1080, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + integrations: { + All: true, + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'identify', + userId: 'sampath', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.branch.io/v2/event/custom', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + custom_data: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + content_items: [{}], + user_data: { + os: 'Android', + os_version: '9', + app_version: '1.0.0', + model: 'AOSP on IA Emulator', + brand: 'testBrand', + screen_dpi: 2, + screen_height: 1794, + screen_width: 1080, + developer_identity: 'sampath', + user_agent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + android_id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + aaid: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + limit_ad_tracking: true, + }, + name: 'sampath', + branch_key: '', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'sampath', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'branch', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: true, + advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + type: 'ios', + attTrackingStatus: 2, + brand: 'testBrand', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'iOS', + version: '14.4.1', + }, + screen: { + density: 2, + height: 1794, + width: 1080, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + integrations: { + All: true, + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'identify', + userId: 'sampath', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.branch.io/v2/event/custom', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + custom_data: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + content_items: [{}], + user_data: { + os: 'iOS', + os_version: '14.4.1', + app_version: '1.0.0', + model: 'AOSP on IA Emulator', + brand: 'testBrand', + screen_dpi: 2, + screen_height: 1794, + screen_width: 1080, + developer_identity: 'sampath', + user_agent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + idfa: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + idfv: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + limit_ad_tracking: true, + }, + name: 'sampath', + branch_key: '', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + userId: 'sampath', + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/candu/processor/data.ts b/test/integrations/destinations/candu/processor/data.ts new file mode 100644 index 0000000000..83f0462538 --- /dev/null +++ b/test/integrations/destinations/candu/processor/data.ts @@ -0,0 +1,1366 @@ +export const data = [ + { + name: 'candu', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '23uZJcllEOBx8GbZ31qYzoML8Up', + Name: 'Candu local', + DestinationDefinition: { + ID: '23uYPwdkxT7pUNDAiCVNK3aU0sT', + Name: 'CANDU', + DisplayName: 'Candu', + Config: { + destConfig: { + defaultConfig: ['apiKey'], + }, + excludeKeys: [], + includeKeys: [ + 'apiKey', + 'blackListedEvents', + 'whiteListedEvents', + 'oneTrustCookieCategories', + ], + saveDestinationResponse: true, + secretKeys: ['apiKey'], + supportedMessageTypes: ['identify', 'track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'FXLkLUEhGJyvmY4', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'identify', + sentAt: '2022-01-20T13:39:21.033Z', + userId: 'user123456001', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.2.20', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + path: '/Testing/App_for_LaunchDarkly/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + initial_referrer: '$direct', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '', + }, + locale: 'en-US', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + traits: { + city: 'Pune', + name: 'First User', + email: 'firstUser@testmail.com', + title: 'VP', + gender: 'female', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.2.20', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36', + }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + integrations: { + All: true, + }, + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.candu.ai/api/eventWebhook', + headers: { + Authorization: 'Basic RlhMa0xVRWhHSnl2bVk0', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + traits: { + city: 'Pune', + name: 'First User', + email: 'firstUser@testmail.com', + title: 'VP', + gender: 'female', + }, + type: 'identify', + userId: 'user123456001', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04', + context: { + source: 'RudderStack', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'candu', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '23uZJcllEOBx8GbZ31qYzoML8Up', + Name: 'Candu local', + DestinationDefinition: { + ID: '23uYPwdkxT7pUNDAiCVNK3aU0sT', + Name: 'CANDU', + DisplayName: 'Candu', + Config: { + destConfig: { + defaultConfig: ['apiKey'], + }, + excludeKeys: [], + includeKeys: [ + 'apiKey', + 'blackListedEvents', + 'whiteListedEvents', + 'oneTrustCookieCategories', + ], + saveDestinationResponse: true, + secretKeys: ['apiKey'], + supportedMessageTypes: ['identify', 'track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'FXLkLUEhGJyvmY4', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'track', + event: 'testEventWithoutProp', + sentAt: '2022-01-20T14:32:51.506Z', + userId: 'user123456001', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.2.20', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + path: '/Testing/App_for_LaunchDarkly/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + initial_referrer: '$direct', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '', + }, + locale: 'en-US', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + traits: { + city: 'Pune', + name: 'First User', + email: 'firstUser@testmail.com', + title: 'VP', + gender: 'female', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.2.20', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36', + }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: 'e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e', + properties: {}, + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + integrations: { + All: true, + }, + originalTimestamp: '2022-01-20T14:32:51.506Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.candu.ai/api/eventWebhook', + headers: { + Authorization: 'Basic RlhMa0xVRWhHSnl2bVk0', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + type: 'track', + event: 'testEventWithoutProp', + traits: { + city: 'Pune', + name: 'First User', + email: 'firstUser@testmail.com', + title: 'VP', + gender: 'female', + }, + properties: {}, + userId: 'user123456001', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + messageId: 'e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e', + context: { + source: 'RudderStack', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'candu', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '23uZJcllEOBx8GbZ31qYzoML8Up', + Name: 'Candu local', + DestinationDefinition: { + ID: '23uYPwdkxT7pUNDAiCVNK3aU0sT', + Name: 'CANDU', + DisplayName: 'Candu', + Config: { + destConfig: { + defaultConfig: ['apiKey'], + }, + excludeKeys: [], + includeKeys: [ + 'apiKey', + 'blackListedEvents', + 'whiteListedEvents', + 'oneTrustCookieCategories', + ], + saveDestinationResponse: true, + secretKeys: ['apiKey'], + supportedMessageTypes: ['identify', 'track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'FXLkLUEhGJyvmY4', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'track', + sentAt: '2022-01-20T14:42:59.775Z', + userId: '', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.2.20', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + path: '/Testing/App_for_LaunchDarkly/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + initial_referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '127.0.0.1:7307', + }, + locale: 'en-US', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + traits: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.2.20', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36', + }, + rudderId: '1877191c-3537-46dc-a35a-e2a4d13ed3f7', + messageId: 'fea245ef-6150-42c4-84e0-51fa68e71a88', + properties: {}, + anonymousId: 'd18df757-34aa-4f71-91a8-7f9ef2940963', + integrations: { + All: true, + }, + originalTimestamp: '2022-01-20T14:42:25.343Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Missing required value from "event"', + statTags: { + destType: 'CANDU', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + }, + ], + }, + }, + }, + { + name: 'candu', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '23uZJcllEOBx8GbZ31qYzoML8Up', + Name: 'Candu local', + DestinationDefinition: { + ID: '23uYPwdkxT7pUNDAiCVNK3aU0sT', + Name: 'CANDU', + DisplayName: 'Candu', + Config: { + destConfig: { + defaultConfig: ['apiKey'], + }, + excludeKeys: [], + includeKeys: [ + 'apiKey', + 'blackListedEvents', + 'whiteListedEvents', + 'oneTrustCookieCategories', + ], + saveDestinationResponse: true, + secretKeys: ['apiKey'], + supportedMessageTypes: ['identify', 'track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'FXLkLUEhGJyvmY4', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'page', + sentAt: '2022-01-20T15:30:57.470Z', + userId: 'testUser1234', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.2.20', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + path: '/Testing/App_for_LaunchDarkly/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + initial_referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '127.0.0.1:7307', + }, + locale: 'en-US', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 632, + }, + traits: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.2.20', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36', + }, + rudderId: 'aa193f3b-6d42-466f-a781-6a666cfe17c3', + messageId: 'bf869c14-5f96-4cbc-94b2-3de9252c216b', + properties: { + url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + path: '/Testing/App_for_LaunchDarkly/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + initial_referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '127.0.0.1:7307', + }, + anonymousId: 'd18df757-34aa-4f71-91a8-7f9ef2940963', + integrations: { + All: true, + }, + originalTimestamp: '2022-01-20T15:30:57.470Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: '[CANDU]:: Message type page not supported.', + statTags: { + destType: 'CANDU', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + }, + ], + }, + }, + }, + { + name: 'candu', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '23uZJcllEOBx8GbZ31qYzoML8Up', + Name: 'Candu local', + DestinationDefinition: { + ID: '23uYPwdkxT7pUNDAiCVNK3aU0sT', + Name: 'CANDU', + DisplayName: 'Candu', + Config: { + destConfig: { + defaultConfig: ['apiKey'], + }, + excludeKeys: [], + includeKeys: [ + 'apiKey', + 'blackListedEvents', + 'whiteListedEvents', + 'oneTrustCookieCategories', + ], + saveDestinationResponse: true, + secretKeys: ['apiKey'], + supportedMessageTypes: ['identify', 'track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: ' ', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'track', + event: 'testEventWithoutProp', + sentAt: '2022-01-20T14:32:51.506Z', + userId: 'user123456001', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.2.20', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + path: '/Testing/App_for_LaunchDarkly/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + initial_referrer: '$direct', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '', + }, + locale: 'en-US', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + traits: { + city: 'Pune', + name: 'First User', + email: 'firstUser@testmail.com', + title: 'VP', + gender: 'female', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.2.20', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36', + }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: 'e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e', + properties: {}, + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + integrations: { + All: true, + }, + originalTimestamp: '2022-01-20T14:32:51.506Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: '[CANDU]:: apiKey cannot be empty.', + statTags: { + destType: 'CANDU', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + }, + ], + }, + }, + }, + { + name: 'candu', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '23uZJcllEOBx8GbZ31qYzoML8Up', + Name: 'Candu local', + DestinationDefinition: { + ID: '23uYPwdkxT7pUNDAiCVNK3aU0sT', + Name: 'CANDU', + DisplayName: 'Candu', + Config: { + destConfig: { + defaultConfig: ['apiKey'], + }, + excludeKeys: [], + includeKeys: [ + 'apiKey', + 'blackListedEvents', + 'whiteListedEvents', + 'oneTrustCookieCategories', + ], + saveDestinationResponse: true, + secretKeys: ['apiKey'], + supportedMessageTypes: ['identify', 'track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'FXLkLUEhGJyvmY4', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + event: 'testEventWithoutProp', + sentAt: '2022-01-20T14:32:51.506Z', + userId: 'user123456001', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.2.20', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + path: '/Testing/App_for_LaunchDarkly/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + initial_referrer: '$direct', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '', + }, + locale: 'en-US', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + traits: { + city: 'Pune', + name: 'First User', + email: 'firstUser@testmail.com', + title: 'VP', + gender: 'female', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.2.20', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36', + }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: 'e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e', + properties: {}, + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + integrations: { + All: true, + }, + originalTimestamp: '2022-01-20T14:32:51.506Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: '[CANDU]:: Message Type is not present. Aborting message.', + statTags: { + destType: 'CANDU', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + }, + ], + }, + }, + }, + { + name: 'candu', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '23uZJcllEOBx8GbZ31qYzoML8Up', + Name: 'Candu local', + DestinationDefinition: { + ID: '23uYPwdkxT7pUNDAiCVNK3aU0sT', + Name: 'CANDU', + DisplayName: 'Candu', + Config: { + destConfig: { + defaultConfig: ['apiKey'], + }, + excludeKeys: [], + includeKeys: [ + 'apiKey', + 'blackListedEvents', + 'whiteListedEvents', + 'oneTrustCookieCategories', + ], + saveDestinationResponse: true, + secretKeys: ['apiKey'], + supportedMessageTypes: ['identify', 'track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'FXLkLUEhGJyvmY4', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'identify', + sentAt: '2022-01-20T13:39:21.033Z', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.2.20', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + path: '/Testing/App_for_LaunchDarkly/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + initial_referrer: '$direct', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '', + }, + locale: 'en-US', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + traits: { + city: 'Pune', + name: 'First User', + email: 'firstUser@testmail.com', + title: 'VP', + gender: 'female', + userId: 2399229, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.2.20', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36', + }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + integrations: { + All: true, + }, + originalTimestamp: '2022-01-20T13:39:21.032Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: "", + method: 'POST', + endpoint: 'https://api.candu.ai/api/eventWebhook', + headers: { + Authorization: 'Basic RlhMa0xVRWhHSnl2bVk0', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + traits: { + city: 'Pune', + name: 'First User', + email: 'firstUser@testmail.com', + title: 'VP', + gender: 'female', + userId: 2399229, + }, + userId: '2399229', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04', + type: 'identify', + context: { + source: 'RudderStack', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'candu', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '23uZJcllEOBx8GbZ31qYzoML8Up', + Name: 'Candu local', + DestinationDefinition: { + ID: '23uYPwdkxT7pUNDAiCVNK3aU0sT', + Name: 'CANDU', + DisplayName: 'Candu', + Config: { + destConfig: { + defaultConfig: ['apiKey'], + }, + excludeKeys: [], + includeKeys: [ + 'apiKey', + 'blackListedEvents', + 'whiteListedEvents', + 'oneTrustCookieCategories', + ], + saveDestinationResponse: true, + secretKeys: ['apiKey'], + supportedMessageTypes: ['identify', 'track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'FXLkLUEhGJyvmY4', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'track', + event: 'testEventWithoutProp', + sentAt: '2022-01-20T14:32:51.506Z', + userId: 'user123456001', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.2.20', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + path: '/Testing/App_for_LaunchDarkly/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + initial_referrer: '$direct', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '', + }, + locale: 'en-US', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + traits: { + city: 'Pune', + name: 'First User', + email: 'firstUser@testmail.com', + title: 'VP', + gender: 'female', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.2.20', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36', + }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: 'e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e', + properties: ['1234', '5678', '91011'], + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + integrations: { + All: true, + }, + originalTimestamp: '2022-01-20T14:32:51.506Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: "", + method: 'POST', + endpoint: 'https://api.candu.ai/api/eventWebhook', + headers: { + Authorization: 'Basic RlhMa0xVRWhHSnl2bVk0', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event: 'testEventWithoutProp', + traits: { + city: 'Pune', + name: 'First User', + email: 'firstUser@testmail.com', + title: 'VP', + gender: 'female', + }, + properties: ['1234', '5678', '91011'], + userId: 'user123456001', + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + messageId: 'e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e', + type: 'track', + context: { + source: 'RudderStack', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'candu', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + destination: { + ID: '23uZJcllEOBx8GbZ31qYzoML8Up', + Name: 'Candu local', + DestinationDefinition: { + ID: '23uYPwdkxT7pUNDAiCVNK3aU0sT', + Name: 'CANDU', + DisplayName: 'Candu', + Config: { + destConfig: { + defaultConfig: ['apiKey'], + }, + excludeKeys: [], + includeKeys: [ + 'apiKey', + 'blackListedEvents', + 'whiteListedEvents', + 'oneTrustCookieCategories', + ], + saveDestinationResponse: true, + secretKeys: ['apiKey'], + supportedMessageTypes: ['identify', 'track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'FXLkLUEhGJyvmY4', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + message: { + type: 'track', + event: 'testEventWithoutProp', + sentAt: '2022-01-20T14:32:51.506Z', + userId: '', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.2.20', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + path: '/Testing/App_for_LaunchDarkly/ourSdk.html', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html', + referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/', + initial_referrer: '$direct', + referring_domain: '127.0.0.1:7307', + initial_referring_domain: '', + }, + locale: 'en-US', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 536, + innerHeight: 689, + }, + traits: { + city: 'Pune', + name: 'First User', + email: 'firstUser@testmail.com', + title: 'VP', + gender: 'female', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.2.20', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36', + }, + rudderId: '553b5522-c575-40a7-8072-9741c5f9a647', + messageId: 'e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e', + properties: [], + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + integrations: { + All: true, + }, + originalTimestamp: '2022-01-20T14:32:51.506Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: "", + method: 'POST', + endpoint: 'https://api.candu.ai/api/eventWebhook', + headers: { + Authorization: 'Basic RlhMa0xVRWhHSnl2bVk0', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + event: 'testEventWithoutProp', + traits: { + city: 'Pune', + name: 'First User', + email: 'firstUser@testmail.com', + title: 'VP', + gender: 'female', + }, + properties: [], + anonymousId: 'bf412108-0357-4330-b119-7305e767823c', + messageId: 'e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e', + type: 'track', + context: { + source: 'RudderStack', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/customerio/processor/data.ts b/test/integrations/destinations/customerio/processor/data.ts new file mode 100644 index 0000000000..4fc83099ee --- /dev/null +++ b/test/integrations/destinations/customerio/processor/data.ts @@ -0,0 +1,8483 @@ +export const data = [ + { + "name": "customerio", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "type": "identify", + "userId": "cio_1234", + "integrations": { + "All": true + }, + "traits": { + "email": "updated_email@example.com", + "id": "updated-id-value" + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "email": "updated_email@example.com", + "id": "updated-id-value" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/cio_1234", + "userId": "cio_1234", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "PUT", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "123456", + "email": "test@rudderstack.com", + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 712136, + "state": "WB", + "street": "" + }, + "ip": "0.0.0.0", + "age": 26 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "user_properties": { + "prop1": "val1", + "prop2": "val2" + }, + "type": "identify", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "userId": "123456", + "integrations": { + "All": true + }, + "traits": { + "anonymousId": "anon-id", + "email": "test@gmail.com", + "dot.name": "Arnab Pal", + "address": { + "city": "NY", + "country": "USA", + "postalCode": 712136, + "state": "CA", + "street": "" + } + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "apiKey not found in Configs", + "statTags": { + "destType": "CUSTOMERIO", + "errorCategory": "dataValidation", + "errorType": "configuration", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "123456", + "email": "test@rudderstack.com", + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 712136, + "state": "WB", + "street": "" + }, + "ip": "0.0.0.0", + "age": 26 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "user_properties": { + "prop1": "val1", + "prop2": "val2" + }, + "type": "identify", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "userId": "123456", + "integrations": { + "All": true + }, + "traits": { + "anonymousId": "anon-id", + "email": "test@gmail.com", + "dot.name": "Arnab Pal", + "address": { + "city": "NY", + "country": "USA", + "postalCode": 712136, + "state": "CA", + "street": "" + } + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "_timestamp": 1571043797, + "anonymous_id": "123456", + "city": "NY", + "state": "CA", + "street": "", + "prop1": "val1", + "prop2": "val2", + "country": "USA", + "postalCode": 712136, + "email": "test@gmail.com", + "dot.name": "Arnab Pal" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/123456", + "userId": "123456", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "PUT", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "123456", + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 712136, + "state": "WB", + "street": "" + }, + "ip": "0.0.0.0", + "age": 26 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "user_properties": { + "prop1": "val1", + "prop2": "val2" + }, + "type": "identify", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "integrations": { + "All": true + }, + "traits": { + "anonymousId": "anon-id", + "dot.name": "Arnab Pal", + "address": { + "city": "NY", + "country": "USA", + "postalCode": 712136, + "state": "CA", + "street": "" + } + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "userId or email is not present", + "statTags": { + "destType": "CUSTOMERIO", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "123456", + "email": "test@rudderstack.com", + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 712136, + "state": "WB", + "street": "" + }, + "ip": "0.0.0.0", + "age": 26 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "user_properties": { + "prop1": "val1", + "prop2": "val2" + }, + "type": "identify", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "integrations": { + "All": true + }, + "traits": { + "anonymousId": "anon-id", + "email": "test@gmail.com", + "dot.name": "Arnab Pal", + "address": { + "city": "NY", + "country": "USA", + "postalCode": 712136, + "state": "CA", + "street": "" + } + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "_timestamp": 1571043797, + "anonymous_id": "123456", + "city": "NY", + "country": "USA", + "dot.name": "Arnab Pal", + "email": "test@gmail.com", + "postalCode": 712136, + "prop1": "val1", + "prop2": "val2", + "state": "CA", + "street": "" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/test@gmail.com", + "userId": "123456", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "PUT", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "page", + "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", + "originalTimestamp": "2019-10-14T11:15:18.299Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "12345", + "properties": { + "path": "/test", + "referrer": "Rudder", + "search": "abc", + "title": "Test Page", + "url": "www.rudderlabs.com" + }, + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "page", + "data": { + "url": "www.rudderlabs.com", + "path": "/test", + "search": "abc", + "referrer": "Rudder", + "title": "Test Page" + }, + "timestamp": 1571051718, + "name": "ApplicationLoaded" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/events", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 6", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "12345", + "event": "test track event", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "event", + "data": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "user_time_spent": 50000 + }, + "timestamp": 1571051718, + "name": "test track event" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/events", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 7", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "", + "event": "test track event", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "event", + "data": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "user_time_spent": 50000 + }, + "timestamp": 1571051718, + "name": "test track event" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/test@rudderstack.com/events", + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 8", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "", + "event": "test track event", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "event", + "anonymous_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "data": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "user_time_spent": 50000 + }, + "timestamp": 1571051718, + "name": "test track event" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/events", + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 9", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "7e32188a4dab669f", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "RudderAndroidClient", + "namespace": "com.torpedolabs.wynn.wscci.dev", + "version": "1.0" + }, + "device": { + "id": "7e32188a4dab669f", + "manufacturer": "Google", + "model": "Android SDK built for x86", + "name": "generic_x86", + "type": "android", + "token": "abcxyz" + }, + "library": { + "name": "com.rudderlabs.android.sdk.core", + "version": "0.1.4" + }, + "locale": "en-US", + "network": { + "carrier": "Android", + "bluetooth": false, + "cellular": true, + "wifi": true + }, + "os": { + "name": "Android", + "version": "9" + }, + "screen": { + "density": 420, + "height": 1794, + "width": 1080 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "7e32188a4dab669f" + }, + "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" + }, + "event": "Application Installed", + "integrations": { + "All": true + }, + "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", + "properties": { + "review_id": "some_review_id", + "product_id": "some_product_id_a", + "rating": 2, + "review_body": "Some Review Body" + }, + "userId": "12345", + "originalTimestamp": "2020-01-09T10:01:53.558Z", + "type": "track", + "sentAt": "2020-01-09T10:02:03.257Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "device": { + "review_body": "Some Review Body", + "rating": 2, + "review_id": "some_review_id", + "last_used": 1578564113, + "platform": "android", + "id": "abcxyz", + "product_id": "some_product_id_a" + } + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/devices", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "PUT", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 10", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "7e32188a4dab669f", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "RudderAndroidClient", + "namespace": "com.torpedolabs.wynn.wscci.dev", + "version": "1.0" + }, + "device": { + "id": "7e32188a4dab669f", + "manufacturer": "Google", + "model": "Android SDK built for x86", + "name": "generic_x86", + "type": "android", + "token": "abcxyz" + }, + "library": { + "name": "com.rudderlabs.android.sdk.core", + "version": "0.1.4" + }, + "locale": "en-US", + "network": { + "carrier": "Android", + "bluetooth": false, + "cellular": true, + "wifi": true + }, + "os": { + "name": "Android", + "version": "9" + }, + "screen": { + "density": 420, + "height": 1794, + "width": 1080 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "7e32188a4dab669f" + }, + "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" + }, + "event": "Application Uninstalled", + "integrations": { + "All": true + }, + "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", + "properties": { + "review_id": "some_review_id", + "product_id": "some_product_id_a", + "rating": 2, + "review_body": "Some Review Body" + }, + "userId": "12345", + "originalTimestamp": "2020-01-09T10:01:53.558Z", + "type": "track", + "sentAt": "2020-01-09T10:02:03.257Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": {}, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/devices/abcxyz", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "DELETE", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 11", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "somel" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "12345", + "event": "Application Uninstalled", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": {}, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/devices/somel", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "DELETE", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 12", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "somel" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Uninstalled", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": {}, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/test@rudderstack.com/devices/somel", + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "DELETE", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 13", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "somel" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Uninstalled", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "userId/email or device_token not present", + "statTags": { + "destType": "CUSTOMERIO", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 14", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "somel" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Installed", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "device": { + "id": "somel", + "last_used": 1571051718, + "platform": "mobile", + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "user_time_spent": 50000 + } + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/test@rudderstack.com/devices", + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "PUT", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 15", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "somel" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Installed", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "anonymous_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "data": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "user_time_spent": 50000 + }, + "name": "Application Installed", + "timestamp": 1571051718, + "type": "event" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/events", + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 16", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "somel" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Installed", + "userId": "12345", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "device": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "last_used": 1571051718, + "user_time_spent": 50000, + "platform": "mobile", + "id": "somel" + } + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/devices", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "PUT", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 17", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Installed", + "userId": "12345", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "event", + "data": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "user_time_spent": 50000 + }, + "timestamp": 1571051718, + "name": "Application Installed" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/events", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 18", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Opened", + "userId": "12345", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "event", + "data": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "user_time_spent": 50000 + }, + "timestamp": 1571051718, + "name": "Application Opened" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/events", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 19", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "sample_device_token" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Opened", + "userId": "12345", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "device": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "last_used": 1571051718, + "user_time_spent": 50000, + "platform": "mobile", + "id": "sample_device_token" + } + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/devices", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "PUT", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 20", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "sample_device_token" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Uninstalled", + "userId": "12345", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": {}, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/devices/sample_device_token", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "DELETE", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 21", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "123456", + "email": "test@rudderstack.com", + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 712136, + "state": "WB", + "street": "" + }, + "ip": "0.0.0.0", + "age": 26 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "user_properties": { + "prop1": "val1", + "prop2": "val2" + }, + "type": "identify", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "123456", + "userId": "123456", + "integrations": { + "All": true + }, + "traits": { + "anonymousId": "anon-id", + "email": "test@gmail.com", + "address": { + "city": "NY", + "country": "USA", + "postalCode": 712136, + "state": "CA", + "street": "" + } + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "_timestamp": 1571043797, + "anonymous_id": "123456", + "city": "NY", + "state": "CA", + "street": "", + "prop1": "val1", + "prop2": "val2", + "country": "USA", + "postalCode": 712136, + "email": "test@gmail.com" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/123456", + "userId": "123456", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "PUT", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 22", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "page", + "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", + "originalTimestamp": "2019-10-14T11:15:18.299Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "12345", + "properties": { + "path": "/test", + "referrer": "Rudder", + "search": "abc", + "title": "Test Page", + "url": "www.rudderlabs.com" + }, + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "page", + "data": { + "url": "www.rudderlabs.com", + "path": "/test", + "search": "abc", + "referrer": "Rudder", + "title": "Test Page" + }, + "timestamp": 1571051718, + "name": "ApplicationLoaded" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/events", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 23", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "12345", + "event": "test track event", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "event", + "data": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "user_time_spent": 50000 + }, + "timestamp": 1571051718, + "name": "test track event" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/events", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 24", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "", + "event": "test track event", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "event", + "data": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "user_time_spent": 50000 + }, + "timestamp": 1571051718, + "name": "test track event" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/test@rudderstack.com/events", + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 25", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "", + "event": "test track event", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "event", + "anonymous_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "data": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "user_time_spent": 50000 + }, + "timestamp": 1571051718, + "name": "test track event" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/events", + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 26", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "7e32188a4dab669f", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "RudderAndroidClient", + "namespace": "com.torpedolabs.wynn.wscci.dev", + "version": "1.0" + }, + "device": { + "id": "7e32188a4dab669f", + "manufacturer": "Google", + "model": "Android SDK built for x86", + "name": "generic_x86", + "type": "android", + "token": "abcxyz" + }, + "library": { + "name": "com.rudderlabs.android.sdk.core", + "version": "0.1.4" + }, + "locale": "en-US", + "network": { + "carrier": "Android", + "bluetooth": false, + "cellular": true, + "wifi": true + }, + "os": { + "name": "Android", + "version": "9" + }, + "screen": { + "density": 420, + "height": 1794, + "width": 1080 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "7e32188a4dab669f" + }, + "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" + }, + "event": "Application Installed", + "integrations": { + "All": true + }, + "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", + "properties": { + "review_id": "some_review_id", + "product_id": "some_product_id_a", + "rating": 2, + "review_body": "Some Review Body" + }, + "userId": "12345", + "originalTimestamp": "2020-01-09T10:01:53.558Z", + "type": "track", + "sentAt": "2020-01-09T10:02:03.257Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "device": { + "review_body": "Some Review Body", + "rating": 2, + "review_id": "some_review_id", + "last_used": 1578564113, + "platform": "android", + "id": "abcxyz", + "product_id": "some_product_id_a" + } + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/devices", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "PUT", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 27", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "7e32188a4dab669f", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "RudderAndroidClient", + "namespace": "com.torpedolabs.wynn.wscci.dev", + "version": "1.0" + }, + "device": { + "id": "7e32188a4dab669f", + "manufacturer": "Google", + "model": "Android SDK built for x86", + "name": "generic_x86", + "type": "android", + "token": "abcxyz" + }, + "library": { + "name": "com.rudderlabs.android.sdk.core", + "version": "0.1.4" + }, + "locale": "en-US", + "network": { + "carrier": "Android", + "bluetooth": false, + "cellular": true, + "wifi": true + }, + "os": { + "name": "Android", + "version": "9" + }, + "screen": { + "density": 420, + "height": 1794, + "width": 1080 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "7e32188a4dab669f" + }, + "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" + }, + "event": "Application Uninstalled", + "integrations": { + "All": true + }, + "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", + "properties": { + "review_id": "some_review_id", + "product_id": "some_product_id_a", + "rating": 2, + "review_body": "Some Review Body" + }, + "userId": "12345", + "originalTimestamp": "2020-01-09T10:01:53.558Z", + "type": "track", + "sentAt": "2020-01-09T10:02:03.257Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": {}, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/devices/abcxyz", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "DELETE", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 28", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "somel" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "12345", + "event": "Application Uninstalled", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": {}, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/devices/somel", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "DELETE", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 29", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "somel" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Uninstalled", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "error": "userId/email or device_token not present", + "statTags": { + "destType": "CUSTOMERIO", + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "feature": "processor", + "implementation": "native", + "module": "destination" + }, + "statusCode": 400 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 30", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "somel" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Installed", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "device": { + "id": "somel", + "last_used": 1571051718, + "platform": "mobile", + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + } + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/test@rudderstack.com/devices", + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "PUT", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 31", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "somel" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Installed", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "anonymous_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "data": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "name": "Application Installed", + "timestamp": 1571051718, + "type": "event" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/events", + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 32", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "somel" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Installed", + "userId": "12345", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "device": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "last_used": 1571051718, + "user_time_spent": 50000, + "platform": "mobile", + "id": "somel" + } + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/devices", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "PUT", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 33", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Installed", + "userId": "12345", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "event", + "data": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "user_time_spent": 50000 + }, + "timestamp": 1571051718, + "name": "Application Installed" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/events", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 34", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Opened", + "userId": "12345", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "event", + "data": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "user_time_spent": 50000 + }, + "timestamp": 1571051718, + "name": "Application Opened" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/events", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 35", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "sample_device_token" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Opened", + "userId": "12345", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "device": { + "user_actual_id": 12345, + "user_actual_role": "system_admin", + "last_used": 1571051718, + "user_time_spent": 50000, + "platform": "mobile", + "id": "sample_device_token" + } + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/devices", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "PUT", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 36", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "mobile", + "context": { + "device": { + "name": "test android", + "id": "sample_device_id", + "model": "some_model_device", + "type": "mobile", + "token": "sample_device_token" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "Application Uninstalled", + "userId": "12345", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": {}, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/devices/sample_device_token", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "DELETE", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 37", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "https://www.stoodi.com.br/exershgcios/upe/2019/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-seculo-xvi/", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v1/events", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50 + }, + "anonymous_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "name": "https://www.stoodi.com.br/exershgcios/upe/2019/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-s", + "type": "event", + "timestamp": 1571051718 + }, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 38", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "https://www.stoodi.com.br/exershgcios/upe/2019/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-seculo-xvi/", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v1/customers/test@rudderstack.com/events", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50 + }, + "name": "https://www.stoodi.com.br/exershgcios/upe/2019/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-seculo-xvi/", + "type": "event", + "timestamp": 1571051718 + }, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 39", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "screen", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "https://www.stoodi.com.br/exercicios/upe/2016/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-seculo-xvi/", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v1/events", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "anonymous_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "name": "Viewed https://www.stoodi.com.br/exercicios/upe/2016/questao/gregorio-de-matos-poeta-baiano-q Screen", + "type": "event", + "timestamp": 1571051718 + }, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 40", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "screen", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-10-14T11:15:18.300Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "event": "https://www.stoodi.com.br/exercicios/upe/2016/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-seculo-xvi/", + "properties": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v1/customers/test@rudderstack.com/events", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "user_actual_role": "system_admin", + "user_actual_id": 12345, + "user_time_spent": 50000 + }, + "name": "Viewed https://www.stoodi.com.br/exercicios/upe/2016/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-seculo-xvi/ Screen", + "type": "event", + "timestamp": 1571051718 + }, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 41", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "dummy-100-anon", + "channel": "mobile", + "context": { + "app": { + "build": "173", + "name": "MyWallSt Debug", + "namespace": "com.rubicoin.Invest", + "version": "6.2" + }, + "device": { + "attTrackingStatus": 0, + "id": "6fdb629d-4f18-4f3e-943a-3f6f482b331e", + "manufacturer": "Apple", + "model": "iPhone", + "name": "Ales' iPhone", + "type": "iOS" + }, + "library": { + "name": "rudder-ios-library", + "version": "1.0.19" + }, + "locale": "en-DE", + "network": { + "bluetooth": false, + "carrier": "unavailable", + "cellular": false, + "wifi": true + }, + "os": { + "name": "iOS", + "version": "14.8" + }, + "screen": { + "density": 3, + "height": 375, + "width": 812 + }, + "timezone": "Europe/Prague", + "traits": { + "anonymousId": "6fdb629d-4f18-4f3e-943a-3f6f482b331e", + "userId": "6a540d50-c4dc-4694-beca-d16de113a1c4-1618384106.8700438" + } + }, + "event": "Home: Viewed", + "integrations": { + "All": true + }, + "messageId": "1632314412-e724167f-13bd-455b-943d-dd765a7810fe", + "originalTimestamp": "2021-09-22T12:40:12.220Z", + "properties": {}, + "rudderId": "782cdb50-e2b9-45fc-9d22-07fe792dcfba", + "sentAt": "2021-09-22T12:40:14.453Z", + "type": "track", + "userId": "dummy-user-id-100" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "abc", + "apiKey": "xyz" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v1/customers/dummy-user-id-100/events", + "headers": { + "Authorization": "Basic YWJjOnh5eg==" + }, + "params": {}, + "body": { + "JSON": { + "data": {}, + "name": "Home: Viewed", + "type": "event", + "timestamp": 1632314412 + }, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "dummy-user-id-100", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 42", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "anonymousId": "123456", + "email": "test@rudderstack.com", + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 712136, + "state": "WB", + "street": "" + }, + "ip": "0.0.0.0", + "age": 26 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "identify", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "dummy-100-anon", + "userId": "dummy-user-id-100", + "integrations": { + "All": true + }, + "traits": { + "email": "test@gmail.com", + "address": { + "city": "NY", + "country": "USA", + "postalCode": 712136, + "state": "CA", + "street": "" + } + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "datacenter": "EU", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PUT", + "endpoint": "https://track-eu.customer.io/api/v1/customers/dummy-user-id-100", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "params": {}, + "body": { + "JSON": { + "city": "NY", + "country": "USA", + "postalCode": 712136, + "state": "CA", + "street": "", + "email": "test@gmail.com", + "_timestamp": 1571043797, + "anonymous_id": "dummy-100-anon" + }, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "dummy-user-id-100", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 43", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "sources", + "context": { + "externalId": [ + { + "id": "xaviercharles@hotmail.com", + "identifierType": "email", + "type": "CUSTOMERIO-customers" + } + ], + "mappedToDestination": "true", + "sources": { + "batch_id": "3d6f7aa8-9b70-4759-970d-212e6714ad22", + "job_id": "1zDgnw7ZmHWR7gtY4niHYysL3zS/Syncher", + "job_run_id": "c5shebbh9jqg10k8d21g", + "task_id": "tt_10_rows", + "task_run_id": "c5shebbh9jqg10k8d220", + "version": "release.v1.6.8" + } + }, + "messageId": "d82a45e1-5a27-4c1d-af89-83bdbc6139d0", + "originalTimestamp": "2021-10-27T09:09:56.673Z", + "receivedAt": "2021-10-27T09:09:56.187Z", + "recordId": "3", + "request_ip": "10.1.85.177", + "rudderId": "5b19a81b-df60-4ccd-abf0-fcfe2b7db054", + "sentAt": "2021-10-27T09:09:56.673Z", + "timestamp": "2021-10-27T09:09:56.186Z", + "traits": { + "last_name": "xavier", + "first_name": "charles" + }, + "type": "identify", + "userId": "xaviercharles@hotmail.com" + }, + "destination": { + "ID": "1zgXcyv272oZA8HWqe7zInhJjPL", + "Name": "ere", + "DestinationDefinition": { + "ID": "1iVQr671C0E8MVpzvCEegsLM2J5", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU" + ], + "web": [ + "useNativeSDK" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative" + ], + "supportsVisualMapper": true, + "transformAt": "processor" + }, + "ResponseRules": null + }, + "Config": { + "apiKey": "a292d85ac36de15fc219", + "datacenter": "US", + "siteID": "eead090ab9e2e35004dc" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "libraries": [], + "request": { + "query": {} + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PUT", + "endpoint": "https://track.customer.io/api/v1/customers/xaviercharles@hotmail.com", + "headers": { + "Authorization": "Basic ZWVhZDA5MGFiOWUyZTM1MDA0ZGM6YTI5MmQ4NWFjMzZkZTE1ZmMyMTk=" + }, + "params": {}, + "body": { + "JSON": { + "last_name": "xavier", + "first_name": "charles", + "email": "xaviercharles@hotmail.com", + "_timestamp": 1635325796 + }, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "xaviercharles@hotmail.com", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 44", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "sources", + "context": { + "externalId": [ + { + "id": "xaviercharles", + "identifierType": "id", + "type": "CUSTOMERIO-customers" + } + ], + "mappedToDestination": "true", + "sources": { + "batch_id": "3d6f7aa8-9b70-4759-970d-212e6714ad22", + "job_id": "1zDgnw7ZmHWR7gtY4niHYysL3zS/Syncher", + "job_run_id": "c5shebbh9jqg10k8d21g", + "task_id": "tt_10_rows", + "task_run_id": "c5shebbh9jqg10k8d220", + "version": "release.v1.6.8" + } + }, + "messageId": "d82a45e1-5a27-4c1d-af89-83bdbc6139d0", + "originalTimestamp": "2021-10-27T09:09:56.673Z", + "receivedAt": "2021-10-27T09:09:56.187Z", + "recordId": "3", + "request_ip": "10.1.85.177", + "rudderId": "5b19a81b-df60-4ccd-abf0-fcfe2b7db054", + "sentAt": "2021-10-27T09:09:56.673Z", + "traits": { + "last_name": "xavier", + "first_name": "charles" + }, + "type": "identify", + "userId": "xaviercharles" + }, + "destination": { + "ID": "1zgXcyv272oZA8HWqe7zInhJjPL", + "Name": "ere", + "DestinationDefinition": { + "ID": "1iVQr671C0E8MVpzvCEegsLM2J5", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU" + ], + "web": [ + "useNativeSDK" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative" + ], + "supportsVisualMapper": true, + "transformAt": "processor" + }, + "ResponseRules": null + }, + "Config": { + "apiKey": "a292d85ac36de15fc219", + "datacenter": "US", + "siteID": "eead090ab9e2e35004dc" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "libraries": [], + "request": { + "query": {} + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PUT", + "endpoint": "https://track.customer.io/api/v1/customers/xaviercharles", + "headers": { + "Authorization": "Basic ZWVhZDA5MGFiOWUyZTM1MDA0ZGM6YTI5MmQ4NWFjMzZkZTE1ZmMyMTk=" + }, + "params": {}, + "body": { + "JSON": { + "last_name": "xavier", + "first_name": "charles", + "id": "xaviercharles", + "_timestamp": 1635325796 + }, + "XML": {}, + "JSON_ARRAY": {}, + "FORM": {} + }, + "files": {}, + "userId": "xaviercharles", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 45", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "zx_userid_missing", + "namespace": "org.reactjs.native.example.zx-userid-missing", + "version": "1.0" + }, + "device": { + "attTrackingStatus": 0, + "id": "5d727a3e-a72b-4d00-8078-669c1494791d", + "manufacturer": "Apple", + "model": "iPhone", + "name": "iPhone 13", + "token": "deviceToken", + "type": "iOS" + }, + "library": { + "name": "rudder-ios-library", + "version": "1.3.1" + }, + "locale": "en-US", + "network": { + "bluetooth": false, + "carrier": "unavailable", + "cellular": false, + "wifi": true + }, + "os": { + "name": "iOS", + "version": "15.2" + }, + "screen": { + "density": 3, + "height": 390, + "width": 844 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "email": "sofia@gmail.com", + "login_status": "Authenticated", + "name": "Sofia", + "phone_verified": 1, + "selected_city": "", + "selected_lat": 0, + "selected_long": 0, + "selected_neighborhood": "", + "selected_number": "", + "selected_postal_code": "", + "selected_state": "", + "selected_street": "", + "signed_up_for_newsletters": 0, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + } + }, + "event": "Application Opened", + "integrations": { + "All": true + }, + "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", + "timestamp": "2022-01-10T10:00:26.513Z", + "properties": { + "from_background": false + }, + "receivedAt": "2022-01-10T20:35:30.556+05:30", + "request_ip": "[::1]", + "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", + "sentAt": "2022-01-10T10:00:26.982Z", + "type": "track", + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "DESAU SAI", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "DESU SAI" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PUT", + "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", + "headers": { + "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" + }, + "params": {}, + "body": { + "JSON": { + "device": { + "from_background": false, + "id": "deviceToken", + "platform": "ios", + "last_used": 1641808826 + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 46", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "zx_userid_missing", + "namespace": "org.reactjs.native.example.zx-userid-missing", + "version": "1.0" + }, + "device": { + "attTrackingStatus": 0, + "id": "5d727a3e-a72b-4d00-8078-669c1494791d", + "manufacturer": "Apple", + "model": "iPhone", + "name": "iPhone 13", + "type": "iOS" + }, + "library": { + "name": "rudder-ios-library", + "version": "1.3.1" + }, + "locale": "en-US", + "network": { + "bluetooth": false, + "carrier": "unavailable", + "cellular": false, + "wifi": true + }, + "os": { + "name": "iOS", + "version": "15.2" + }, + "screen": { + "density": 3, + "height": 390, + "width": 844 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "email": "sofia@gmail.com", + "login_status": "Authenticated", + "name": "Sofia", + "phone_verified": 1, + "selected_city": "", + "selected_lat": 0, + "selected_long": 0, + "selected_neighborhood": "", + "selected_number": "", + "selected_postal_code": "", + "selected_state": "", + "selected_street": "", + "signed_up_for_newsletters": 0, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + } + }, + "event": "Application Opened", + "integrations": { + "All": true + }, + "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", + "originalTimestamp": "2022-01-10T10:00:26.513Z", + "properties": { + "from_background": false + }, + "receivedAt": "2022-01-10T20:39:04.424+05:30", + "request_ip": "[::1]", + "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", + "sentAt": "2022-01-10T10:00:26.982Z", + "timestamp": "2022-01-10T20:39:03.955+05:30", + "type": "track", + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "DESAU SAI", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "DESU SAI" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/events", + "headers": { + "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "from_background": false + }, + "name": "Application Opened", + "type": "event", + "timestamp": 1641827343 + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 47", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "zx_userid_missing", + "namespace": "org.reactjs.native.example.zx-userid-missing", + "version": "1.0" + }, + "device": { + "attTrackingStatus": 0, + "id": "5d727a3e-a72b-4d00-8078-669c1494791d", + "manufacturer": "Apple", + "model": "iPhone", + "name": "iPhone 13", + "token": "deviceToken", + "type": "iOS" + }, + "library": { + "name": "rudder-ios-library", + "version": "1.3.1" + }, + "locale": "en-US", + "network": { + "bluetooth": false, + "carrier": "unavailable", + "cellular": false, + "wifi": true + }, + "os": { + "name": "iOS", + "version": "15.2" + }, + "screen": { + "density": 3, + "height": 390, + "width": 844 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "email": "sofia@gmail.com", + "login_status": "Authenticated", + "name": "Sofia", + "phone_verified": 1, + "selected_city": "", + "selected_lat": 0, + "selected_long": 0, + "selected_neighborhood": "", + "selected_number": "", + "selected_postal_code": "", + "selected_state": "", + "selected_street": "", + "signed_up_for_newsletters": 0 + } + }, + "event": "Application Opened", + "integrations": { + "All": true + }, + "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", + "originalTimestamp": "2022-01-10T10:00:26.513Z", + "properties": { + "from_background": false + }, + "receivedAt": "2022-01-10T20:41:30.970+05:30", + "request_ip": "[::1]", + "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", + "sentAt": "2022-01-10T10:00:26.982Z", + "type": "track", + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "DESAU SAI", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "DESU SAI" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PUT", + "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", + "headers": { + "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" + }, + "params": {}, + "body": { + "JSON": { + "device": { + "from_background": false, + "id": "deviceToken", + "platform": "ios", + "last_used": 1641808826 + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 48", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "zx_userid_missing", + "namespace": "org.reactjs.native.example.zx-userid-missing", + "version": "1.0" + }, + "device": { + "attTrackingStatus": 0, + "id": "5d727a3e-a72b-4d00-8078-669c1494791d", + "manufacturer": "Apple", + "model": "iPhone", + "name": "iPhone 13", + "token": "deviceToken", + "type": "iOS" + }, + "library": { + "name": "rudder-ios-library", + "version": "1.3.1" + }, + "locale": "en-US", + "network": { + "bluetooth": false, + "carrier": "unavailable", + "cellular": false, + "wifi": true + }, + "os": { + "name": "iOS", + "version": "15.2" + }, + "screen": { + "density": 3, + "height": 390, + "width": 844 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "email": "sofia@gmail.com", + "login_status": "Authenticated", + "name": "Sofia", + "phone_verified": 1, + "selected_city": "", + "selected_lat": 0, + "selected_long": 0, + "selected_neighborhood": "", + "selected_number": "", + "selected_postal_code": "", + "selected_state": "", + "selected_street": "", + "signed_up_for_newsletters": 0, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + } + }, + "event": "Application Opened", + "integrations": { + "All": true + }, + "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", + "originalTimestamp": "2022-01-10T10:00:26.513Z", + "properties": { + "from_background": false + }, + "receivedAt": "2022-01-10T20:44:52.784+05:30", + "request_ip": "[::1]", + "rudderId": "0aef312c-0dc0-4a49-b613-4f33fb4e9b46", + "sentAt": "2022-01-10T10:00:26.982Z", + "type": "track" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "DESAU SAI", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "DESU SAI" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PUT", + "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", + "headers": { + "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" + }, + "params": {}, + "body": { + "JSON": { + "device": { + "from_background": false, + "id": "deviceToken", + "platform": "ios", + "last_used": 1641808826 + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 49", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "zx_userid_missing", + "namespace": "org.reactjs.native.example.zx-userid-missing", + "version": "1.0" + }, + "device": { + "attTrackingStatus": 0, + "id": "5d727a3e-a72b-4d00-8078-669c1494791d", + "manufacturer": "Apple", + "model": "iPhone", + "name": "iPhone 13", + "token": "deviceToken", + "type": "iOS" + }, + "library": { + "name": "rudder-ios-library", + "version": "1.3.1" + }, + "locale": "en-US", + "network": { + "bluetooth": false, + "carrier": "unavailable", + "cellular": false, + "wifi": true + }, + "os": { + "name": "iOS", + "version": "15.2" + }, + "screen": { + "density": 3, + "height": 390, + "width": 844 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "email": "sofia@gmail.com", + "login_status": "Authenticated", + "name": "Sofia", + "phone_verified": 1, + "selected_city": "", + "selected_lat": 0, + "selected_long": 0, + "selected_neighborhood": "", + "selected_number": "", + "selected_postal_code": "", + "selected_state": "", + "selected_street": "", + "signed_up_for_newsletters": 0, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + } + }, + "event": "Application Opened", + "integrations": { + "All": true + }, + "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", + "timestamp": "2022-01-10T10:00:26.513Z", + "receivedAt": "2022-01-10T20:47:36.180+05:30", + "request_ip": "[::1]", + "rudderId": "0aef312c-0dc0-4a49-b613-4f33fb4e9b46", + "sentAt": "2022-01-10T10:00:26.982Z", + "type": "track" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "DESAU SAI", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "DESU SAI" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PUT", + "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", + "headers": { + "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" + }, + "params": {}, + "body": { + "JSON": { + "device": { + "id": "deviceToken", + "platform": "ios", + "last_used": 1641808826 + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 50", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "zx_userid_missing", + "namespace": "org.reactjs.native.example.zx-userid-missing", + "version": "1.0" + }, + "device": { + "attTrackingStatus": 0, + "id": "5d727a3e-a72b-4d00-8078-669c1494791d", + "manufacturer": "Apple", + "model": "iPhone", + "name": "iPhone 13", + "token": "deviceToken", + "type": "iOS" + }, + "library": { + "name": "rudder-ios-library", + "version": "1.3.1" + }, + "locale": "en-US", + "network": { + "bluetooth": false, + "carrier": "unavailable", + "cellular": false, + "wifi": true + }, + "os": { + "name": "iOS", + "version": "15.2" + }, + "screen": { + "density": 3, + "height": 390, + "width": 844 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "email": "sofia@gmail.com", + "login_status": "Authenticated", + "name": "Sofia", + "phone_verified": 1, + "selected_city": "", + "selected_lat": 0, + "selected_long": 0, + "selected_neighborhood": "", + "selected_number": "", + "selected_postal_code": "", + "selected_state": "", + "selected_street": "", + "signed_up_for_newsletters": 0, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + } + }, + "event": "device_token_registered", + "integrations": { + "All": true + }, + "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", + "originalTimestamp": "2022-01-10T10:00:26.513Z", + "properties": { + "from_background": false + }, + "receivedAt": "2022-01-10T20:49:05.795+05:30", + "request_ip": "[::1]", + "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", + "sentAt": "2022-01-10T10:00:26.982Z", + "type": "track", + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "DESAU SAI", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "DESU SAI" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PUT", + "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", + "headers": { + "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" + }, + "params": {}, + "body": { + "JSON": { + "device": { + "from_background": false, + "id": "deviceToken", + "platform": "ios", + "last_used": 1641808826 + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 51", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "zx_userid_missing", + "namespace": "org.reactjs.native.example.zx-userid-missing", + "version": "1.0" + }, + "device": { + "attTrackingStatus": 0, + "id": "5d727a3e-a72b-4d00-8078-669c1494791d", + "manufacturer": "Apple", + "model": "iPhone", + "name": "iPhone 13", + "type": "iOS" + }, + "library": { + "name": "rudder-ios-library", + "version": "1.3.1" + }, + "locale": "en-US", + "network": { + "bluetooth": false, + "carrier": "unavailable", + "cellular": false, + "wifi": true + }, + "os": { + "name": "iOS", + "version": "15.2" + }, + "screen": { + "density": 3, + "height": 390, + "width": 844 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "email": "sofia@gmail.com", + "login_status": "Authenticated", + "name": "Sofia", + "phone_verified": 1, + "selected_city": "", + "selected_lat": 0, + "selected_long": 0, + "selected_neighborhood": "", + "selected_number": "", + "selected_postal_code": "", + "selected_state": "", + "selected_street": "", + "signed_up_for_newsletters": 0, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + } + }, + "event": "device_token_registered", + "integrations": { + "All": true + }, + "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", + "originalTimestamp": "2022-01-10T10:00:26.513Z", + "properties": { + "from_background": false + }, + "receivedAt": "2022-01-10T20:50:17.090+05:30", + "request_ip": "[::1]", + "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", + "sentAt": "2022-01-10T10:00:26.982Z", + "timestamp": "2022-01-10T20:50:16.621+05:30", + "type": "track", + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "DESAU SAI", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "DESU SAI" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/events", + "headers": { + "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "from_background": false + }, + "name": "device_token_registered", + "type": "event", + "timestamp": 1641828016 + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 52", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "zx_userid_missing", + "namespace": "org.reactjs.native.example.zx-userid-missing", + "version": "1.0" + }, + "device": { + "attTrackingStatus": 0, + "id": "5d727a3e-a72b-4d00-8078-669c1494791d", + "manufacturer": "Apple", + "model": "iPhone", + "name": "iPhone 13", + "token": "deviceToken", + "type": "iOS" + }, + "library": { + "name": "rudder-ios-library", + "version": "1.3.1" + }, + "locale": "en-US", + "network": { + "bluetooth": false, + "carrier": "unavailable", + "cellular": false, + "wifi": true + }, + "os": { + "name": "iOS", + "version": "15.2" + }, + "screen": { + "density": 3, + "height": 390, + "width": 844 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "email": "sofia@gmail.com", + "login_status": "Authenticated", + "name": "Sofia", + "phone_verified": 1, + "selected_city": "", + "selected_lat": 0, + "selected_long": 0, + "selected_neighborhood": "", + "selected_number": "", + "selected_postal_code": "", + "selected_state": "", + "selected_street": "", + "signed_up_for_newsletters": 0 + } + }, + "event": "device_token_registered", + "integrations": { + "All": true + }, + "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", + "originalTimestamp": "2022-01-10T10:00:26.513Z", + "properties": { + "from_background": false + }, + "receivedAt": "2022-01-10T20:52:19.147+05:30", + "request_ip": "[::1]", + "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", + "sentAt": "2022-01-10T10:00:26.982Z", + "timestamp": "2022-01-10T20:52:18.678+05:30", + "type": "track", + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "DESAU SAI", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "DESU SAI" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PUT", + "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", + "headers": { + "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" + }, + "params": {}, + "body": { + "JSON": { + "device": { + "from_background": false, + "id": "deviceToken", + "platform": "ios", + "last_used": 1641828138 + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 53", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "zx_userid_missing", + "namespace": "org.reactjs.native.example.zx-userid-missing", + "version": "1.0" + }, + "device": { + "attTrackingStatus": 0, + "id": "5d727a3e-a72b-4d00-8078-669c1494791d", + "manufacturer": "Apple", + "model": "iPhone", + "name": "iPhone 13", + "token": "deviceToken", + "type": "iOS" + }, + "library": { + "name": "rudder-ios-library", + "version": "1.3.1" + }, + "locale": "en-US", + "network": { + "bluetooth": false, + "carrier": "unavailable", + "cellular": false, + "wifi": true + }, + "os": { + "name": "iOS", + "version": "15.2" + }, + "screen": { + "density": 3, + "height": 390, + "width": 844 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "email": "sofia@gmail.com", + "login_status": "Authenticated", + "name": "Sofia", + "phone_verified": 1, + "selected_city": "", + "selected_lat": 0, + "selected_long": 0, + "selected_neighborhood": "", + "selected_number": "", + "selected_postal_code": "", + "selected_state": "", + "selected_street": "", + "signed_up_for_newsletters": 0, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + } + }, + "event": "device_token_registered", + "integrations": { + "All": true + }, + "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", + "originalTimestamp": "2022-01-10T10:00:26.513Z", + "properties": { + "from_background": false + }, + "receivedAt": "2022-01-10T20:53:43.680+05:30", + "request_ip": "[::1]", + "rudderId": "0aef312c-0dc0-4a49-b613-4f33fb4e9b46", + "sentAt": "2022-01-10T10:00:26.982Z", + "type": "track" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "DESAU SAI", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "DESU SAI" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PUT", + "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", + "headers": { + "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" + }, + "params": {}, + "body": { + "JSON": { + "device": { + "from_background": false, + "id": "deviceToken", + "platform": "ios", + "last_used": 1641808826 + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 54", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "zx_userid_missing", + "namespace": "org.reactjs.native.example.zx-userid-missing", + "version": "1.0" + }, + "device": { + "attTrackingStatus": 0, + "id": "5d727a3e-a72b-4d00-8078-669c1494791d", + "manufacturer": "Apple", + "model": "iPhone", + "name": "iPhone 13", + "token": "deviceToken", + "type": "iOS" + }, + "library": { + "name": "rudder-ios-library", + "version": "1.3.1" + }, + "locale": "en-US", + "network": { + "bluetooth": false, + "carrier": "unavailable", + "cellular": false, + "wifi": true + }, + "os": { + "name": "iOS", + "version": "15.2" + }, + "screen": { + "density": 3, + "height": 390, + "width": 844 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "email": "sofia@gmail.com", + "login_status": "Authenticated", + "name": "Sofia", + "phone_verified": 1, + "selected_city": "", + "selected_lat": 0, + "selected_long": 0, + "selected_neighborhood": "", + "selected_number": "", + "selected_postal_code": "", + "selected_state": "", + "selected_street": "", + "signed_up_for_newsletters": 0, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + } + }, + "event": "device_token_registered", + "integrations": { + "All": true + }, + "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", + "originalTimestamp": "2022-01-10T10:00:26.513Z", + "receivedAt": "2022-01-10T20:55:03.845+05:30", + "request_ip": "[::1]", + "rudderId": "0aef312c-0dc0-4a49-b613-4f33fb4e9b46", + "sentAt": "2022-01-10T10:00:26.982Z", + "type": "track" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "DESAU SAI", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "DESU SAI" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PUT", + "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", + "headers": { + "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" + }, + "params": {}, + "body": { + "JSON": { + "device": { + "id": "deviceToken", + "platform": "ios", + "last_used": 1641808826 + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 55", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "description": "check for ipados apple family and default it to ios", + "message": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "channel": "mobile", + "context": { + "app": { + "build": "1", + "name": "zx_userid_missing", + "namespace": "org.reactjs.native.example.zx-userid-missing", + "version": "1.0" + }, + "device": { + "attTrackingStatus": 0, + "id": "5d727a3e-a72b-4d00-8078-669c1494791d", + "manufacturer": "Apple", + "model": "iPhone", + "name": "iPhone 13", + "token": "deviceToken", + "type": "ipados" + }, + "library": { + "name": "rudder-ios-library", + "version": "1.3.1" + }, + "locale": "en-US", + "network": { + "bluetooth": false, + "carrier": "unavailable", + "cellular": false, + "wifi": true + }, + "os": { + "name": "iOS", + "version": "15.2" + }, + "screen": { + "density": 3, + "height": 390, + "width": 844 + }, + "timezone": "Asia/Kolkata", + "traits": { + "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", + "email": "sofia@gmail.com", + "login_status": "Authenticated", + "name": "Sofia", + "phone_verified": 1, + "selected_city": "", + "selected_lat": 0, + "selected_long": 0, + "selected_neighborhood": "", + "selected_number": "", + "selected_postal_code": "", + "selected_state": "", + "selected_street": "", + "signed_up_for_newsletters": 0 + } + }, + "event": "Application Opened", + "integrations": { + "All": true + }, + "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", + "originalTimestamp": "2022-01-10T10:00:26.513Z", + "properties": { + "from_background": false + }, + "receivedAt": "2022-01-10T20:41:30.970+05:30", + "request_ip": "[::1]", + "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", + "sentAt": "2022-01-10T10:00:26.982Z", + "type": "track", + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "DESAU SAI", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "DESU SAI" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PUT", + "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", + "headers": { + "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" + }, + "params": {}, + "body": { + "JSON": { + "device": { + "from_background": false, + "id": "deviceToken", + "platform": "ios", + "last_used": 1641808826 + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 56", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "description": "successful group call with identify action", + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.0-beta.2" + }, + "ip": "0.0.0.0", + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.0-beta.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" + }, + "groupId": "group@1", + "integrations": { + "All": true + }, + "traits": { + "domainNames": "rudderstack.com", + "email": "help@rudderstack.com", + "name": "rudderstack", + "action": "identify" + }, + "type": "group", + "userId": "user@1" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "ef32c3f60fb98f39ef35", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "c0efdbd20b9fbe24a7e2" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v2/batch", + "headers": { + "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" + }, + "params": {}, + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "type": "object", + "action": "identify", + "attributes": { + "name": "rudderstack", + "email": "help@rudderstack.com", + "domainNames": "rudderstack.com" + }, + "identifiers": { + "object_id": "group@1", + "object_type_id": "1" + }, + "cio_relationships": [ + { + "identifiers": { + "id": "user@1" + } + } + ] + }, + "JSON_ARRAY": {} + }, + "files": {}, + "userId": "user@1", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 57", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "description": "successful group call with delete action", + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.0-beta.2" + }, + "ip": "0.0.0.0", + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.0-beta.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" + }, + "groupId": "group@1", + "integrations": { + "All": true + }, + "traits": { + "domainNames": "rudderstack.com", + "email": "help@rudderstack.com", + "name": "rudderstack", + "action": "delete" + }, + "type": "group", + "userId": "user@1" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "ef32c3f60fb98f39ef35", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "c0efdbd20b9fbe24a7e2" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v2/batch", + "headers": { + "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" + }, + "params": {}, + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "type": "object", + "action": "delete", + "attributes": { + "name": "rudderstack", + "email": "help@rudderstack.com", + "domainNames": "rudderstack.com" + }, + "identifiers": { + "object_id": "group@1", + "object_type_id": "1" + }, + "cio_relationships": [ + { + "identifiers": { + "id": "user@1" + } + } + ] + }, + "JSON_ARRAY": {} + }, + "files": {}, + "userId": "user@1", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 58", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "description": "successful group call with add_relationships action", + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.0-beta.2" + }, + "ip": "0.0.0.0", + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.0-beta.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "test@rudderstack.com" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" + }, + "groupId": "group@1", + "integrations": { + "All": true + }, + "traits": { + "domainNames": "rudderstack.com", + "email": "help@rudderstack.com", + "name": "rudderstack", + "action": "add_relationships" + }, + "type": "group", + "userId": "user@1" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "ef32c3f60fb98f39ef35", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "c0efdbd20b9fbe24a7e2" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v2/batch", + "headers": { + "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" + }, + "params": {}, + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "type": "object", + "action": "add_relationships", + "attributes": { + "name": "rudderstack", + "email": "help@rudderstack.com", + "domainNames": "rudderstack.com" + }, + "identifiers": { + "object_id": "group@1", + "object_type_id": "1" + }, + "cio_relationships": [ + { + "identifiers": { + "id": "user@1" + } + } + ] + }, + "JSON_ARRAY": {} + }, + "files": {}, + "userId": "user@1", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 59", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "description": "successful group call with delete_relationships action", + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.0-beta.2" + }, + "ip": "0.0.0.0", + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.0-beta.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "test@rudderstack.com" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" + }, + "groupId": "group@1", + "integrations": { + "All": true + }, + "traits": { + "domainNames": "rudderstack.com", + "email": "help@rudderstack.com", + "name": "rudderstack", + "action": "delete_relationships" + }, + "type": "group", + "userId": "user@1" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "ef32c3f60fb98f39ef35", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "c0efdbd20b9fbe24a7e2" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v2/batch", + "headers": { + "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" + }, + "params": {}, + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "type": "object", + "action": "delete_relationships", + "attributes": { + "name": "rudderstack", + "email": "help@rudderstack.com", + "domainNames": "rudderstack.com" + }, + "identifiers": { + "object_id": "group@1", + "object_type_id": "1" + }, + "cio_relationships": [ + { + "identifiers": { + "id": "user@1" + } + } + ] + }, + "JSON_ARRAY": {} + }, + "files": {}, + "userId": "user@1", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 60", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "description": "successful group call with userId and groupId as an integer", + "message": { + "type": "group", + "header": { + "content-type": "application/json; charset=utf-8" + }, + "sentAt": "2023-03-28T09:36:49.882Z", + "traits": { + "city": "Frankfurt", + "name": "rudder test", + "state": "Hessen", + "isFake": true, + "address": "Solmsstraße 83", + "country": "DE", + "website": "http://www.rudderstack.com", + "industry": "Waste and recycling", + "postcode": "60486", + "whiteLabel": "rudderlabs", + "maxNbJobBoards": 2, + "organisationId": 306, + "pricingPackage": "packageExpert", + "dateProTrialEnd": "2022-08-31T00:00:00+00:00", + "isProTrialActive": true, + "datetimeRegistration": "2020-07-01T10:23:41+00:00", + "isPersonnelServiceProvider": false + }, + "userId": 432, + "channel": "server", + "context": { + "library": { + "name": "rudder-analytics-php", + "version": "2.0.1", + "consumer": "LibCurl" + } + }, + "groupId": 306, + "rudderId": "f5b46a12-2dab-4e24-a127-7316eed414fc", + "messageId": "7032394c-e813-4737-bf52-622dbcefe849", + "receivedAt": "2023-03-28T09:36:48.296Z", + "request_ip": "18.195.235.225", + "originalTimestamp": "2023-03-28T09:36:49.882Z" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "ef32c3f60fb98f39ef35", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "c0efdbd20b9fbe24a7e2" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v2/batch", + "headers": { + "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" + }, + "params": {}, + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "type": "object", + "action": "identify", + "attributes": { + "city": "Frankfurt", + "name": "rudder test", + "state": "Hessen", + "isFake": true, + "address": "Solmsstraße 83", + "country": "DE", + "website": "http://www.rudderstack.com", + "industry": "Waste and recycling", + "postcode": "60486", + "whiteLabel": "rudderlabs", + "maxNbJobBoards": 2, + "organisationId": 306, + "pricingPackage": "packageExpert", + "dateProTrialEnd": "2022-08-31T00:00:00+00:00", + "isProTrialActive": true, + "datetimeRegistration": "2020-07-01T10:23:41+00:00", + "isPersonnelServiceProvider": false + }, + "identifiers": { + "object_id": "306", + "object_type_id": "1" + }, + "cio_relationships": [ + { + "identifiers": { + "id": "432" + } + } + ] + }, + "JSON_ARRAY": {} + }, + "files": {}, + "userId": "432", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 61", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "description": "successful group call with userId in email format ", + "message": { + "type": "group", + "header": { + "content-type": "application/json; charset=utf-8" + }, + "sentAt": "2023-03-28T09:36:49.882Z", + "traits": { + "city": "Frankfurt", + "name": "rudder test", + "state": "Hessen", + "isFake": true, + "address": "Solmsstraße 83", + "country": "DE", + "website": "http://www.rudderstack.com", + "industry": "Waste and recycling", + "postcode": "60486", + "whiteLabel": "rudderlabs", + "maxNbJobBoards": 2, + "organisationId": 306, + "pricingPackage": "packageExpert", + "dateProTrialEnd": "2022-08-31T00:00:00+00:00", + "isProTrialActive": true, + "datetimeRegistration": "2020-07-01T10:23:41+00:00", + "isPersonnelServiceProvider": false + }, + "userId": "abc@xyz.com", + "channel": "server", + "context": { + "library": { + "name": "rudder-analytics-php", + "version": "2.0.1", + "consumer": "LibCurl" + } + }, + "groupId": 306, + "rudderId": "f5b46a12-2dab-4e24-a127-7316eed414fc", + "messageId": "7032394c-e813-4737-bf52-622dbcefe849", + "receivedAt": "2023-03-28T09:36:48.296Z", + "request_ip": "18.195.235.225", + "originalTimestamp": "2023-03-28T09:36:49.882Z" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "ef32c3f60fb98f39ef35", + "datacenter": "US", + "deviceTokenEventName": "device_token_registered", + "siteID": "c0efdbd20b9fbe24a7e2" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track.customer.io/api/v2/batch", + "headers": { + "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" + }, + "params": {}, + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "type": "object", + "action": "identify", + "attributes": { + "city": "Frankfurt", + "name": "rudder test", + "state": "Hessen", + "isFake": true, + "address": "Solmsstraße 83", + "country": "DE", + "website": "http://www.rudderstack.com", + "industry": "Waste and recycling", + "postcode": "60486", + "whiteLabel": "rudderlabs", + "maxNbJobBoards": 2, + "organisationId": 306, + "pricingPackage": "packageExpert", + "dateProTrialEnd": "2022-08-31T00:00:00+00:00", + "isProTrialActive": true, + "datetimeRegistration": "2020-07-01T10:23:41+00:00", + "isPersonnelServiceProvider": false + }, + "identifiers": { + "object_id": "306", + "object_type_id": "1" + }, + "cio_relationships": [ + { + "identifiers": { + "email": "abc@xyz.com" + } + } + ] + }, + "JSON_ARRAY": {} + }, + "files": {}, + "userId": "abc@xyz.com", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 62", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "description": "successful group call with eu as data center", + "message": { + "type": "group", + "header": { + "content-type": "application/json; charset=utf-8" + }, + "sentAt": "2023-03-28T09:36:49.882Z", + "traits": { + "city": "Frankfurt", + "name": "rudder test", + "state": "Hessen", + "isFake": true, + "address": "Solmsstraße 83", + "country": "DE", + "website": "http://www.rudderstack.com", + "industry": "Waste and recycling", + "postcode": "60486", + "whiteLabel": "rudderlabs", + "maxNbJobBoards": 2, + "organisationId": 306, + "pricingPackage": "packageExpert", + "dateProTrialEnd": "2022-08-31T00:00:00+00:00", + "isProTrialActive": true, + "datetimeRegistration": "2020-07-01T10:23:41+00:00", + "isPersonnelServiceProvider": false + }, + "userId": 432, + "channel": "server", + "context": { + "library": { + "name": "rudder-analytics-php", + "version": "2.0.1", + "consumer": "LibCurl" + } + }, + "groupId": 306, + "rudderId": "f5b46a12-2dab-4e24-a127-7316eed414fc", + "messageId": "7032394c-e813-4737-bf52-622dbcefe849", + "receivedAt": "2023-03-28T09:36:48.296Z", + "request_ip": "18.195.235.225", + "originalTimestamp": "2023-03-28T09:36:49.882Z" + }, + "destination": { + "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", + "Name": "Customer IO Dev", + "DestinationDefinition": { + "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", + "Name": "CUSTOMERIO", + "DisplayName": "Customer IO", + "Config": { + "destConfig": { + "defaultConfig": [ + "apiKey", + "siteID", + "datacenterEU", + "deviceTokenEventName" + ], + "web": [ + "useNativeSDK", + "blackListedEvents", + "whiteListedEvents" + ] + }, + "excludeKeys": [], + "includeKeys": [ + "apiKey", + "siteID", + "datacenterEU", + "blackListedEvents", + "whiteListedEvents" + ], + "saveDestinationResponse": true, + "secretKeys": [], + "supportedMessageTypes": [ + "identify", + "page", + "screen", + "track" + ], + "supportedSourceTypes": [ + "android", + "ios", + "web", + "unity", + "amp", + "cloud", + "warehouse", + "reactnative", + "flutter", + "cordova" + ], + "supportsVisualMapper": true, + "transformAt": "processor", + "transformAtV1": "processor" + }, + "ResponseRules": {} + }, + "Config": { + "apiKey": "ef32c3f60fb98f39ef35", + "datacenter": "EU", + "deviceTokenEventName": "device_token_registered", + "siteID": "c0efdbd20b9fbe24a7e2" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://track-eu.customer.io/api/v2/batch", + "headers": { + "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" + }, + "params": {}, + "body": { + "XML": {}, + "FORM": {}, + "JSON": { + "type": "object", + "action": "identify", + "attributes": { + "city": "Frankfurt", + "name": "rudder test", + "state": "Hessen", + "isFake": true, + "address": "Solmsstraße 83", + "country": "DE", + "website": "http://www.rudderstack.com", + "industry": "Waste and recycling", + "postcode": "60486", + "whiteLabel": "rudderlabs", + "maxNbJobBoards": 2, + "organisationId": 306, + "pricingPackage": "packageExpert", + "dateProTrialEnd": "2022-08-31T00:00:00+00:00", + "isProTrialActive": true, + "datetimeRegistration": "2020-07-01T10:23:41+00:00", + "isPersonnelServiceProvider": false + }, + "identifiers": { + "object_id": "306", + "object_type_id": "1" + }, + "cio_relationships": [ + { + "identifiers": { + "id": "432" + } + } + ] + }, + "JSON_ARRAY": {} + }, + "files": {}, + "userId": "432", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 63", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "page", + "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", + "originalTimestamp": "2019-10-14T11:15:18.299Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "12345", + "properties": { + "path": "/test", + "referrer": "Rudder", + "search": "abc", + "title": "Test Page", + "url": "www.rudderlabs.com" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "page", + "data": { + "url": "www.rudderlabs.com", + "path": "/test", + "search": "abc", + "referrer": "Rudder", + "title": "Test Page" + }, + "timestamp": 1571051718, + "name": "www.rudderlabs.com" + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/events", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 64", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "page", + "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", + "originalTimestamp": "2019-10-14T11:15:18.299Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "12345", + "properties": { + "path": "/test", + "referrer": "Rudder", + "search": "abc", + "title": "Test Page" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "page", + "data": { + "path": "/test", + "search": "abc", + "referrer": "Rudder", + "title": "Test Page" + }, + "timestamp": 1571051718 + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/events", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "customerio", + "description": "Test 65", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com", + "anonymousId": "12345" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "page", + "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", + "originalTimestamp": "2019-10-14T11:15:18.299Z", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "userId": "12345", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "datacenter": "US", + "siteID": "46be54768e7d49ab2628", + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "body": { + "XML": {}, + "JSON_ARRAY": {}, + "JSON": { + "type": "page", + "timestamp": 1571051718 + }, + "FORM": {} + }, + "files": {}, + "endpoint": "https://track.customer.io/api/v1/customers/12345/events", + "userId": "12345", + "headers": { + "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" + }, + "version": "1", + "params": {}, + "type": "REST", + "method": "POST", + "statusCode": 200 + }, + "statusCode": 200 + } + ] + } + } + } +] \ No newline at end of file From 76f50c85352af4be8e8fe13f3e6d4d362c52bb5b Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Mon, 16 Oct 2023 05:55:59 +0530 Subject: [PATCH 3/9] test: add proc cases for autopilot,azure,criteo,facebookpixel --- .../attentive_tag/processor/data.ts | 3339 +++++----- .../destinations/autopilot/processor/data.ts | 1156 ++++ .../azure_event_hub/processor/data.ts | 825 +++ .../criteo_audience/processor/data.ts | 1638 +++++ .../facebook_pixel/processor/data.ts | 5646 +++++++++++++++++ 5 files changed, 10946 insertions(+), 1658 deletions(-) create mode 100644 test/integrations/destinations/autopilot/processor/data.ts create mode 100644 test/integrations/destinations/azure_event_hub/processor/data.ts create mode 100644 test/integrations/destinations/criteo_audience/processor/data.ts create mode 100644 test/integrations/destinations/facebook_pixel/processor/data.ts diff --git a/test/integrations/destinations/attentive_tag/processor/data.ts b/test/integrations/destinations/attentive_tag/processor/data.ts index df5292ac42..42e6492d10 100644 --- a/test/integrations/destinations/attentive_tag/processor/data.ts +++ b/test/integrations/destinations/attentive_tag/processor/data.ts @@ -1,1659 +1,1682 @@ +export const mockFns = (_) => { + // @ts-ignore + jest.useFakeTimers().setSystemTime(new Date('2023-10-14')); +}; + export const data = [ - { - "name": "attentive_tag", - "description": "Test 0", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "locale": "en-GB", - "traits": { - "email": "a@gmail.com", - "phone": "+16405273911", - "customIdentifiers": [ - { - "name": "string", - "value": "string" - } - ] - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", - "receivedAt": "2019-10-14T09:03:17.562Z", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "241654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "userId": "", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/subscriptions", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "phone": "+16405273911", - "email": "a@gmail.com" - }, - "signUpSourceId": "241654", - "externalIdentifiers": { - "customIdentifiers": [ - { - "name": "string", - "value": "string" - } - ] - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 1", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "224" - }, - { - "type": "klaviyoId", - "id": "132" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product,id": "r494", - "quantity": "34", - "variant": "f" - }, - "event": "Order Shipped", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:17.562Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "error": "[Attentive_Tag]: Events must be sent within 12 hours of their occurrence.", - "statTags": { - "destType": "ATTENTIVE_TAG", - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "feature": "processor", - "implementation": "native", - "module": "destination" - }, - "statusCode": 400 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 2", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "phone": "+16465453911" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36" - }, - "integrations": { - "All": true, - "attentive_tag": { - "signUpSourceId": "241654", - "identifyOperation": "unsubscribe" - } - }, - "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "241654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "userId": "", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/subscriptions/unsubscribe", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "phone": "+16465453911" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 3", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Order Completed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "error": "[Attentive_Tag]: Events must be sent within 12 hours of their occurrence.", - "statTags": { - "destType": "ATTENTIVE_TAG", - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "feature": "processor", - "implementation": "native", - "module": "destination" - }, - "statusCode": 400 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 4", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": 1 - }, - { - "type": "shopifyId", - "id": 1 - }, - { - "type": "klaviyoId", - "id": 1 - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "error": "[Attentive Tag] :: Event name is not present", - "statTags": { - "destType": "ATTENTIVE_TAG", - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "feature": "processor", - "implementation": "native", - "module": "destination" - }, - "statusCode": 400 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 5", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Product List Viewed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "error": "[Attentive Tag]: Events must be sent within 12 hours of their occurrence.", - "statTags": { - "destType": "ATTENTIVE_TAG", - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "feature": "processor", - "implementation": "native", - "module": "destination" - }, - "statusCode": 400 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 6", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Product Viewed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "error": "[Attentive Tag]: Events must be sent within 12 hours of their occurrence.", - "statTags": { - "destType": "ATTENTIVE_TAG", - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "feature": "processor", - "implementation": "native", - "module": "destination" - }, - "statusCode": 400 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 7", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "224" - }, - { - "type": "klaviyoId", - "id": "132" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34" - }, - "event": "Order Shipped", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "error": "[Attentive Tag]: Events must be sent within 12 hours of their occurrence.", - "statTags": { - "destType": "ATTENTIVE_TAG", - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "feature": "processor", - "implementation": "native", - "module": "destination" - }, - "statusCode": 400 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 8", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": 1 - }, - { - "type": "shopifyId", - "id": 1 - }, - { - "type": "klaviyoId", - "id": 1 - } - ] - }, - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Order Completed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "error": "Message Type is not present. Aborting message.", - "statTags": { - "destType": "ATTENTIVE_TAG", - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "feature": "processor", - "implementation": "native", - "module": "destination" - }, - "statusCode": 400 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 9", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "test0@gmail.com", - "phone": "+16465453911" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36" - }, - "integrations": { - "All": true, - "attentive_tag": { - "signUpSourceId": "241654", - "identifyOperation": "subscribe" - } - }, - "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "241654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "userId": "", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/subscriptions", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "phone": "+16465453911", - "email": "test0@gmail.com" - }, - "signUpSourceId": "241654" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 10", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Product Viewed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "error": "[Attentive_Tag]: Events must be sent within 12 hours of their occurrence.", - "statTags": { - "destType": "ATTENTIVE_TAG", - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "feature": "processor", - "implementation": "native", - "module": "destination" - }, - "statusCode": 400 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 11", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Product Viewed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "error": "Missing required value from \"product_id\"", - "statTags": { - "destType": "ATTENTIVE_TAG", - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "feature": "processor", - "implementation": "native", - "module": "destination" - }, - "statusCode": 400 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 12", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Product Viewed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "statusCode": 400, - "error": "Missing required value from \"variant\"" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 13", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "curre,ncy": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Order Shipped", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "statusCode": 400, - "error": "[Attentive Tag]:The event name contains characters which is not allowed" - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 14", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "test0@gmail.com", - "phone": "+16465453911" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36" - }, - "integrations": { - "All": true, - "attentive_tag": { - "signUpSourceId": "241654" - } - }, - "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "241654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/subscriptions", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "phone": "+16465453911", - "email": "test0@gmail.com" - }, - "signUpSourceId": "241654" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "statusCode": 200 - } - ] - } - } - }, - { - "name": "attentive_tag", - "description": "Test 15", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Product Viewed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/events/ecommerce/product-view", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": {}, - "occuredAt": "2019-10-14T09:03:17.562Z", - "items": [ - { - "productId": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "productVariantId": "green", - "quantity": "2", - "price": [ - { - "value": 19, - "currency": "USD" - } - ] - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "statusCode": 200 - } - ] - } - } - } -] \ No newline at end of file + { + name: 'attentive_tag', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '4eb021e9-a2af-4926-ae82-fe996d12f3c5', + channel: 'web', + context: { + locale: 'en-GB', + traits: { + email: 'a@gmail.com', + phone: '+16405273911', + customIdentifiers: [ + { + name: 'string', + value: 'string', + }, + ], + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: 'e108eb05-f6cd-4624-ba8c-568f2e2b3f92', + receivedAt: '2023-10-14T09:03:17.562Z', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '241654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.attentivemobile.com/v1/subscriptions', + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + user: { + phone: '+16405273911', + email: 'a@gmail.com', + }, + signUpSourceId: '241654', + externalIdentifiers: { + customIdentifiers: [ + { + name: 'string', + value: 'string', + }, + ], + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + phone: '+16465053911', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + id: '72e528f869711c3d', + manufacturer: 'Google', + model: 'sdk_gphone_x86', + name: 'generic_x86_arm', + token: 'some_device_token', + type: 'android', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'clientUserId', + id: '144', + }, + { + type: 'shopifyId', + id: '224', + }, + { + type: 'klaviyoId', + id: '132', + }, + ], + }, + type: 'track', + properties: { + price: '12', + currency: 'USD', + 'product,id': 'r494', + quantity: '34', + variant: 'f', + }, + event: 'Order Shipped', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2023-10-14T09:03:17.562Z', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '240654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: '[Attentive_Tag]: Events must be sent within 12 hours of their occurrence.', + statTags: { + destType: 'ATTENTIVE_TAG', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '4eb021e9-a2af-4926-ae82-fe996d12f3c5', + channel: 'web', + context: { + locale: 'en-GB', + os: { + name: '', + version: '', + }, + traits: { + company: { + id: 'abc123', + }, + createdAt: 'Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)', + phone: '+16465453911', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36', + }, + integrations: { + All: true, + attentive_tag: { + signUpSourceId: '241654', + identifyOperation: 'unsubscribe', + }, + }, + messageId: 'e108eb05-f6cd-4624-ba8c-568f2e2b3f92', + receivedAt: '2020-10-16T13:56:14.945+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '241654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.attentivemobile.com/v1/subscriptions/unsubscribe', + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + user: { + phone: '+16465453911', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + id: '72e528f869711c3d', + manufacturer: 'Google', + model: 'sdk_gphone_x86', + name: 'generic_x86_arm', + token: 'some_device_token', + type: 'android', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'clientUserId', + id: '144', + }, + { + type: 'shopifyId', + id: '143', + }, + { + type: 'klaviyoId', + id: '142', + }, + ], + }, + type: 'track', + properties: { + price: '12', + currency: 'USD', + product_id: 'r494', + quantity: '34', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'MOBILE', + variant: 'green', + price: '19', + quantity: '2', + currency: 'USD', + }, + ], + }, + event: 'Order Completed', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '240654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: '[Attentive_Tag]: Events must be sent within 12 hours of their occurrence.', + statTags: { + destType: 'ATTENTIVE_TAG', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + phone: '+16465053911', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + id: '72e528f869711c3d', + manufacturer: 'Google', + model: 'sdk_gphone_x86', + name: 'generic_x86_arm', + token: 'some_device_token', + type: 'android', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'clientUserId', + id: 1, + }, + { + type: 'shopifyId', + id: 1, + }, + { + type: 'klaviyoId', + id: 1, + }, + ], + }, + type: 'track', + properties: { + price: '12', + currency: 'USD', + product_id: 'r494', + quantity: '34', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'MOBILE', + variant: 'green', + price: '19', + quantity: '2', + currency: 'USD', + }, + ], + }, + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '240654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: '[Attentive Tag] :: Event name is not present', + statTags: { + destType: 'ATTENTIVE_TAG', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + phone: '+16465053911', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + id: '72e528f869711c3d', + manufacturer: 'Google', + model: 'sdk_gphone_x86', + name: 'generic_x86_arm', + token: 'some_device_token', + type: 'android', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'clientUserId', + id: '144', + }, + { + type: 'shopifyId', + id: '143', + }, + { + type: 'klaviyoId', + id: '142', + }, + ], + }, + type: 'track', + properties: { + price: '12', + currency: 'USD', + product_id: 'r494', + quantity: '34', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'MOBILE', + variant: 'green', + price: '19', + quantity: '2', + currency: 'USD', + }, + ], + }, + event: 'Product List Viewed', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '240654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: '[Attentive_Tag]: Events must be sent within 12 hours of their occurrence.', + statTags: { + destType: 'ATTENTIVE_TAG', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + phone: '+16465053911', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + id: '72e528f869711c3d', + manufacturer: 'Google', + model: 'sdk_gphone_x86', + name: 'generic_x86_arm', + token: 'some_device_token', + type: 'android', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'clientUserId', + id: '144', + }, + { + type: 'shopifyId', + id: '143', + }, + { + type: 'klaviyoId', + id: '142', + }, + ], + }, + type: 'track', + properties: { + price: '12', + currency: 'USD', + product_id: 'r494', + quantity: '34', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'MOBILE', + variant: 'green', + price: '19', + quantity: '2', + currency: 'USD', + }, + ], + }, + event: 'Product Viewed', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '240654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: '[Attentive_Tag]: Events must be sent within 12 hours of their occurrence.', + statTags: { + destType: 'ATTENTIVE_TAG', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + phone: '+16465053911', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + id: '72e528f869711c3d', + manufacturer: 'Google', + model: 'sdk_gphone_x86', + name: 'generic_x86_arm', + token: 'some_device_token', + type: 'android', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'clientUserId', + id: '144', + }, + { + type: 'shopifyId', + id: '224', + }, + { + type: 'klaviyoId', + id: '132', + }, + ], + }, + type: 'track', + properties: { + price: '12', + currency: 'USD', + product_id: 'r494', + quantity: '34', + }, + event: 'Order Shipped', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '240654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: '[Attentive_Tag]: Events must be sent within 12 hours of their occurrence.', + statTags: { + destType: 'ATTENTIVE_TAG', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + phone: '+16465053911', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + id: '72e528f869711c3d', + manufacturer: 'Google', + model: 'sdk_gphone_x86', + name: 'generic_x86_arm', + token: 'some_device_token', + type: 'android', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'clientUserId', + id: 1, + }, + { + type: 'shopifyId', + id: 1, + }, + { + type: 'klaviyoId', + id: 1, + }, + ], + }, + properties: { + price: '12', + currency: 'USD', + product_id: 'r494', + quantity: '34', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'MOBILE', + variant: 'green', + price: '19', + quantity: '2', + currency: 'USD', + }, + ], + }, + event: 'Order Completed', + originalTimestamp: '2023-10-14T09:03:17.562Z', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2023-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '240654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Message Type is not present. Aborting message.', + statTags: { + destType: 'ATTENTIVE_TAG', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '4eb021e9-a2af-4926-ae82-fe996d12f3c5', + channel: 'web', + context: { + locale: 'en-GB', + os: { + name: '', + version: '', + }, + traits: { + company: { + id: 'abc123', + }, + createdAt: 'Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)', + email: 'test0@gmail.com', + phone: '+16465453911', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36', + }, + integrations: { + All: true, + attentive_tag: { + signUpSourceId: '241654', + identifyOperation: 'subscribe', + }, + }, + messageId: 'e108eb05-f6cd-4624-ba8c-568f2e2b3f92', + receivedAt: '2023-10-14T13:56:14.945+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '241654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.attentivemobile.com/v1/subscriptions', + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + user: { + phone: '+16465453911', + email: 'test0@gmail.com', + }, + signUpSourceId: '241654', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + id: '72e528f869711c3d', + manufacturer: 'Google', + model: 'sdk_gphone_x86', + name: 'generic_x86_arm', + token: 'some_device_token', + type: 'android', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'clientUserId', + id: '144', + }, + { + type: 'shopifyId', + id: '143', + }, + { + type: 'klaviyoId', + id: '142', + }, + ], + }, + type: 'track', + properties: { + price: '12', + currency: 'USD', + product_id: 'r494', + quantity: '34', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'MOBILE', + variant: 'green', + price: '19', + quantity: '2', + currency: 'USD', + }, + ], + }, + event: 'Product Viewed', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '240654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: '[Attentive_Tag]: Events must be sent within 12 hours of their occurrence.', + statTags: { + destType: 'ATTENTIVE_TAG', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + phone: '+16465053911', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + id: '72e528f869711c3d', + manufacturer: 'Google', + model: 'sdk_gphone_x86', + name: 'generic_x86_arm', + token: 'some_device_token', + type: 'android', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'clientUserId', + id: '144', + }, + { + type: 'shopifyId', + id: '143', + }, + { + type: 'klaviyoId', + id: '142', + }, + ], + }, + type: 'track', + properties: { + price: '12', + currency: 'USD', + quantity: '34', + products: [ + { + name: 'MOBILE', + variant: 'green', + price: '19', + quantity: '2', + currency: 'USD', + }, + ], + }, + event: 'Product Viewed', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '240654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + error: 'Missing required value from "product_id"', + statTags: { + destType: 'ATTENTIVE_TAG', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 12', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + phone: '+16465053911', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + id: '72e528f869711c3d', + manufacturer: 'Google', + model: 'sdk_gphone_x86', + name: 'generic_x86_arm', + token: 'some_device_token', + type: 'android', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'clientUserId', + id: '144', + }, + { + type: 'shopifyId', + id: '143', + }, + { + type: 'klaviyoId', + id: '142', + }, + ], + }, + type: 'track', + properties: { + price: '12', + currency: 'USD', + product_id: 'r494', + quantity: '34', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'MOBILE', + price: '19', + quantity: '2', + currency: 'USD', + }, + ], + }, + event: 'Product Viewed', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '240654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Missing required value from "variant"', + statTags: { + destType: 'ATTENTIVE_TAG', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 13', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + phone: '+16465053911', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + id: '72e528f869711c3d', + manufacturer: 'Google', + model: 'sdk_gphone_x86', + name: 'generic_x86_arm', + token: 'some_device_token', + type: 'android', + }, + screen: { + density: 2, + }, + externalId: [ + { + type: 'clientUserId', + id: '144', + }, + { + type: 'shopifyId', + id: '143', + }, + { + type: 'klaviyoId', + id: '142', + }, + ], + }, + type: 'track', + properties: { + price: '12', + 'curre,ncy': 'USD', + product_id: 'r494', + quantity: '34', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'MOBILE', + variant: 'green', + price: '19', + quantity: '2', + currency: 'USD', + }, + ], + }, + event: 'Order Shipped', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '240654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: '[Attentive Tag]:The event name contains characters which is not allowed', + statTags: { + destType: 'ATTENTIVE_TAG', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'processor', + implementation: 'native', + module: 'destination', + }, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 14', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: '4eb021e9-a2af-4926-ae82-fe996d12f3c5', + channel: 'web', + context: { + locale: 'en-GB', + os: { + name: '', + version: '', + }, + traits: { + company: { + id: 'abc123', + }, + createdAt: 'Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)', + email: 'test0@gmail.com', + phone: '+16465453911', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36', + }, + integrations: { + All: true, + attentive_tag: { + signUpSourceId: '241654', + }, + }, + messageId: 'e108eb05-f6cd-4624-ba8c-568f2e2b3f92', + receivedAt: '2020-10-16T13:56:14.945+05:30', + type: 'identify', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '241654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + userId: '', + method: 'POST', + endpoint: 'https://api.attentivemobile.com/v1/subscriptions', + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + user: { + phone: '+16465453911', + email: 'test0@gmail.com', + }, + signUpSourceId: '241654', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'attentive_tag', + description: 'Test 15', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + id: '72e528f869711c3d', + manufacturer: 'Google', + model: 'sdk_gphone_x86', + name: 'generic_x86_arm', + token: 'some_device_token', + type: 'android', + }, + screen: { + density: 2, + }, + }, + type: 'track', + properties: { + price: '12', + currency: 'USD', + product_id: 'r494', + quantity: '34', + products: [ + { + product_id: '507f1f77bcf86cd799439011', + name: 'MOBILE', + variant: 'green', + price: '19', + quantity: '2', + currency: 'USD', + }, + ], + }, + event: 'Product Viewed', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '240654', + }, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + userId: '', + endpoint: 'https://api.attentivemobile.com/v1/events/ecommerce/product-view', + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + user: {}, + items: [ + { + productId: '507f1f77bcf86cd799439011', + name: 'MOBILE', + productVariantId: 'green', + quantity: '2', + price: [ + { + value: 19, + currency: 'USD', + }, + ], + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + statusCode: 200, + }, + ], + }, + }, + }, +]; diff --git a/test/integrations/destinations/autopilot/processor/data.ts b/test/integrations/destinations/autopilot/processor/data.ts new file mode 100644 index 0000000000..1fe7dfc97e --- /dev/null +++ b/test/integrations/destinations/autopilot/processor/data.ts @@ -0,0 +1,1156 @@ +export const data = [ + { + "name": "autopilot", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", + "Name": "Autopilot", + "DestinationDefinition": { + "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", + "Name": "AUTOPILOT", + "DisplayName": "Autopilot", + "Config": { + "cdkEnabled": true, + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": { + "apiKey": "dummyApiKey", + "customMappings": [ + { + "from": "0001", + "to": "Signup" + } + ], + "triggerId": "00XX" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1-rc.2" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1-rc.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index4.html", + "referrer": "", + "search": "", + "title": "", + "url": "http://localhost/tests/html/index4.html" + }, + "screen": { + "density": 2 + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + }, + "integrations": { + "All": true + }, + "messageId": "fad9b3fb-5778-4db3-9fb6-7168b554191f", + "originalTimestamp": "2020-04-17T14:42:44.722Z", + "receivedAt": "2020-04-17T20:12:44.758+05:30", + "request_ip": "[::1]:53513", + "sentAt": "2020-04-17T14:42:44.722Z", + "traits": { + "age": 23, + "email": "testmp@rudderstack.com", + "firstname": "Test Kafka" + }, + "timestamp": "2020-04-17T20:12:44.758+05:30", + "type": "identify", + "userId": "user12345" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api2.autopilothq.com/v1/contact", + "headers": { + "Accept": "application/json", + "autopilotapikey": "dummyApiKey", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "contact": { + "Email": "testmp@rudderstack.com", + "FirstName": "Test Kafka", + "custom": { + "age": 23 + } + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "autopilot", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", + "Name": "Autopilot", + "DestinationDefinition": { + "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", + "Name": "AUTOPILOT", + "DisplayName": "Autopilot", + "Config": { + "cdkEnabled": true, + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": { + "apiKey": "dummyApiKey", + "customMappings": [ + { + "from": "0001", + "to": "Signup" + } + ], + "triggerId": "00XX" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1-rc.2" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1-rc.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index4.html", + "referrer": "", + "search": "", + "title": "", + "url": "http://localhost/tests/html/index4.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "testmp@rudderstack.com", + "firstname": "Test Kafka" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + }, + "event": "test track with property", + "integrations": { + "All": true + }, + "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", + "originalTimestamp": "2020-04-17T14:42:44.724Z", + "properties": { + "test_prop_1": "test prop", + "test_prop_2": 1232 + }, + "receivedAt": "2020-04-17T20:12:44.758+05:30", + "request_ip": "[::1]:53512", + "sentAt": "2020-04-17T14:42:44.725Z", + "timestamp": "2020-04-17T20:12:44.757+05:30", + "type": "track", + "userId": "user12345" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api2.autopilothq.com/v1/trigger/00XX/contact/testmp@rudderstack.com", + "headers": { + "Accept": "application/json", + "autopilotapikey": "dummyApiKey", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "property": { + "test_prop_1": "test prop", + "test_prop_2": 1232 + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "autopilot", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", + "Name": "Autopilot", + "DestinationDefinition": { + "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", + "Name": "AUTOPILOT", + "DisplayName": "Autopilot", + "Config": { + "cdkEnabled": true, + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": { + "apiKey": "dummyApiKey", + "customMappings": [ + { + "from": "0001", + "to": "Signup" + } + ], + "triggerId": "00XX" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1-rc.2" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1-rc.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index4.html", + "referrer": "", + "search": "", + "title": "", + "url": "http://localhost/tests/html/index4.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "testmp@rudderstack.com", + "firstname": "Test Kafka" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + }, + "event": "test track with property", + "integrations": { + "All": true + }, + "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", + "originalTimestamp": "2020-04-17T14:42:44.724Z", + "properties": { + "test_prop_1": "test prop", + "test_prop_2": 1232 + }, + "receivedAt": "2020-04-17T20:12:44.758+05:30", + "request_ip": "[::1]:53512", + "sentAt": "2020-04-17T14:42:44.725Z", + "timestamp": "2020-04-17T20:12:44.757+05:30", + "type": "page", + "userId": "user12345" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 500, + "error": "Cannot read properties of undefined (reading 'destinationId')", + "statTags": { + "errorCategory": "transformation", + "destType": "AUTOPILOT", + "module": "destination", + "implementation": "cdkV1", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "autopilot", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", + "Name": "Autopilot", + "DestinationDefinition": { + "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", + "Name": "AUTOPILOT", + "DisplayName": "Autopilot", + "Config": { + "cdkEnabled": true, + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": { + "apiKey": "dummyApiKey", + "customMappings": [ + { + "from": "0001", + "to": "Signup" + } + ], + "triggerId": "00XX" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1-rc.2" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1-rc.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index4.html", + "referrer": "", + "search": "", + "title": "", + "url": "http://localhost/tests/html/index4.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "firstname": "Test Kafka" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + }, + "event": "test track with property", + "integrations": { + "All": true + }, + "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", + "originalTimestamp": "2020-04-17T14:42:44.724Z", + "properties": { + "test_prop_1": "test prop", + "test_prop_2": 1232 + }, + "receivedAt": "2020-04-17T20:12:44.758+05:30", + "request_ip": "[::1]:53512", + "sentAt": "2020-04-17T14:42:44.725Z", + "timestamp": "2020-04-17T20:12:44.757+05:30", + "type": "track", + "userId": "user12345" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 500, + "error": "Cannot read properties of undefined (reading 'destinationId')", + "statTags": { + "errorCategory": "transformation", + "destType": "AUTOPILOT", + "module": "destination", + "implementation": "cdkV1", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "autopilot", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", + "Name": "Autopilot", + "DestinationDefinition": { + "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", + "Name": "AUTOPILOT", + "DisplayName": "Autopilot", + "Config": { + "cdkEnabled": true, + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": { + "apiKey": "dummyApiKey", + "customMappings": [ + { + "from": "0001", + "to": "Signup" + } + ], + "triggerId": "00XX" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1-rc.2" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1-rc.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index4.html", + "referrer": "", + "search": "", + "title": "", + "url": "http://localhost/tests/html/index4.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "firstname": "Test Kafka" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + }, + "event": "test track with property", + "integrations": { + "All": true + }, + "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", + "originalTimestamp": "2020-04-17T14:42:44.724Z", + "properties": { + "test_prop_1": "test prop", + "test_prop_2": 1232 + }, + "receivedAt": "2020-04-17T20:12:44.758+05:30", + "request_ip": "[::1]:53512", + "sentAt": "2020-04-17T14:42:44.725Z", + "timestamp": "2020-04-17T20:12:44.757+05:30", + "userId": "user12345" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 500, + "error": "Cannot read properties of undefined (reading 'destinationId')", + "statTags": { + "errorCategory": "transformation", + "destType": "AUTOPILOT", + "module": "destination", + "implementation": "cdkV1", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "autopilot", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", + "Name": "Autopilot", + "DestinationDefinition": { + "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", + "Name": "AUTOPILOT", + "DisplayName": "Autopilot", + "Config": { + "cdkEnabled": true, + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": { + "apiKey": "dummyApiKey", + "customMappings": [ + { + "from": "0001", + "to": "Signup" + } + ], + "triggerId": "00XX" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1-rc.2" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1-rc.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index4.html", + "referrer": "", + "search": "", + "title": "", + "url": "http://localhost/tests/html/index4.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "testmp@rudderstack.com", + "firstname": "Test Kafka" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + }, + "event": "test track with property", + "integrations": { + "All": true + }, + "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", + "originalTimestamp": "2020-04-17T14:42:44.724Z", + "properties": { + "test_prop_1": "test prop", + "test_prop_2": 1232 + }, + "receivedAt": "2020-04-17T20:12:44.758+05:30", + "request_ip": "[::1]:53512", + "sentAt": "2020-04-17T14:42:44.725Z", + "timestamp": "2020-04-17T20:12:44.757+05:30", + "type": "group", + "userId": "user12345" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 500, + "error": "Cannot read properties of undefined (reading 'destinationId')", + "statTags": { + "errorCategory": "transformation", + "destType": "AUTOPILOT", + "module": "destination", + "implementation": "cdkV1", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "autopilot", + "description": "Test 6", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", + "Name": "Autopilot", + "DestinationDefinition": { + "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", + "Name": "AUTOPILOT", + "DisplayName": "Autopilot", + "Config": { + "cdkEnabled": true, + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": { + "apiKey": "dummyApiKey", + "customMappings": [ + { + "from": "0001", + "to": "Signup" + } + ], + "triggerId": "00XX" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1-rc.2" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1-rc.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index4.html", + "referrer": "", + "search": "", + "title": "", + "url": "http://localhost/tests/html/index4.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "abc@rudderstack.com", + "firstname": "Anuraj" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + }, + "integrations": { + "All": true + }, + "originalTimestamp": "2020-04-17T14:42:44.722Z", + "receivedAt": "2020-04-17T20:12:44.758+05:30", + "request_ip": "[::1]:53513", + "sentAt": "2020-04-17T14:42:44.722Z", + "timestamp": "2020-04-17T20:12:44.758+05:30", + "type": "identify", + "userId": "user12345" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api2.autopilothq.com/v1/contact", + "headers": { + "Accept": "application/json", + "autopilotapikey": "dummyApiKey", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "contact": { + "Email": "abc@rudderstack.com", + "FirstName": "Anuraj" + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "autopilot", + "description": "Test 7", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", + "Name": "Autopilot", + "DestinationDefinition": { + "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", + "Name": "AUTOPILOT", + "DisplayName": "Autopilot", + "Config": { + "cdkEnabled": true, + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": { + "apiKey": "dummyApiKey", + "customMappings": [ + { + "from": "0001", + "to": "Signup" + } + ], + "triggerId": "00XX" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1-rc.2" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1-rc.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index4.html", + "referrer": "", + "search": "", + "title": "", + "url": "http://localhost/tests/html/index4.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "testmp@rudderstack.com", + "firstname": "Test Kafka" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + }, + "event": "test track with property", + "integrations": { + "All": true + }, + "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", + "originalTimestamp": "2020-04-17T14:42:44.724Z", + "properties": { + "test_prop_1": "test prop", + "test_prop_2": 1232 + }, + "receivedAt": "2020-04-17T20:12:44.758+05:30", + "request_ip": "[::1]:53512", + "sentAt": "2020-04-17T14:42:44.725Z", + "timestamp": "2020-04-17T20:12:44.757+05:30", + "userId": "user12345" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 500, + "error": "Cannot read properties of undefined (reading 'destinationId')", + "statTags": { + "errorCategory": "transformation", + "destType": "AUTOPILOT", + "module": "destination", + "implementation": "cdkV1", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "autopilot", + "description": "Test 8", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", + "Name": "Autopilot", + "DestinationDefinition": { + "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", + "Name": "AUTOPILOT", + "DisplayName": "Autopilot", + "Config": { + "cdkEnabled": true, + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": { + "apiKey": "dummyApiKey", + "customMappings": [ + { + "from": "0001", + "to": "Signup" + } + ], + "triggerId": "00XX" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1-rc.2" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1-rc.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index4.html", + "referrer": "", + "search": "", + "title": "", + "url": "http://localhost/tests/html/index4.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "abc@rudderstack.com", + "firstname": "Anuraj" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + }, + "integrations": { + "All": true + }, + "originalTimestamp": "2020-04-17T14:42:44.722Z", + "receivedAt": "2020-04-17T20:12:44.758+05:30", + "request_ip": "[::1]:53513", + "sentAt": "2020-04-17T14:42:44.722Z", + "timestamp": "2020-04-17T20:12:44.758+05:30", + "type": "group", + "userId": "user12345" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 500, + "error": "Cannot read properties of undefined (reading 'destinationId')", + "statTags": { + "errorCategory": "transformation", + "destType": "AUTOPILOT", + "module": "destination", + "implementation": "cdkV1", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "autopilot", + "description": "Test 9", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", + "Name": "Autopilot", + "DestinationDefinition": { + "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", + "Name": "AUTOPILOT", + "DisplayName": "Autopilot", + "Config": { + "cdkEnabled": true, + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": { + "apiKey": "dummyApiKey", + "customMappings": [ + { + "from": "0001", + "to": "Signup" + } + ], + "triggerId": "00XX" + }, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1-rc.2" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1-rc.2" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index4.html", + "referrer": "", + "search": "", + "title": "", + "url": "http://localhost/tests/html/index4.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "email": "abc@rudderstack.com", + "firstname": "Anuraj" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + }, + "integrations": { + "All": true + }, + "originalTimestamp": "2020-04-17T14:42:44.722Z", + "receivedAt": "2020-04-17T20:12:44.758+05:30", + "request_ip": "[::1]:53513", + "sentAt": "2020-04-17T14:42:44.722Z", + "timestamp": "2020-04-17T20:12:44.758+05:30", + "type": "Tals", + "userId": "user12345" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 500, + "error": "Cannot read properties of undefined (reading 'destinationId')", + "statTags": { + "errorCategory": "transformation", + "destType": "AUTOPILOT", + "module": "destination", + "implementation": "cdkV1", + "feature": "processor" + } + } + ] + } + } + } +] \ No newline at end of file diff --git a/test/integrations/destinations/azure_event_hub/processor/data.ts b/test/integrations/destinations/azure_event_hub/processor/data.ts new file mode 100644 index 0000000000..8784bf4d60 --- /dev/null +++ b/test/integrations/destinations/azure_event_hub/processor/data.ts @@ -0,0 +1,825 @@ +export const data = [ + { + "name": "azure_event_hub", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "Name": "Azure Event Hub", + "DestinationDefinition": { + "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", + "Name": "AZURE_EVENT_HUB", + "DisplayName": "Azure Event Hub", + "Config": { + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": null, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "event": "Purchase", + "integrations": { + "All": true + }, + "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", + "originalTimestamp": "2020-05-21T10:23:15.984Z", + "properties": { + "currency": "USD", + "revenue": 100 + }, + "receivedAt": "2020-05-21T15:53:16.013+05:30", + "request_ip": "[::1]:59371", + "sentAt": "2020-05-21T10:23:15.985Z", + "timestamp": "2020-05-21T15:53:16.012+05:30", + "type": "track", + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 46, + "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "event": "Purchase", + "integrations": { + "All": true + }, + "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", + "originalTimestamp": "2020-05-21T10:23:15.984Z", + "properties": { + "currency": "USD", + "revenue": 100 + }, + "receivedAt": "2020-05-21T15:53:16.013+05:30", + "request_ip": "[::1]:59371", + "sentAt": "2020-05-21T10:23:15.985Z", + "timestamp": "2020-05-21T15:53:16.012+05:30", + "type": "track", + "userId": "user-12345" + }, + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 46, + "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "azure_event_hub", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "Name": "Azure Event Hub", + "DestinationDefinition": { + "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", + "Name": "AZURE_EVENT_HUB", + "DisplayName": "Azure Event Hub", + "Config": { + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": null, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "integrations": { + "All": true + }, + "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", + "originalTimestamp": "2020-05-21T10:23:15.975Z", + "properties": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:58616", + "sentAt": "2020-05-21T10:23:15.975Z", + "timestamp": "2020-05-21T15:53:16.014+05:30", + "type": "page", + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 47, + "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "integrations": { + "All": true + }, + "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", + "originalTimestamp": "2020-05-21T10:23:15.975Z", + "properties": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:58616", + "sentAt": "2020-05-21T10:23:15.975Z", + "timestamp": "2020-05-21T15:53:16.014+05:30", + "type": "page", + "userId": "user-12345" + }, + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 47, + "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "azure_event_hub", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "Name": "Azure Event Hub", + "DestinationDefinition": { + "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", + "Name": "AZURE_EVENT_HUB", + "DisplayName": "Azure Event Hub", + "Config": { + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": null, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "integrations": { + "All": true + }, + "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", + "originalTimestamp": "2020-05-21T10:23:15.979Z", + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:59372", + "sentAt": "2020-05-21T10:23:15.979Z", + "timestamp": "2020-05-21T15:53:16.014+05:30", + "type": "identify", + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 48, + "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "integrations": { + "All": true + }, + "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", + "originalTimestamp": "2020-05-21T10:23:15.979Z", + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:59372", + "sentAt": "2020-05-21T10:23:15.979Z", + "timestamp": "2020-05-21T15:53:16.014+05:30", + "type": "identify", + "userId": "user-12345" + }, + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 48, + "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "azure_event_hub", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "Name": "Azure Event Hub", + "DestinationDefinition": { + "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", + "Name": "AZURE_EVENT_HUB", + "DisplayName": "Azure Event Hub", + "Config": { + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": null, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "event": "test track without property", + "integrations": { + "All": true + }, + "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", + "originalTimestamp": "2020-05-21T10:23:15.981Z", + "properties": {}, + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:59374", + "sentAt": "2020-05-21T10:23:15.981Z", + "timestamp": "2020-05-21T15:53:16.014+05:30", + "type": "track", + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 49, + "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "event": "test track without property", + "integrations": { + "All": true + }, + "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", + "originalTimestamp": "2020-05-21T10:23:15.981Z", + "properties": {}, + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:59374", + "sentAt": "2020-05-21T10:23:15.981Z", + "timestamp": "2020-05-21T15:53:16.014+05:30", + "type": "track", + "userId": "user-12345" + }, + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 49, + "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "azure_event_hub", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "Name": "Azure Event Hub", + "DestinationDefinition": { + "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", + "Name": "AZURE_EVENT_HUB", + "DisplayName": "Azure Event Hub", + "Config": { + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": null, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "event": "test track with property", + "integrations": { + "All": true + }, + "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", + "originalTimestamp": "2020-05-21T10:23:15.982Z", + "properties": { + "test_prop_1": "test prop", + "test_prop_2": 1232 + }, + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:59373", + "sentAt": "2020-05-21T10:23:15.983Z", + "timestamp": "2020-05-21T15:53:16.013+05:30", + "type": "track", + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 50, + "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "event": "test track with property", + "integrations": { + "All": true + }, + "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", + "originalTimestamp": "2020-05-21T10:23:15.982Z", + "properties": { + "test_prop_1": "test prop", + "test_prop_2": 1232 + }, + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:59373", + "sentAt": "2020-05-21T10:23:15.983Z", + "timestamp": "2020-05-21T15:53:16.013+05:30", + "type": "track", + "userId": "user-12345" + }, + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 50, + "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + }, + "statusCode": 200 + } + ] + } + } + } +] \ No newline at end of file diff --git a/test/integrations/destinations/criteo_audience/processor/data.ts b/test/integrations/destinations/criteo_audience/processor/data.ts new file mode 100644 index 0000000000..e7fcbcad9c --- /dev/null +++ b/test/integrations/destinations/criteo_audience/processor/data.ts @@ -0,0 +1,1638 @@ +export const data = [ + { + "name": "criteo_audience", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": { + "add": [ + { + "madid": "sample_madid", + "email": "alex@email.com" + }, + { + "madid": "sample_madid_1", + "email": "amy@email.com" + }, + { + "madid": "sample_madid_2", + "email": "van@email.com" + }, + { + "madid": "sample_madid", + "email": "alex@email.com" + }, + { + "madid": "sample_madid_1", + "email": "amy@email.com" + }, + { + "madid": "sample_madid_2", + "email": "van@email.com" + } + ] + } + }, + "context": { + "ip": "14.5.67.21", + "library": { + "name": "http" + } + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34894", + "audienceType": "email" + }, + "ID": "sample_destinationId" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PATCH", + "endpoint": "https://api.criteo.com/2022-10/audiences/34894/contactlist", + "headers": { + "Authorization": "Bearer success_access_token", + "Content-Type": "application/json", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "type": "ContactlistAmendment", + "attributes": { + "operation": "add", + "identifierType": "email", + "internalIdentifiers": false, + "identifiers": [ + "alex@email.com", + "amy@email.com", + "van@email.com", + "alex@email.com", + "amy@email.com", + "van@email.com" + ] + } + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": { + "add": [ + { + "madid": "sample_madid" + }, + { + "madid": "sample_madid_1" + }, + { + "madid": "sample_madid_2" + }, + { + "madid": "sample_madid_10" + }, + { + "madid": "sample_madid_13" + }, + { + "madid": "sample_madid_11" + }, + { + "madid": "sample_madid_12" + } + ], + "remove": [ + { + "madid": "sample_madid_3" + }, + { + "madid": "sample_madid_4" + }, + { + "madid": "sample_madid_5" + }, + { + "madid": "sample_madid_6" + }, + { + "madid": "sample_madid_7" + }, + { + "madid": "sample_madid_8" + }, + { + "madid": "sample_madid_9" + } + ] + } + }, + "context": { + "ip": "14.5.67.21" + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34893", + "audienceType": "madid" + }, + "ID": "sample_destinationId" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PATCH", + "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", + "headers": { + "Authorization": "Bearer success_access_token", + "Content-Type": "application/json", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "type": "ContactlistAmendment", + "attributes": { + "operation": "add", + "identifierType": "madid", + "internalIdentifiers": false, + "identifiers": [ + "sample_madid", + "sample_madid_1", + "sample_madid_2", + "sample_madid_10", + "sample_madid_13", + "sample_madid_11", + "sample_madid_12" + ] + } + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 200 + }, + { + "output": { + "version": "1", + "type": "REST", + "method": "PATCH", + "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", + "headers": { + "Authorization": "Bearer success_access_token", + "Content-Type": "application/json", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "type": "ContactlistAmendment", + "attributes": { + "operation": "remove", + "identifierType": "madid", + "internalIdentifiers": false, + "identifiers": [ + "sample_madid_3", + "sample_madid_4", + "sample_madid_5", + "sample_madid_6", + "sample_madid_7", + "sample_madid_8", + "sample_madid_9" + ] + } + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": { + "add": [ + { + "madid": "sample_madid", + "email": "alex@email.com", + "identityLink": "text.com", + "gum": "sdjfds" + }, + { + "madid": "sample_madid_1", + "email": "amy@email.com", + "identityLink": "yahoo.com", + "gum": "sdjfds" + }, + { + "madid": "sample_madid_2", + "email": "van@email.com", + "identityLink": "abc.com", + "gum": "sdjfds" + } + ] + } + }, + "context": { + "ip": "14.5.67.21", + "library": { + "name": "http" + } + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34894", + "audienceType": "email" + }, + "ID": "sample_destinationId" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PATCH", + "endpoint": "https://api.criteo.com/2022-10/audiences/34894/contactlist", + "headers": { + "Authorization": "Bearer success_access_token", + "Content-Type": "application/json", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "type": "ContactlistAmendment", + "attributes": { + "operation": "add", + "identifierType": "email", + "internalIdentifiers": false, + "identifiers": [ + "alex@email.com", + "amy@email.com", + "van@email.com" + ] + } + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": { + "add": [ + { + "madid": "sample_madid", + "email": "alex@email.com", + "identityLink": "text.com", + "gum": "sdjfds" + }, + { + "madid": "sample_madid_1", + "email": "amy@email.com", + "identityLink": "yahoo.com", + "gum": "sdjfds" + }, + { + "madid": "sample_madid_2", + "email": "van@email.com", + "identityLink": "abc.com", + "gum": "sdjfds" + } + ] + } + }, + "context": { + "ip": "14.5.67.21" + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34895", + "audienceType": "madid" + }, + "ID": "sample_destinationId" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PATCH", + "endpoint": "https://api.criteo.com/2022-10/audiences/34895/contactlist", + "headers": { + "Authorization": "Bearer success_access_token", + "Content-Type": "application/json", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "type": "ContactlistAmendment", + "attributes": { + "operation": "add", + "identifierType": "madid", + "internalIdentifiers": false, + "identifiers": [ + "sample_madid", + "sample_madid_1", + "sample_madid_2" + ] + } + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": { + "add": [ + { + "madid": "sample_madid", + "email": "alex@email.com", + "identityLink": "text.com", + "gum": "sdjfds" + }, + { + "madid": "sample_madid_1", + "email": "amy@email.com", + "identityLink": "yahoo.com", + "gum": "sdjfds" + }, + { + "madid": "sample_madid_2", + "email": "van@email.com", + "identityLink": "abc.com", + "gum": "sdjfds" + } + ], + "remove": [ + { + "madid": "sample_madid", + "email": "alex@email.com", + "identityLink": "text.com", + "gum": "sdjfds" + } + ] + } + }, + "context": { + "ip": "14.5.67.21" + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34893", + "audienceType": "madid" + }, + "ID": "sample_destinationId" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PATCH", + "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", + "headers": { + "Authorization": "Bearer success_access_token", + "Content-Type": "application/json", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "type": "ContactlistAmendment", + "attributes": { + "operation": "add", + "identifierType": "madid", + "internalIdentifiers": false, + "identifiers": [ + "sample_madid", + "sample_madid_1", + "sample_madid_2" + ] + } + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 200 + }, + { + "output": { + "version": "1", + "type": "REST", + "method": "PATCH", + "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", + "headers": { + "Authorization": "Bearer success_access_token", + "Content-Type": "application/json", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "type": "ContactlistAmendment", + "attributes": { + "operation": "remove", + "identifierType": "madid", + "internalIdentifiers": false, + "identifiers": [ + "sample_madid" + ] + } + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": { + "add": [ + { + "madid": "sample_madid", + "email": "alex@email.com", + "identityLink": "text.com", + "gum": "sdjfds" + }, + { + "madid": "sample_madid_1", + "email": "amy@email.com", + "identityLink": "yahoo.com", + "gum": "sdjfds" + }, + { + "madid": "sample_madid_2", + "email": "van@email.com", + "identityLink": "abc.com", + "gum": "sdjfds" + } + ], + "remove": [ + { + "madid": "sample_madid", + "email": "alex@email.com", + "identityLink": "text.com", + "gum": "sdjfds" + } + ] + } + }, + "context": { + "ip": "14.5.67.21" + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34893", + "audienceType": "identityLink" + }, + "ID": "sample_destinationId" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PATCH", + "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", + "headers": { + "Authorization": "Bearer success_access_token", + "Content-Type": "application/json", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "type": "ContactlistAmendment", + "attributes": { + "operation": "add", + "identifierType": "identityLink", + "internalIdentifiers": false, + "identifiers": [ + "text.com", + "yahoo.com", + "abc.com" + ] + } + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 200 + }, + { + "output": { + "version": "1", + "type": "REST", + "method": "PATCH", + "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", + "headers": { + "Authorization": "Bearer success_access_token", + "Content-Type": "application/json", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "type": "ContactlistAmendment", + "attributes": { + "operation": "remove", + "identifierType": "identityLink", + "internalIdentifiers": false, + "identifiers": [ + "text.com" + ] + } + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 6", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": { + "add": [ + { + "madid": "sample_madid", + "email": "alex@email.com", + "identityLink": "text.com", + "gum": "sample_gum1" + }, + { + "madid": "sample_madid_1", + "email": "amy@email.com", + "identityLink": "yahoo.com", + "gum": "sample_gum2" + }, + { + "madid": "sample_madid_2", + "email": "van@email.com", + "identityLink": "abc.com", + "gum": "sample_gum3" + } + ], + "remove": [ + { + "madid": "sample_madid", + "email": "alex@email.com", + "identityLink": "text.com", + "gum": "sample_gum3" + } + ] + } + }, + "context": { + "ip": "14.5.67.21" + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34893", + "audienceType": "gum", + "gumCallerId": "329739" + }, + "ID": "sample_destinationId" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "PATCH", + "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", + "headers": { + "Authorization": "Bearer success_access_token", + "Content-Type": "application/json", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "type": "ContactlistAmendment", + "attributes": { + "operation": "add", + "identifierType": "gum", + "internalIdentifiers": false, + "gumCallerId": "329739", + "identifiers": [ + "sample_gum1", + "sample_gum2", + "sample_gum3" + ] + } + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 200 + }, + { + "output": { + "version": "1", + "type": "REST", + "method": "PATCH", + "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", + "headers": { + "Authorization": "Bearer success_access_token", + "Content-Type": "application/json", + "Accept": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "data": { + "type": "ContactlistAmendment", + "attributes": { + "operation": "remove", + "identifierType": "gum", + "internalIdentifiers": false, + "gumCallerId": "329739", + "identifiers": [ + "sample_gum3" + ] + } + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 7", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "message": { + "userId": "user 1", + "type": "identify", + "properties": { + "listData": { + "add": [ + { + "madid": "sample_madid", + "email": "alex@email.com", + "identityLink": "text.com", + "gum": "sdjfds" + }, + { + "madid": "sample_madid_1", + "email": "amy@email.com", + "identityLink": "yahoo.com", + "gum": "sdjfds" + }, + { + "madid": "sample_madid_2", + "email": "van@email.com", + "identityLink": "abc.com", + "gum": "sdjfds" + } + ] + } + }, + "context": { + "ip": "14.5.67.21", + "library": { + "name": "http" + } + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34893", + "audienceType": "email" + }, + "ID": "sample_destinationId" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 400, + "error": "Event type identify is not supported", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "CRITEO_AUDIENCE", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 8", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34893", + "audienceType": "email" + }, + "ID": "sample_destinationId" + }, + "message": { + "type": "audiencelist", + "sentAt": "2021-01-03T17:02:53.195Z", + "userId": "user@27", + "channel": "web", + "context": { + "os": { + "name": "", + "version": "1.12.3" + }, + "app": { + "name": "RudderLabs JavaScript SDK", + "build": "1.0.0", + "version": "1.1.11", + "namespace": "com.rudderlabs.javascript" + }, + "traits": { + "brand": "John Players", + "price": "15000", + "firstName": "Test", + "email": "test@rudderstack.com", + "userId": "user@27" + }, + "locale": "en-US", + "device": { + "token": "token", + "id": "id", + "type": "ios" + }, + "screen": { + "density": 2 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.11" + }, + "campaign": {}, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0" + }, + "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", + "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", + "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", + "originalTimestamp": "2021-01-03T17:02:53.193Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 400, + "error": "Message properties is not present. Aborting message.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "CRITEO_AUDIENCE", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 9", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34893", + "audienceType": "email" + }, + "ID": "sample_destinationId" + }, + "message": { + "event": "add_to_Cart", + "type": "track", + "sentAt": "2021-01-03T17:02:53.195Z", + "userId": "user@27", + "channel": "web", + "properties": { + "brand": "Zara", + "price": "12000" + }, + "context": { + "os": { + "name": "", + "version": "" + }, + "app": { + "name": "RudderLabs JavaScript SDK", + "build": "1.0.0", + "version": "1.1.11", + "namespace": "com.rudderlabs.javascript" + }, + "locale": "en-US", + "screen": { + "density": 2 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.11" + }, + "campaign": {}, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0" + }, + "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", + "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", + "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", + "originalTimestamp": "2021-01-03T17:02:53.193Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 400, + "error": "listData is not present inside properties. Aborting message.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "CRITEO_AUDIENCE", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 10", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": {} + }, + "context": { + "ip": "14.5.67.21", + "library": { + "name": "http" + } + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34893", + "audienceType": "email" + }, + "ID": "sample_destinationId" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 400, + "error": "Payload could not be populated", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "CRITEO_AUDIENCE", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 11", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34893", + "audienceType": "email" + }, + "ID": "sample_destinationId" + }, + "message": { + "event": "add_to_Cart", + "sentAt": "2021-01-03T17:02:53.195Z", + "userId": "user@27", + "channel": "web", + "properties": { + "brand": "Zara", + "price": "12000" + }, + "context": { + "os": { + "name": "", + "version": "" + }, + "app": { + "name": "RudderLabs JavaScript SDK", + "build": "1.0.0", + "version": "1.1.11", + "namespace": "com.rudderlabs.javascript" + }, + "locale": "en-US", + "screen": { + "density": 2 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.11" + }, + "campaign": {}, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0" + }, + "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", + "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", + "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", + "originalTimestamp": "2021-01-03T17:02:53.193Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 400, + "error": "Message Type is not present. Aborting message.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "CRITEO_AUDIENCE", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 12", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "destination": { + "Config": { + "audienceId": "34893", + "audienceType": "gum" + }, + "ID": "sample_destinationId" + }, + "message": { + "event": "add_to_Cart", + "sentAt": "2021-01-03T17:02:53.195Z", + "userId": "user@27", + "type": "audiencelist", + "channel": "web", + "properties": { + "listData": { + "add": [ + { + "madid": "sample_madid", + "email": "alex@email.com", + "identityLink": "text.com", + "gum": "sample_gum1" + }, + { + "madid": "sample_madid_1", + "email": "amy@email.com", + "identityLink": "yahoo.com", + "gum": "sample_gum2" + }, + { + "madid": "sample_madid_2", + "email": "van@email.com", + "identityLink": "abc.com", + "gum": "sample_gum3" + } + ] + }, + "brand": "Zara", + "price": "12000" + }, + "context": { + "os": { + "name": "", + "version": "" + }, + "app": { + "name": "RudderLabs JavaScript SDK", + "build": "1.0.0", + "version": "1.1.11", + "namespace": "com.rudderlabs.javascript" + }, + "locale": "en-US", + "screen": { + "density": 2 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.11" + }, + "campaign": {}, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0" + }, + "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", + "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", + "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", + "originalTimestamp": "2021-01-03T17:02:53.193Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 400, + "error": "gumCallerId is required for audience type gum", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "configuration", + "destType": "CRITEO_AUDIENCE", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "criteo_audience", + "description": "Test 13", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "message": { + "userId": "user 1", + "type": "audiencelist", + "properties": { + "listData": { + "add": [ + { + "madid": "sample_madid", + "email": "alex@email.com", + "identityLink": "text.com", + "gum": "sdjfds" + }, + { + "madid": "sample_madid_1", + "email": "amy@email.com", + "identityLink": "yahoo.com", + "gum": "sdjfds" + }, + { + "madid": "sample_madid_2", + "identityLink": "abc.com", + "gum": "sdjfds" + } + ] + } + }, + "context": { + "ip": "14.5.67.21", + "library": { + "name": "http" + } + }, + "timestamp": "2020-02-02T00:23:09.544Z" + }, + "destination": { + "Config": { + "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", + "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", + "audienceId": "34894", + "audienceType": "email" + }, + "ID": "sample_destinationId" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "metadata": { + "secret": { + "accessToken": "success_access_token" + } + }, + "statusCode": 400, + "error": "Required property for email type audience is not available in an object", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "CRITEO_AUDIENCE", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + } +] \ No newline at end of file diff --git a/test/integrations/destinations/facebook_pixel/processor/data.ts b/test/integrations/destinations/facebook_pixel/processor/data.ts new file mode 100644 index 0000000000..530cafaf5e --- /dev/null +++ b/test/integrations/destinations/facebook_pixel/processor/data.ts @@ -0,0 +1,5646 @@ +export const data = [ + { + "name": "facebook_pixel", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "channel": "mobile", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": " aBc@gmail.com ", + "address": { + "zip": 1234 + }, + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "event": "spin_result", + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0 + }, + "timestamp": "2019-09-01T15:46:51.693229+05:30", + "type": "track" + }, + "destination": { + "Config": { + "limitedDataUsage": true, + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "removeExternalId": true, + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": " aBc@gmail.com ", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "event": "spin_result", + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0 + }, + "timestamp": "2019-09-01T15:46:51.693229+05:30", + "type": "group" + }, + "destination": { + "Config": { + "limitedDataUsage": true, + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "traits": { + "name": "Test" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "properties": { + "plan": "standard plan", + "name": "rudder test" + }, + "type": "identify", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "traits": { + "name": "Rudder Test", + "email": "abc@gmail.com", + "firstname": "Rudder", + "lastname": "Test", + "phone": 9000000000, + "gender": "female" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "properties": { + "plan": "standard plan", + "name": "rudder test" + }, + "type": "identify", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": true, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "traits": { + "name": "Rudder Test", + "email": "abc@gmail.com", + "phone": 9000000000, + "address": { + "postalCode": 1234 + }, + "gender": "female" + }, + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "properties": { + "plan": "standard plan", + "name": "rudder test" + }, + "type": "identify", + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "123456", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": true, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": "abc@gmail.com", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "event": "spin_result", + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0, + "email": "abc@gmail.com" + }, + "timestamp": "2019-09-01T15:46:51.693229+05:30", + "type": "track" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 6", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": "abc@gmail.com", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "event": "spin_result", + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0, + "email": "abc@gmail.com" + }, + "timestamp": "2019-09-01T15:46:51.693229+05:30", + "type": "track" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "email" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 7", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": "abc@gmail.com", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "event": "spin_result", + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0, + "email": "abc@gmail.com", + "phone": 9000000000 + }, + "timestamp": "2019-09-01T15:46:51.693229+05:30", + "type": "track" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "phone", + "blacklistPiiHash": false + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "email" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 8", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": "abc@gmail.com", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "event": "spin_result", + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0, + "email": "abc@gmail.com", + "phone": 9000000000 + }, + "timestamp": "2019-09-01T15:46:51.693229+05:30", + "type": "track" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "phone", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "email" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 9", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "page", + "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", + "timestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "properties": { + "path": "/abc", + "referrer": "xyz", + "search": "def", + "title": "ghi", + "url": "jkl" + }, + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "phone", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "email" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 10", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "page", + "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "properties": { + "path": "/abc", + "referrer": "xyz", + "search": "def", + "title": "ghi", + "url": "jkl" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "phone", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "email" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 11", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product list viewed", + "properties": { + "phone": 9000000000, + "email": "abc@gmail.com", + "category": "cat 1", + "list_id": "1234", + "filters": [ + { + "type": "department", + "value": "beauty" + }, + { + "type": "price", + "value": "under" + } + ], + "sorts": [ + { + "type": "price", + "value": "desc" + } + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "phone", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "email" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 12", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product list viewed", + "properties": { + "phone": 9000000000, + "email": "abc@gmail.com", + "category": "cat 1", + "list_id": "1234", + "filters": [ + { + "type": "department", + "value": "beauty" + }, + { + "type": "price", + "value": "under" + } + ], + "sorts": [ + { + "type": "price", + "value": "desc" + } + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 13", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product list viewed", + "properties": { + "email": "abc@gmail.com", + "quantity": 2, + "category": "cat 1", + "list_id": "1234", + "contentName": "nutrition", + "value": 18.9, + "filters": [ + { + "type": "department", + "value": "beauty" + }, + { + "type": "price", + "value": "under" + } + ], + "sorts": [ + { + "type": "price", + "value": "desc" + } + ], + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "productDimension": "My Product Dimension", + "productMetric": "My Product Metric", + "position": 10 + }, + { + "product_id": "507f1f77bcf86cdef799439011", + "productDimension": "My Product Dimension1", + "productMetric": "My Product Metric1", + "position": -10 + } + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 14", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "my product list", + "properties": { + "email": "abc@gmail.com", + "quantity": 2, + "category": "cat 1", + "list_id": "1234", + "filters": [ + { + "type": "department", + "value": "beauty" + }, + { + "type": "price", + "value": "under" + } + ], + "sorts": [ + { + "type": "price", + "value": "desc" + } + ], + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "productDimension": "My Product Dimension", + "productMetric": "My Product Metric", + "position": 10 + }, + { + "product_id": "507f1f77bcf86cdef799439011", + "productDimension": "My Product Dimension1", + "productMetric": "My Product Metric1", + "position": -10 + } + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "removeExternalId": false, + "eventsToEvents": [ + { + "from": "My product list", + "to": "ViewContent" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "list_id" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 15", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product viewed", + "properties": { + "currency": "CAD", + "quantity": 1, + "price": 24.75, + "name": "my product 1", + "category": "clothing", + "sku": "p-298", + "testDimension": true, + "testMetric": true, + "position": 4.5 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "removeExternalId": true, + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 16", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product added", + "properties": { + "currency": "CAD", + "quantity": 1, + "value": 24.75, + "category": "cat 1", + "id": "p-298", + "testDimension": true, + "testMetric": true, + "position": 4.5 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "removeExternalId": false, + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.value", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 17", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order completed", + "properties": { + "order_id": "rudderstackorder1", + "total": 99.99, + "revenue": 12.24, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "contentName": "all about nutrition", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298" + }, + { + "quantity": 3, + "price": 24.75, + "name": "other product", + "sku": "p-299" + } + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 18", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "checkout started", + "properties": { + "currency": "CAD", + "category": "clothing", + "contentName": "abc", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298" + }, + { + "quantity": 1, + "price": 24.75, + "name": "my product 2", + "sku": "p-299" + } + ], + "step": 1, + "paymentMethod": "Visa", + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "contentName" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 19", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "dataProcessingOptions": [ + [ + "LDU" + ], + 1, + 1000 + ], + "fbc": "fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890", + "fbp": "fb.1.1554763741205.234567890", + "fb_login_id": "fb_id", + "lead_id": "lead_id", + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": "abc@gmail.com", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "event": "spin_result", + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0 + }, + "timestamp": "2019-09-01T15:46:51.693229+05:30", + "type": "track" + }, + "destination": { + "Config": { + "limitedDataUSage": true, + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 20", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "dataProcessingOptions": [ + [ + "LDU" + ], + 1, + 1000 + ], + "fbc": "fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890", + "fbp": "fb.1.1554763741205.234567890", + "fb_login_id": "fb_id", + "lead_id": "lead_id", + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": "abc@gmail.com", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "event": "spin_result", + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0 + }, + "timestamp": "2019-09-01T15:46:51.693229+05:30", + "type": "track" + }, + "destination": { + "Config": { + "limitedDataUSage": false, + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 21", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "products searched", + "properties": { + "product_id": "p-298", + "quantity": 2, + "price": 18.9, + "category": "health", + "value": 18.9, + "query": "HDMI cable" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 22", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "products searched", + "properties": { + "query": "HDMI cable" + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "testDestination": true, + "testEventCode": "TEST1001", + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 23", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "page", + "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "properties": { + "path": "/abc", + "referrer": "xyz", + "search": "def", + "title": "ghi", + "url": "jkl" + }, + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "standardPageCall": true, + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "phone", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "url" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "email" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 24", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": "abc@gmail.com", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "event": "track page", + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0 + }, + "timestamp": "2019-09-01T15:46:51.693229+05:30", + "type": "track" + }, + "destination": { + "Config": { + "limitedDataUsage": true, + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "track page", + "to": "PageView" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "additional_bet_index" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 25", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "my product list", + "properties": { + "email": "abc@gmail.com", + "quantity": 2, + "category": "cat 1", + "list_id": "1234", + "filters": [ + { + "type": "department", + "value": "beauty" + }, + { + "type": "price", + "value": "under" + } + ], + "sorts": [ + { + "type": "price", + "value": "desc" + } + ], + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "productDimension": "My Product Dimension", + "productMetric": "My Product Metric", + "position": 10 + }, + { + "product_id": "507f1f77bcf86cdef799439011", + "productDimension": "My Product Dimension1", + "productMetric": "My Product Metric1", + "position": -10 + } + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "My product list", + "to": "Schedule" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "list_id" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 26", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": "abc@gmail.com", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0 + }, + "timestamp": "2019-09-01T15:46:51.693229+05:30", + "type": "track" + }, + "destination": { + "Config": { + "limitedDataUsage": true, + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 27", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product added", + "properties": { + "currency": "CAD", + "quantity": 1, + "value": "35.753", + "category": "cat 1", + "id": "p-298", + "testDimension": true, + "testMetric": true, + "position": 4.5 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.value", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 28", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product added", + "properties": { + "currency": "CAD", + "quantity": 1, + "value": "35.7A3", + "category": "cat 1", + "id": "p-298", + "testDimension": true, + "testMetric": true, + "position": 4.5 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.value", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 29", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product added", + "properties": { + "currency": "CAD", + "quantity": 1, + "value": "ABC", + "category": "cat 1", + "id": "p-298", + "testDimension": true, + "testMetric": true, + "position": 4.5 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.value", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 30", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order completed", + "properties": { + "category": [ + "clothing", + "fishing" + ], + "order_id": "rudderstackorder1", + "total": 99.99, + "revenue": 12.24, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298" + }, + { + "quantity": 3, + "price": 24.75, + "name": "other product", + "sku": "p-299" + } + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 31", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order completed", + "properties": { + "category": 100, + "order_id": "rudderstackorder1", + "total": 99.99, + "revenue": 12.24, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298" + }, + { + "quantity": 3, + "price": 24.75, + "name": "other product", + "sku": "p-299" + } + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 32", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order completed", + "properties": { + "category": { + "category1": "1" + }, + "order_id": "rudderstackorder1", + "total": 99.99, + "revenue": 12.24, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298" + }, + { + "quantity": 3, + "price": 24.75, + "name": "other product", + "sku": "p-299" + } + ] + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 33", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": "abc@gmail.com", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "event": "spin_result", + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0 + }, + "timestamp": "2019-09-01T15:46:51.693229+05:30", + "type": "track" + }, + "destination": { + "Config": { + "limitedDataUsage": true, + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "spin_result", + "to": "Schedule" + }, + { + "to": "Schedule" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 34", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": "abc@gmail.com", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "event": "spin_result", + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0 + }, + "timestamp": "2019-08-24T15:46:51.693229+05:30", + "type": "track" + }, + "destination": { + "Config": { + "limitedDataUsage": true, + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "spin_result", + "to": "Schedule" + }, + { + "to": "Schedule" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 35", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", + "destination_props": { + "Fb": { + "app_id": "RudderFbApp" + } + }, + "context": { + "device": { + "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", + "manufacturer": "Xiaomi", + "model": "Redmi 6", + "name": "xiaomi" + }, + "network": { + "carrier": "Banglalink" + }, + "os": { + "name": "android", + "version": "8.1.0" + }, + "screen": { + "height": "100", + "density": 50 + }, + "traits": { + "email": "abc@gmail.com", + "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" + } + }, + "event": "spin_result", + "integrations": { + "All": true + }, + "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", + "properties": { + "revenue": 400, + "additional_bet_index": 0 + }, + "originalTimestamp": "2019-04-16T15:50:51.693229+05:30", + "type": "track" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "accessToken": "validToken", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": true, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 36", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "products searched", + "properties": { + "query": { + "key1": "HDMI cable" + } + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 37", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "products searched", + "properties": { + "query": 50 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 38", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "url": "https://theminimstory.com/collections/summer-of-pearls?utm_source=facebook&utm_medium=paidsocial&utm_campaign=carousel&utm_content=ad1-jul&fbclid=IwAR2SsDcjzd_TLZN-e93kxOeGBYO4pQ3AiyeXSheHW5emDeLw8uTvo6lTMPI" + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "checkout started", + "properties": { + "currency": "CAD", + "category": "clothing", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298" + }, + { + "quantity": 1, + "price": 24.75, + "name": "my product 2", + "sku": "p-299" + } + ], + "step": 1, + "paymentMethod": "Visa", + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 39", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "url": "https://theminimstory.com/collections/summer-of-pearls?utm_source=facebook&utm_medium=paidsocial&utm_campaign=carousel&utm_content=ad1-jul&fbclid=IwAR2SsDcjzd_TLZN-e93kxOeGBYO4pQ3AiyeXSheHW5emDeLw8uTvo6lTMPI" + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": { + "name": "checkout started" + }, + "properties": { + "currency": "CAD", + "category": "clothing", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298" + }, + { + "quantity": 1, + "price": 24.75, + "name": "my product 2", + "sku": "p-299" + } + ], + "step": 1, + "paymentMethod": "Visa", + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 40", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "url": "url in wrong format" + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "checkout started", + "properties": { + "currency": "CAD", + "category": "clothing", + "products": [ + { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298" + }, + { + "quantity": 1, + "price": 24.75, + "name": "my product 2", + "sku": "p-299" + } + ], + "step": 1, + "paymentMethod": "Visa", + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 41", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product viewed", + "properties": { + "currency": "CAD", + "quantity": 1, + "price": 24.75, + "name": "my product 1", + "category": "clothing", + "sku": "p-298", + "testDimension": true, + "testMetric": true, + "position": 4.5 + }, + "integrations": { + "All": true, + "Facebook_Pixel": { + "contentType": "sending dedicated content type for this particular payload" + } + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "removeExternalId": true, + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 42", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product viewed", + "properties": { + "currency": "CAD", + "quantity": 1, + "price": 24.75, + "value": 18.9, + "name": "my product 1", + "category": "clothing", + "sku": "p-298", + "testDimension": true, + "testMetric": true, + "position": 4.5 + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "removeExternalId": true, + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.value", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 43", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "order completed", + "properties": { + "order_id": "rudderstackorder1", + "total": 99.99, + "revenue": 12.24, + "shipping": 13.99, + "tax": 20.99, + "currency": "INR", + "contentName": "all about nutrition", + "products": { + "quantity": 1, + "price": 24.75, + "name": "my product", + "sku": "p-298" + } + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "categoryToContent": [ + { + "from": "clothing", + "to": "product" + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 44", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "product list viewed", + "properties": { + "email": "abc@gmail.com", + "quantity": 2, + "category": "cat 1", + "list_id": "1234", + "contentName": "nutrition", + "value": 18.9, + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "productDimension": "My Product Dimension", + "productMetric": "My Product Metric", + "position": 10 + }, + [ + { + "product_id": "507f1f77bcf86cdef799439011", + "productDimension": "My Product Dimension1", + "productMetric": "My Product Metric1", + "position": -10 + } + ] + ], + "testDimension": true, + "testMetric": true + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "accessToken": "09876", + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "eventCustomProperties": [ + { + "eventCustomProperties": "" + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 45", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "custom", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "pixelId": "dummyPixelId", + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 46", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "type": "track", + "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", + "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", + "anonymousId": "00000000000000000000000000", + "userId": "12345", + "event": "custom", + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "destination": { + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": true + } + ], + "valueFieldIdentifier": "", + "advancedMapping": false, + "whitelistPiiProperties": [ + { + "whitelistPiiProperties": "" + } + ] + }, + "Enabled": true + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_pixel", + "description": "Test 47", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "metadata": { + "jobId": 12 + }, + "destination": { + "secretConfig": {}, + "Config": { + "blacklistPiiProperties": [ + { + "blacklistPiiProperties": "", + "blacklistPiiHash": false + } + ], + "pixelId": "dummyPixelId", + "eventsToEvents": [ + { + "from": "", + "to": "" + } + ], + "valueFieldIdentifier": "properties.price", + "advancedMapping": false, + "whitelistPiiProperties": [], + "limitedDataUSage": false, + "accessToken": "dummyAccessToken", + "testDestination": false, + "testEventCode": "", + "standardPageCall": false, + "blacklistedEvents": [], + "whitelistedEvents": [], + "eventFilteringOption": "disable", + "removeExternalId": false, + "useUpdatedMapping": false, + "oneTrustCookieCategories": [], + "useNativeSDK": false, + "eventDelivery": false, + "eventDeliveryTS": 1686748039135 + }, + "liveEventsConfig": { + "eventDelivery": false, + "eventDeliveryTS": 1686748039135 + }, + "id": "destId1", + "workspaceId": "wsp2", + "transformations": [], + "isConnectionEnabled": true, + "isProcessorEnabled": true, + "name": "san-fb_pixel", + "enabled": true, + "deleted": false, + "createdAt": "2023-06-06T13:36:08.579Z", + "updatedAt": "2023-06-14T13:07:19.136Z", + "revisionId": "revId2", + "secretVersion": 3 + }, + "message": { + "type": "page", + "sentAt": "2019-09-01T15:46:51.000Z", + "userId": "user@19", + "channel": "web", + "context": { + "os": { + "name": "", + "version": "" + }, + "app": { + "name": "RudderLabs JavaScript SDK", + "version": "dev-snapshot", + "namespace": "com.rudderlabs.javascript" + }, + "page": { + "url": "http://127.0.0.1:8888/", + "path": "/", + "title": "Document", + "search": "", + "tab_url": "http://127.0.0.1:8888/", + "referrer": "http://127.0.0.1:8888/", + "initial_referrer": "$direct", + "referring_domain": "127.0.0.1:8888", + "initial_referring_domain": "" + }, + "locale": "en-GB", + "screen": { + "width": 1728, + "height": 1117, + "density": 2, + "innerWidth": 547, + "innerHeight": 915 + }, + "traits": { + "name": false, + "source": "rudderstack" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "dev-snapshot" + }, + "campaign": {}, + "sessionId": 1687769234506, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" + }, + "rudderId": "6bbfd003-c074-4ee9-8674-c132ded9ff04", + "timestamp": "2019-09-01T15:46:51.000Z", + "properties": { + "url": "http://127.0.0.1:8888/", + "path": "/", + "title": "Document", + "search": "", + "tab_url": "http://127.0.0.1:8888/", + "referrer": "http://127.0.0.1:8888/", + "initial_referrer": "$direct", + "referring_domain": "127.0.0.1:8888", + "initial_referring_domain": "" + }, + "receivedAt": "2019-09-01T15:46:51.000Z", + "request_ip": "49.206.54.243", + "anonymousId": "700ab220-faad-4cdf-8484-63e4c6bce6fe", + "integrations": { + "All": true + }, + "originalTimestamp": "2019-09-01T15:46:51.000Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "metadata": { + "jobId": 12 + }, + "statusCode": 400, + "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_PIXEL", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + } +] \ No newline at end of file From 9b53e158fdd82bacb810629d8becc9d24e3ec7af Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Mon, 16 Oct 2023 06:16:03 +0530 Subject: [PATCH 4/9] test: add proc cases for blueshift,cm,confluent,courier,fboc --- .../destinations/blueshift/processor/data.ts | 1997 +++++++++++++++++ .../campaign_manager/processor/data.ts | 825 +++++++ .../confluent_cloud/processor/data.ts | 825 +++++++ .../destinations/courier/processor/data.ts | 333 +++ .../processor/data.ts | 1775 +++++++++++++++ 5 files changed, 5755 insertions(+) create mode 100644 test/integrations/destinations/blueshift/processor/data.ts create mode 100644 test/integrations/destinations/campaign_manager/processor/data.ts create mode 100644 test/integrations/destinations/confluent_cloud/processor/data.ts create mode 100644 test/integrations/destinations/courier/processor/data.ts create mode 100644 test/integrations/destinations/facebook_offline_conversions/processor/data.ts diff --git a/test/integrations/destinations/blueshift/processor/data.ts b/test/integrations/destinations/blueshift/processor/data.ts new file mode 100644 index 0000000000..990515f40a --- /dev/null +++ b/test/integrations/destinations/blueshift/processor/data.ts @@ -0,0 +1,1997 @@ +export const data = [ + { + "name": "blueshift", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", + "dataCenter": "standard" + } + }, + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.5" + }, + "traits": { + "name": "hardik", + "email": "hardik@rudderstack.com", + "cookie": "1234abcd-efghklkj-1234kfjadslk-34iu123", + "industry": "Education", + "employees": 399, + "plan": "enterprise", + "total billed": 830 + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.5" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36", + "locale": "en-US", + "os": { + "name": "", + "version": "" + } + }, + "type": "group", + "messageId": "e5034df0-a404-47b4-a463-76df99934fea", + "anonymousId": "my-anonymous-id-new", + "userId": "sampleusrRudder7", + "traits": { + "groupType": "company", + "name_trait": "Company", + "value_trait": "Comapny-ABC" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Missing required value from \"groupId\"", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "BLUESHIFT", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", + "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", + "dataCenter": "standard" + } + }, + "message": { + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.5" + }, + "traits": { + "name": "hardik", + "email": "hardik@rudderstack.com", + "cookie": "1234abcd-efghklkj-1234kfjadslk-34iu123", + "industry": "Education", + "employees": 399, + "plan": "enterprise", + "total billed": 830 + } + }, + "type": "group", + "userId": "rudderstack8", + "groupId": "35838" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.getblueshift.com/api/v1/event", + "headers": { + "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "group_id": "35838", + "customer_id": "rudderstack8", + "email": "hardik@rudderstack.com", + "event": "identify" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", + "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", + "dataCenter": "standard" + } + }, + "message": { + "context": { + "ip": "14.5.67.21", + "device": { + "adTrackingEnabled": true, + "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "manufacturer": "Google", + "model": "AOSP on IA Emulator", + "name": "generic_x86_arm", + "type": "Android", + "attTrackingStatus": 3 + }, + "os": { + "name": "Android", + "version": "9" + }, + "network": { + "bluetooth": false, + "carrier": "Android", + "cellular": true, + "wifi": true + }, + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 789223, + "latitude": "37.7672319", + "longitude": "-122.4021353", + "state": "WB", + "street": "rajnagar" + } + }, + "properties": { + "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123" + }, + "messageId": "34abcd-efghijkj-1234kf", + "type": "track", + "event": "identify", + "userId": "sampleusrRudder7" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.getblueshift.com/api/v1/event", + "headers": { + "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "customer_id": "sampleusrRudder7", + "event": "identify", + "device_type": "Android", + "device_id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "device_idfa": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "device_idfv": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "device_manufacturer": "Google", + "os_name": "Android", + "network_carrier": "Android", + "ip": "14.5.67.21", + "latitude": "37.7672319", + "longitude": "-122.4021353", + "event_uuid": "34abcd-efghijkj-1234kf", + "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", + "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", + "dataCenter": "standard" + } + }, + "message": { + "type": "track", + "event": "Product Viewed", + "properties": { + "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123", + "checkout_id": "C324532", + "order_id": "T1230", + "value": 15.98, + "revenue": 16.98, + "shipping": 3, + "coupon": "FY21", + "currency": "INR", + "products": [ + { + "product_id": "product-mixedfruit-jam", + "sku": "sku-1", + "category": "Food", + "name": "Food/Drink", + "brand": "Sample", + "variant": "None", + "price": 10, + "quantity": 2, + "currency": "INR", + "position": 1, + "value": 6, + "typeOfProduct": "Food", + "url": "https://www.example.com/product/bacon-jam", + "image_url": "https://www.example.com/product/bacon-jam.jpg" + } + ] + }, + "context": { + "app": { + "build": "1", + "name": "RudderAndroidClient", + "namespace": "com.rudderstack.demo.android", + "version": "1.0" + }, + "device": { + "id": "7e32188a4dab669f", + "manufacturer": "Google", + "model": "Android SDK built for x86", + "name": "generic_x86", + "type": "android" + }, + "library": { + "name": "com.rudderstack.android.sdk.core", + "version": "0.1.4" + }, + "locale": "en-US", + "network": { + "carrier": "Android", + "bluetooth": false, + "cellular": true, + "wifi": true + }, + "campaign": { + "source": "google", + "medium": "medium", + "term": "keyword", + "content": "some content", + "name": "some campaign" + }, + "os": { + "name": "Android", + "version": "9" + }, + "screen": { + "density": 420, + "height": 1794, + "width": 1080 + }, + "timezone": "Asia/Mumbai", + "traits": { + "anonymousId": "7e32188a4dab669f" + }, + "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" + } + }, + "messageId": "34abcd-efghijkj-1234kf", + "userId": "sampleRudderstack9" + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.getblueshift.com/api/v1/event", + "headers": { + "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "event": "view", + "device_type": "android", + "device_id": "7e32188a4dab669f", + "device_idfv": "7e32188a4dab669f", + "device_manufacturer": "Google", + "os_name": "Android", + "network_carrier": "Android", + "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123", + "checkout_id": "C324532", + "order_id": "T1230", + "value": 15.98, + "revenue": 16.98, + "shipping": 3, + "coupon": "FY21", + "currency": "INR", + "products": [ + { + "product_id": "product-mixedfruit-jam", + "sku": "sku-1", + "category": "Food", + "name": "Food/Drink", + "brand": "Sample", + "variant": "None", + "price": 10, + "quantity": 2, + "currency": "INR", + "position": 1, + "value": 6, + "typeOfProduct": "Food", + "url": "https://www.example.com/product/bacon-jam", + "image_url": "https://www.example.com/product/bacon-jam.jpg" + } + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", + "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", + "dataCenter": "eu" + } + }, + "message": { + "type": "track", + "event": "Products Searched", + "properties": { + "description": "Sneaker purchase", + "brand": "Victory Sneakers", + "colors": [ + "red", + "blue" + ], + "items": [ + { + "text": "New Line Sneakers", + "price": "$ 79.95" + }, + { + "text": "Old Line Sneakers", + "price": "$ 79.95" + }, + { + "text": "Blue Line Sneakers", + "price": "$ 79.95" + } + ], + "name": "Hugh Manbeing", + "userLocation": { + "state": "CO", + "zip": "80202" + } + }, + "context": { + "app": { + "build": "1", + "name": "RudderAndroidClient", + "namespace": "com.rudderstack.demo.android", + "version": "1.0" + }, + "device": { + "id": "7e32188a4dab669f", + "manufacturer": "Google", + "model": "Android SDK built for x86", + "name": "generic_x86", + "type": "android" + }, + "library": { + "name": "com.rudderstack.android.sdk.core", + "version": "0.1.4" + }, + "locale": "en-US", + "network": { + "carrier": "Android", + "bluetooth": false, + "cellular": true, + "wifi": true + }, + "campaign": { + "source": "google", + "medium": "medium", + "term": "keyword", + "content": "some content", + "name": "some campaign" + }, + "os": { + "name": "Android", + "version": "9" + }, + "screen": { + "density": 420, + "height": 1794, + "width": 1080 + }, + "timezone": "Asia/Mumbai", + "traits": { + "anonymousId": "7e32188a4dab669f" + }, + "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" + } + }, + "messageId": "34abcd-efghijkj-1234kf", + "userId": "sampleRudderstack9" + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.eu.getblueshift.com/api/v1/event", + "headers": { + "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "event": "search", + "device_type": "android", + "device_id": "7e32188a4dab669f", + "device_idfv": "7e32188a4dab669f", + "device_manufacturer": "Google", + "os_name": "Android", + "network_carrier": "Android", + "description": "Sneaker purchase", + "brand": "Victory Sneakers", + "colors": [ + "red", + "blue" + ], + "items": [ + { + "text": "New Line Sneakers", + "price": "$ 79.95" + }, + { + "text": "Old Line Sneakers", + "price": "$ 79.95" + }, + { + "text": "Blue Line Sneakers", + "price": "$ 79.95" + } + ], + "name": "Hugh Manbeing", + "userLocation": { + "state": "CO", + "zip": "80202" + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", + "dataCenter": "standard" + } + }, + "message": { + "type": "track", + "event": "Product_purchased", + "properties": { + "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123" + }, + "messageId": "34abcd-efghijkj-1234kf", + "context": { + "ip": "14.5.67.21", + "device": { + "adTrackingEnabled": true, + "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "manufacturer": "Google", + "model": "AOSP on IA Emulator", + "name": "generic_x86_arm", + "type": "Android", + "attTrackingStatus": 3 + }, + "os": { + "name": "Android", + "version": "9" + }, + "network": { + "bluetooth": false, + "carrier": "Android", + "cellular": true, + "wifi": true + }, + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 789223, + "latitude": "37.7672319", + "longitude": "-122.4021353", + "state": "WB", + "street": "rajnagar" + } + }, + "userId": "sampleRudderstack9" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "[BLUESHIFT] event Api Keys required for Authentication.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "configuration", + "destType": "BLUESHIFT", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 6", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", + "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", + "dataCenter": "standard" + } + }, + "message": { + "type": "identify", + "event": "Product_purchased", + "properties": { + "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123" + }, + "messageId": "34abcd-efghijkj-1234kf", + "context": { + "ip": "14.5.67.21", + "device": { + "adTrackingEnabled": true, + "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "manufacturer": "Google", + "model": "AOSP on IA Emulator", + "name": "generic_x86_arm", + "type": "Android", + "attTrackingStatus": 3 + }, + "os": { + "name": "Android", + "version": "9" + }, + "network": { + "bluetooth": false, + "carrier": "Android", + "cellular": true, + "wifi": true + }, + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 789223, + "latitude": "37.7672319", + "longitude": "-122.4021353", + "state": "WB", + "street": "rajnagar" + } + }, + "userId": "sampleRudderstack9" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Missing required value from \"email\"", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "BLUESHIFT", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 7", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", + "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", + "dataCenter": "standard" + } + }, + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "anon_id", + "type": "identify", + "traits": { + "email": "chandan@companyname.com", + "userId": "rudder123", + "anonymousId": "anon_id", + "name": "James Doe", + "phone": "92374162212", + "gender": "M", + "firstname": "James", + "lastname": "Doe", + "employed": true, + "birthday": "1614775793", + "education": "Science", + "graduate": true, + "married": true, + "customerType": "Prime", + "msg_push": true, + "msgSms": true, + "msgemail": true, + "msgwhatsapp": false, + "custom_tags": [ + "Test_User", + "Interested_User", + "DIY_Hobby" + ], + "custom_mappings": { + "Office": "Trastkiv", + "Country": "Russia" + }, + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 789223, + "state": "WB", + "street": "" + } + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.getblueshift.com/api/v1/customers", + "headers": { + "Authorization": "Basic YjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q5MjBlYzFlMmU=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "email": "chandan@companyname.com", + "customer_id": "rudder123", + "phone_number": "92374162212", + "firstname": "James", + "lastname": "Doe", + "gender": "M", + "userId": "rudder123", + "anonymousId": "anon_id", + "name": "James Doe", + "employed": true, + "birthday": "1614775793", + "education": "Science", + "graduate": true, + "married": true, + "customerType": "Prime", + "msg_push": true, + "msgSms": true, + "msgemail": true, + "msgwhatsapp": false, + "custom_tags": [ + "Test_User", + "Interested_User", + "DIY_Hobby" + ], + "custom_mappings": { + "Office": "Trastkiv", + "Country": "Russia" + }, + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 789223, + "state": "WB", + "street": "" + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 8", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", + "dataCenter": "eu" + } + }, + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "messageId": "84e26acc-56a5-4835-8233-591137fca468", + "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", + "originalTimestamp": "2019-10-14T09:03:17.562Z", + "anonymousId": "anon_id", + "type": "identify", + "traits": { + "email": "chandan@companyname.com", + "userId": "rudder123", + "anonymousId": "anon_id", + "name": "James Doe", + "phone": "92374162212", + "gender": "M", + "firstname": "James", + "lastname": "Doe", + "employed": true, + "birthday": "1614775793", + "education": "Science", + "graduate": true, + "married": true, + "customerType": "Prime", + "msg_push": true, + "msgSms": true, + "msgemail": true, + "msgwhatsapp": false, + "custom_tags": [ + "Test_User", + "Interested_User", + "DIY_Hobby" + ], + "custom_mappings": { + "Office": "Trastkiv", + "Country": "Russia" + }, + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 789223, + "state": "WB", + "street": "" + } + }, + "integrations": { + "All": true + }, + "sentAt": "2019-10-14T09:03:22.563Z" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "[BLUESHIFT] User API Key required for Authentication.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "configuration", + "destType": "BLUESHIFT", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 9", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", + "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", + "dataCenter": "eu" + } + }, + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "ip": "0.0.0.0" + }, + "type": "identify", + "traits": { + "email": "chandan@companyname.com", + "userId": "rudder123", + "anonymousId": "anon_id", + "name": "James Doe", + "phone": "92374162212", + "gender": "M", + "firstname": "James", + "lastname": "Doe" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.eu.getblueshift.com/api/v1/customers", + "headers": { + "Authorization": "Basic YjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q5MjBlYzFlMmU=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "email": "chandan@companyname.com", + "customer_id": "rudder123", + "phone_number": "92374162212", + "firstname": "James", + "lastname": "Doe", + "gender": "M", + "userId": "rudder123", + "anonymousId": "anon_id", + "name": "James Doe" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 10", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", + "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", + "dataCenter": "eu" + } + }, + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "ip": "0.0.0.0" + }, + "traits": { + "email": "chandan@companyname.com", + "userId": "rudder123", + "anonymousId": "anon_id", + "name": "James Doe", + "phone": "92374162212", + "gender": "M", + "firstname": "James", + "lastname": "Doe" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Message Type is not present. Aborting message.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "BLUESHIFT", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 11", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", + "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", + "dataCenter": "eu" + } + }, + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "locale": "en-US", + "ip": "0.0.0.0" + }, + "type": "page", + "traits": { + "email": "chandan@companyname.com", + "userId": "rudder123", + "anonymousId": "anon_id", + "name": "James Doe", + "phone": "92374162212", + "gender": "M", + "firstname": "James", + "lastname": "Doe" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Message type page not supported", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "BLUESHIFT", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 12", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", + "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", + "dataCenter": "eu" + } + }, + "message": { + "type": "track", + "event": "Order Completed", + "properties": { + "total": 1000, + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "sku": "45790-32", + "name": "Monopoly: 3rd Edition", + "price": "19", + "position": "1", + "category": "Games,Gifts,Entertainment,Toys", + "url": "https://www.example.com/product/path", + "image_url": "https://www.example.com/product/path.jpg" + }, + { + "product_id": "507f1f77bcf86cd799439011", + "sku": "45790-32", + "name": "Monopoly: 3rd Edition", + "price": "19", + "quantity": "2", + "position": "1", + "category": "Games,Gifts,Entertainment,Toys", + "url": "https://www.example.com/product/path", + "image_url": "https://www.example.com/product/path.jpg" + } + ] + }, + "context": { + "app": { + "build": "1", + "name": "RudderAndroidClient", + "namespace": "com.rudderstack.demo.android", + "version": "1.0" + }, + "device": { + "id": "7e32188a4dab669f", + "manufacturer": "Google", + "model": "Android SDK built for x86", + "name": "generic_x86", + "type": "android" + }, + "library": { + "name": "com.rudderstack.android.sdk.core", + "version": "0.1.4" + }, + "locale": "en-US", + "network": { + "carrier": "Android", + "bluetooth": false, + "cellular": true, + "wifi": true + }, + "campaign": { + "source": "google", + "medium": "medium", + "term": "keyword", + "content": "some content", + "name": "some campaign" + }, + "os": { + "name": "Android", + "version": "9" + }, + "screen": { + "density": 420, + "height": 1794, + "width": 1080 + }, + "timezone": "Asia/Mumbai", + "traits": { + "anonymousId": "7e32188a4dab669f" + }, + "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" + }, + "userId": "sampleRudderstack11" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.eu.getblueshift.com/api/v1/event", + "headers": { + "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "customer_id": "sampleRudderstack11", + "event": "purchase", + "device_type": "android", + "device_id": "7e32188a4dab669f", + "device_idfv": "7e32188a4dab669f", + "device_manufacturer": "Google", + "os_name": "Android", + "network_carrier": "Android", + "total": 1000, + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "sku": "45790-32", + "name": "Monopoly: 3rd Edition", + "price": "19", + "position": "1", + "category": "Games,Gifts,Entertainment,Toys", + "url": "https://www.example.com/product/path", + "image_url": "https://www.example.com/product/path.jpg" + }, + { + "product_id": "507f1f77bcf86cd799439011", + "sku": "45790-32", + "name": "Monopoly: 3rd Edition", + "price": "19", + "quantity": "2", + "position": "1", + "category": "Games,Gifts,Entertainment,Toys", + "url": "https://www.example.com/product/path", + "image_url": "https://www.example.com/product/path.jpg" + } + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 13", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", + "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", + "dataCenter": "eu" + } + }, + "message": { + "context": { + "ip": "14.5.67.21", + "device": { + "adTrackingEnabled": true, + "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "manufacturer": "Google", + "model": "AOSP on IA Emulator", + "name": "generic_x86_arm", + "type": "Android", + "attTrackingStatus": 3 + }, + "os": { + "name": "Android", + "version": "9" + }, + "network": { + "bluetooth": false, + "carrier": "Android", + "cellular": true, + "wifi": true + }, + "address": { + "city": "kolkata", + "country": "India", + "postalCode": 789223, + "latitude": "37.7672319", + "longitude": "-122.4021353", + "state": "WB", + "street": "rajnagar" + } + }, + "properties": { + "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123" + }, + "messageId": "34abcd-efghijkj-1234kf", + "type": "track", + "event": "Custom Events", + "userId": "sampleusrRudder7" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.eu.getblueshift.com/api/v1/event", + "headers": { + "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "customer_id": "sampleusrRudder7", + "event": "Custom_Events", + "device_type": "Android", + "device_id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "device_idfa": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "device_idfv": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", + "device_manufacturer": "Google", + "os_name": "Android", + "network_carrier": "Android", + "ip": "14.5.67.21", + "latitude": "37.7672319", + "longitude": "-122.4021353", + "event_uuid": "34abcd-efghijkj-1234kf", + "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 14", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", + "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", + "dataCenter": "eu" + } + }, + "message": { + "type": "track", + "event": "Order 9Completed", + "properties": { + "total": 1000, + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "sku": "45790-32", + "name": "Monopoly: 3rd Edition", + "price": "19", + "position": "1", + "category": "Games,Gifts,Entertainment,Toys", + "url": "https://www.example.com/product/path", + "image_url": "https://www.example.com/product/path.jpg" + }, + { + "product_id": "507f1f77bcf86cd799439011", + "sku": "45790-32", + "name": "Monopoly: 3rd Edition", + "price": "19", + "quantity": "2", + "position": "1", + "category": "Games,Gifts,Entertainment,Toys", + "url": "https://www.example.com/product/path", + "image_url": "https://www.example.com/product/path.jpg" + } + ] + }, + "context": { + "app": { + "build": "1", + "name": "RudderAndroidClient", + "namespace": "com.rudderstack.demo.android", + "version": "1.0" + }, + "device": { + "id": "7e32188a4dab669f", + "manufacturer": "Google", + "model": "Android SDK built for x86", + "name": "generic_x86", + "type": "android" + }, + "library": { + "name": "com.rudderstack.android.sdk.core", + "version": "0.1.4" + }, + "locale": "en-US", + "network": { + "carrier": "Android", + "bluetooth": false, + "cellular": true, + "wifi": true + }, + "campaign": { + "source": "google", + "medium": "medium", + "term": "keyword", + "content": "some content", + "name": "some campaign" + }, + "os": { + "name": "Android", + "version": "9" + }, + "screen": { + "density": 420, + "height": 1794, + "width": 1080 + }, + "timezone": "Asia/Mumbai", + "traits": { + "anonymousId": "7e32188a4dab669f" + }, + "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" + }, + "userId": "sampleRudderstack11" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "[Blueshift] Event shouldn't contain period(.), numeric value and contains not more than 64 characters", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "BLUESHIFT", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 15", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", + "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", + "dataCenter": "eu" + } + }, + "message": { + "type": "track", + "event": "Order.Completed", + "properties": { + "total": 1000, + "products": [ + { + "product_id": "507f1f77bcf86cd799439011", + "sku": "45790-32", + "name": "Monopoly: 3rd Edition", + "price": "19", + "position": "1", + "category": "Games,Gifts,Entertainment,Toys", + "url": "https://www.example.com/product/path", + "image_url": "https://www.example.com/product/path.jpg" + }, + { + "product_id": "507f1f77bcf86cd799439011", + "sku": "45790-32", + "name": "Monopoly: 3rd Edition", + "price": "19", + "quantity": "2", + "position": "1", + "category": "Games,Gifts,Entertainment,Toys", + "url": "https://www.example.com/product/path", + "image_url": "https://www.example.com/product/path.jpg" + } + ] + }, + "context": { + "app": { + "build": "1", + "name": "RudderAndroidClient", + "namespace": "com.rudderstack.demo.android", + "version": "1.0" + }, + "device": { + "id": "7e32188a4dab669f", + "manufacturer": "Google", + "model": "Android SDK built for x86", + "name": "generic_x86", + "type": "android" + }, + "library": { + "name": "com.rudderstack.android.sdk.core", + "version": "0.1.4" + }, + "locale": "en-US", + "network": { + "carrier": "Android", + "bluetooth": false, + "cellular": true, + "wifi": true + }, + "campaign": { + "source": "google", + "medium": "medium", + "term": "keyword", + "content": "some content", + "name": "some campaign" + }, + "os": { + "name": "Android", + "version": "9" + }, + "screen": { + "density": 420, + "height": 1794, + "width": 1080 + }, + "timezone": "Asia/Mumbai", + "traits": { + "anonymousId": "7e32188a4dab669f" + }, + "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" + }, + "userId": "sampleRudderstack11" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "[Blueshift] Event shouldn't contain period(.), numeric value and contains not more than 64 characters", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "BLUESHIFT", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 16", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", + "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", + "dataCenter": "standard" + } + }, + "message": { + "channel": "web", + "context": { + "app": { + "build": "1", + "name": "RudderAndroidClient", + "namespace": "com.rudderstack.demo.android", + "version": "1.0" + }, + "device": { + "id": "7e32188a4dab669f", + "manufacturer": "Google", + "model": "Android SDK built for x86", + "name": "generic_x86", + "type": "android" + }, + "library": { + "name": "com.rudderstack.android.sdk.core", + "version": "0.1.4" + }, + "locale": "en-US", + "network": { + "carrier": "Android", + "bluetooth": false, + "cellular": true, + "wifi": true + }, + "campaign": { + "source": "google", + "medium": "medium", + "term": "keyword", + "content": "some content", + "name": "some campaign" + }, + "os": { + "name": "Android", + "version": "9" + }, + "screen": { + "density": 420, + "height": 1794, + "width": 1080 + }, + "timezone": "Asia/Mumbai", + "traits": { + "anonymousId": "7e32188a4dab669f" + }, + "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" + }, + "type": "group", + "messageId": "e5034jh0-a404-47b4-a463-76df99934kl2", + "userId": "sampleusrRudder1", + "groupId": "group22222", + "traits": { + "name": "hardik", + "email": "hardik@rudderstack.com", + "cookie": "1234abcd-efghklkj-1234kfjadslk-34iu123", + "industry": "Education", + "employees": 399, + "plan": "enterprise", + "total billed": 830, + "gender": "male" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.getblueshift.com/api/v1/event", + "headers": { + "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "group_id": "group22222", + "customer_id": "sampleusrRudder1", + "email": "hardik@rudderstack.com", + "device_type": "android", + "device_id": "7e32188a4dab669f", + "device_idfv": "7e32188a4dab669f", + "device_manufacturer": "Google", + "os_name": "Android", + "network_carrier": "Android", + "event_uuid": "e5034jh0-a404-47b4-a463-76df99934kl2", + "event": "identify", + "name": "hardik", + "cookie": "1234abcd-efghklkj-1234kfjadslk-34iu123", + "industry": "Education", + "employees": 399, + "plan": "enterprise", + "total billed": 830, + "gender": "male" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "blueshift", + "description": "Test 17", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "Config": { + "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", + "dataCenter": "eu" + } + }, + "message": { + "channel": "web", + "context": { + "app": { + "build": "1", + "name": "RudderAndroidClient", + "namespace": "com.rudderstack.demo.android", + "version": "1.0" + }, + "device": { + "id": "7e32188a4dab669f", + "manufacturer": "Google", + "model": "Android SDK built for x86", + "name": "generic_x86", + "type": "android" + }, + "library": { + "name": "com.rudderstack.android.sdk.core", + "version": "0.1.4" + }, + "locale": "en-US", + "network": { + "carrier": "Android", + "bluetooth": false, + "cellular": true, + "wifi": true + }, + "campaign": { + "source": "google", + "medium": "medium", + "term": "keyword", + "content": "some content", + "name": "some campaign" + }, + "os": { + "name": "Android", + "version": "9" + }, + "screen": { + "density": 420, + "height": 1794, + "width": 1080 + }, + "timezone": "Asia/Mumbai", + "traits": { + "anonymousId": "7e32188a4dab669f" + }, + "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" + }, + "type": "group", + "messageId": "e5034jh0-a404-47b4-a463-76df99934kl2", + "userId": "sampleusrRudder1", + "groupId": "group22222", + "traits": { + "name": "hardik", + "email": "hardik@rudderstack.com", + "cookie": "1234abcd-efghklkj-1234kfjadslk-34iu123", + "industry": "Education", + "employees": 399, + "plan": "enterprise", + "total billed": 830, + "gender": "male" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "[BLUESHIFT] event API Key required for Authentication.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "configuration", + "destType": "BLUESHIFT", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + } +] \ No newline at end of file diff --git a/test/integrations/destinations/campaign_manager/processor/data.ts b/test/integrations/destinations/campaign_manager/processor/data.ts new file mode 100644 index 0000000000..6721cf2631 --- /dev/null +++ b/test/integrations/destinations/campaign_manager/processor/data.ts @@ -0,0 +1,825 @@ +export const data = [ + { + "name": "campaign_manager", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "id": "0572f78fa49c648e", + "name": "generic_x86_arm", + "type": "Android", + "model": "AOSP on IA Emulator", + "manufacturer": "Google", + "adTrackingEnabled": true, + "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" + }, + "traits": { + "email": "alex@example.com", + "phone": "+1-202-555-0146", + "firstName": "John", + "lastName": "Gomes", + "city": "London", + "state": "England", + "countryCode": "GB", + "postalCode": "EC3M", + "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "originalTimestamp": "2022-11-17T00:22:02.903+05:30", + "properties": { + "profileId": "34245", + "floodlightConfigurationId": "213123123", + "ordinal": "string", + "floodlightActivityId": "456543345245", + "value": "756", + "encryptedUserIdCandidates": [ + "dfghjbnm" + ], + "quantity": "455678", + "encryptionSource": "AD_SERVING", + "encryptionEntityId": "3564523", + "encryptionEntityType": "DCM_ACCOUNT", + "requestType": "batchinsert" + }, + "type": "track", + "event": "event test", + "anonymousId": "randomId", + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "metadata": { + "secret": { + "access_token": "dummyApiToken", + "refresh_token": "efgh5678", + "developer_token": "ijkl91011" + } + }, + "destination": { + "Config": { + "profileId": "5343234", + "treatmentForUnderage": false, + "limitAdTracking": false, + "childDirectedTreatment": false, + "nonPersonalizedAd": false, + "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/34245/conversions/batchinsert", + "headers": { + "Authorization": "Bearer dummyApiToken", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "kind": "dfareporting#conversionsBatchInsertRequest", + "encryptionInfo": { + "encryptionEntityType": "DCM_ACCOUNT", + "encryptionSource": "AD_SERVING", + "encryptionEntityId": "3564523", + "kind": "dfareporting#encryptionInfo" + }, + "conversions": [ + { + "floodlightConfigurationId": "213123123", + "ordinal": "string", + "timestampMicros": "1668624722903000", + "floodlightActivityId": "456543345245", + "quantity": "455678", + "value": 756, + "encryptedUserIdCandidates": [ + "dfghjbnm" + ], + "nonPersonalizedAd": false, + "treatmentForUnderage": false, + "childDirectedTreatment": false, + "limitAdTracking": false + } + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "access_token": "dummyApiToken", + "refresh_token": "efgh5678", + "developer_token": "ijkl91011" + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "campaign_manager", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "id": "0572f78fa49c648e", + "name": "generic_x86_arm", + "type": "Android", + "model": "AOSP on IA Emulator", + "manufacturer": "Google", + "adTrackingEnabled": true, + "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" + }, + "traits": { + "email": "alex@example.com", + "phone": "+1-202-555-0146", + "firstName": "John", + "lastName": "Gomes", + "city": "London", + "state": "England", + "countryCode": "GB", + "postalCode": "EC3M", + "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "originalTimestamp": "2021-01-04T08:25:04.780Z", + "properties": { + "profileId": "34245", + "floodlightConfigurationId": "213123123", + "ordinal": "string", + "floodlightActivityId": "456543345245", + "value": "756", + "quantity": "455678", + "gclid": "string", + "encryptionSource": "AD_SERVING", + "encryptionEntityId": "3564523", + "encryptionEntityType": "DCM_ACCOUNT", + "requestType": "batchupdate" + }, + "type": "track", + "event": "event test", + "anonymousId": "randomId", + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "metadata": { + "secret": { + "access_token": "dummyApiToken", + "refresh_token": "efgh5678", + "developer_token": "ijkl91011" + } + }, + "destination": { + "Config": { + "profileId": "5343234", + "treatmentForUnderage": false, + "limitAdTracking": false, + "childDirectedTreatment": false, + "nonPersonalizedAd": false, + "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/34245/conversions/batchupdate", + "headers": { + "Authorization": "Bearer dummyApiToken", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "kind": "dfareporting#conversionsBatchUpdateRequest", + "conversions": [ + { + "floodlightConfigurationId": "213123123", + "ordinal": "string", + "timestampMicros": "1609748704780000", + "floodlightActivityId": "456543345245", + "quantity": "455678", + "value": 756, + "gclid": "string", + "nonPersonalizedAd": false, + "treatmentForUnderage": false + } + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "access_token": "dummyApiToken", + "refresh_token": "efgh5678", + "developer_token": "ijkl91011" + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "campaign_manager", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "id": "0572f78fa49c648e", + "name": "generic_x86_arm", + "type": "Android", + "model": "AOSP on IA Emulator", + "manufacturer": "Google", + "adTrackingEnabled": true, + "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" + }, + "traits": { + "email": "alex@example.com", + "phone": "+1-202-555-0146", + "firstName": "John", + "lastName": "Gomes", + "city": "London", + "state": "England", + "countryCode": "GB", + "postalCode": "EC3M", + "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "originalTimestamp": "2022-11-17T00:22:02.903+05:30", + "properties": { + "profileId": "34245", + "floodlightConfigurationId": "213123123", + "ordinal": "string", + "floodlightActivityId": "456543345245", + "mobileDeviceId": "string", + "value": "756", + "encryptedUserIdCandidates": [ + "dfghjbnm" + ], + "quantity": "455678", + "gclid": "string", + "matchId": "string", + "dclid": "string", + "impressionId": "string", + "requestType": "batchinsert" + }, + "type": "track", + "event": "event test", + "anonymousId": "randomId", + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "metadata": { + "secret": { + "access_token": "dummyApiToken", + "refresh_token": "efgh5678", + "developer_token": "ijkl91011" + } + }, + "destination": { + "Config": { + "profileId": "5343234", + "treatmentForUnderage": false, + "limitAdTracking": false, + "childDirectedTreatment": false, + "nonPersonalizedAd": false, + "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "metadata": { + "secret": { + "access_token": "dummyApiToken", + "refresh_token": "efgh5678", + "developer_token": "ijkl91011" + } + }, + "statusCode": 400, + "error": "[CAMPAIGN MANAGER (DCM)]: If encryptedUserId or encryptedUserIdCandidates is used, provide proper values for properties.encryptionEntityType , properties.encryptionSource and properties.encryptionEntityId", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "CAMPAIGN_MANAGER", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "campaign_manager", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "sources", + "originalTimestamp": "2022-11-17T00:22:02.903+05:30", + "properties": { + "floodlightConfigurationId": "213123123", + "ordinal": "string", + "floodlightActivityId": "456543345245", + "value": "756", + "quantity": "455678", + "requestType": "batchinsert" + }, + "type": "track", + "event": "event test", + "anonymousId": "randomId", + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "metadata": { + "secret": { + "access_token": "dummyApiToken", + "refresh_token": "efgh5678", + "developer_token": "ijkl91011" + } + }, + "destination": { + "Config": { + "profileId": "5343234", + "treatmentForUnderage": false, + "limitAdTracking": false, + "childDirectedTreatment": false, + "nonPersonalizedAd": false, + "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "metadata": { + "secret": { + "access_token": "dummyApiToken", + "refresh_token": "efgh5678", + "developer_token": "ijkl91011" + } + }, + "statusCode": 400, + "error": "[CAMPAIGN MANAGER (DCM)]: Atleast one of encryptedUserId,encryptedUserIdCandidates, matchId, mobileDeviceId, gclid, dclid, impressionId.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "CAMPAIGN_MANAGER", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "campaign_manager", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "id": "0572f78fa49c648e", + "name": "generic_x86_arm", + "type": "Android", + "model": "AOSP on IA Emulator", + "manufacturer": "Google", + "adTrackingEnabled": true, + "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" + }, + "traits": { + "email": "alex@example.com", + "phone": "+1-202-555-0146", + "firstName": "John", + "lastName": "Gomes", + "city": "London", + "state": "England", + "countryCode": "GB", + "postalCode": "EC3M", + "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "originalTimestamp": "2022-11-17T00:22:02.903+05:30", + "properties": { + "profileId": "34245", + "floodlightConfigurationId": "213123123", + "ordinal": "1", + "floodlightActivityId": "456543345245", + "value": "756", + "quantity": "455678", + "encryptionSource": "AD_SERVING", + "encryptionEntityId": "3564523", + "encryptionEntityType": "DCM_ACCOUNT", + "requestType": "batchinsert", + "matchId": "123" + }, + "type": "track", + "event": "event test", + "anonymousId": "randomId", + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "metadata": { + "secret": { + "access_token": "dummyApiToken", + "refresh_token": "efgh5678", + "developer_token": "ijkl91011" + } + }, + "destination": { + "Config": { + "profileId": "5343234", + "treatmentForUnderage": false, + "limitAdTracking": false, + "childDirectedTreatment": false, + "nonPersonalizedAd": false, + "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/34245/conversions/batchinsert", + "headers": { + "Authorization": "Bearer dummyApiToken", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "kind": "dfareporting#conversionsBatchInsertRequest", + "conversions": [ + { + "floodlightConfigurationId": "213123123", + "ordinal": "1", + "timestampMicros": "1668624722903000", + "floodlightActivityId": "456543345245", + "quantity": "455678", + "value": 756, + "matchId": "123", + "nonPersonalizedAd": false, + "treatmentForUnderage": false, + "childDirectedTreatment": false, + "limitAdTracking": false + } + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "access_token": "dummyApiToken", + "refresh_token": "efgh5678", + "developer_token": "ijkl91011" + } + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "campaign_manager", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.0.0" + }, + "device": { + "id": "0572f78fa49c648e", + "name": "generic_x86_arm", + "type": "Android", + "model": "AOSP on IA Emulator", + "manufacturer": "Google", + "adTrackingEnabled": true, + "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" + }, + "traits": { + "email": "alex@example.com", + "phone": "+1-202-555-0146", + "firstName": "John", + "lastName": "Gomes", + "city": "London", + "state": "England", + "countryCode": "GB", + "postalCode": "EC3M", + "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.0.0" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", + "locale": "en-US", + "ip": "0.0.0.0", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + } + }, + "originalTimestamp": "1668624722903333", + "properties": { + "profileId": "34245", + "floodlightConfigurationId": "213123123", + "ordinal": "1", + "floodlightActivityId": "456543345245", + "value": "756", + "quantity": "455678", + "encryptionSource": "AD_SERVING", + "encryptionEntityId": "3564523", + "encryptionEntityType": "DCM_ACCOUNT", + "requestType": "batchinsert", + "matchId": "123" + }, + "type": "track", + "event": "event test", + "anonymousId": "randomId", + "integrations": { + "All": true + }, + "name": "ApplicationLoaded", + "sentAt": "2019-10-14T11:15:53.296Z" + }, + "metadata": { + "secret": { + "access_token": "dummyApiToken", + "refresh_token": "efgh5678", + "developer_token": "ijkl91011" + } + }, + "destination": { + "Config": { + "profileId": "5343234", + "treatmentForUnderage": false, + "limitAdTracking": false, + "childDirectedTreatment": false, + "nonPersonalizedAd": false, + "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/34245/conversions/batchinsert", + "headers": { + "Authorization": "Bearer dummyApiToken", + "Content-Type": "application/json" + }, + "params": {}, + "body": { + "JSON": { + "kind": "dfareporting#conversionsBatchInsertRequest", + "conversions": [ + { + "floodlightConfigurationId": "213123123", + "ordinal": "1", + "timestampMicros": "1668624722903333", + "floodlightActivityId": "456543345245", + "quantity": "455678", + "value": 756, + "matchId": "123", + "nonPersonalizedAd": false, + "treatmentForUnderage": false, + "childDirectedTreatment": false, + "limitAdTracking": false + } + ] + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "metadata": { + "secret": { + "access_token": "dummyApiToken", + "refresh_token": "efgh5678", + "developer_token": "ijkl91011" + } + }, + "statusCode": 200 + } + ] + } + } + } +] \ No newline at end of file diff --git a/test/integrations/destinations/confluent_cloud/processor/data.ts b/test/integrations/destinations/confluent_cloud/processor/data.ts new file mode 100644 index 0000000000..0453d3dd8f --- /dev/null +++ b/test/integrations/destinations/confluent_cloud/processor/data.ts @@ -0,0 +1,825 @@ +export const data = [ + { + "name": "confluent_cloud", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "Name": "Azure Event Hub", + "DestinationDefinition": { + "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", + "Name": "AZURE_EVENT_HUB", + "DisplayName": "Azure Event Hub", + "Config": { + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": null, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "event": "Purchase", + "integrations": { + "All": true + }, + "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", + "originalTimestamp": "2020-05-21T10:23:15.984Z", + "properties": { + "currency": "USD", + "revenue": 100 + }, + "receivedAt": "2020-05-21T15:53:16.013+05:30", + "request_ip": "[::1]:59371", + "sentAt": "2020-05-21T10:23:15.985Z", + "timestamp": "2020-05-21T15:53:16.012+05:30", + "type": "track", + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 46, + "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "event": "Purchase", + "integrations": { + "All": true + }, + "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", + "originalTimestamp": "2020-05-21T10:23:15.984Z", + "properties": { + "currency": "USD", + "revenue": 100 + }, + "receivedAt": "2020-05-21T15:53:16.013+05:30", + "request_ip": "[::1]:59371", + "sentAt": "2020-05-21T10:23:15.985Z", + "timestamp": "2020-05-21T15:53:16.012+05:30", + "type": "track", + "userId": "user-12345" + }, + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 46, + "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "confluent_cloud", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "Name": "Azure Event Hub", + "DestinationDefinition": { + "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", + "Name": "AZURE_EVENT_HUB", + "DisplayName": "Azure Event Hub", + "Config": { + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": null, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "integrations": { + "All": true + }, + "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", + "originalTimestamp": "2020-05-21T10:23:15.975Z", + "properties": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:58616", + "sentAt": "2020-05-21T10:23:15.975Z", + "timestamp": "2020-05-21T15:53:16.014+05:30", + "type": "page", + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 47, + "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "integrations": { + "All": true + }, + "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", + "originalTimestamp": "2020-05-21T10:23:15.975Z", + "properties": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:58616", + "sentAt": "2020-05-21T10:23:15.975Z", + "timestamp": "2020-05-21T15:53:16.014+05:30", + "type": "page", + "userId": "user-12345" + }, + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 47, + "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "confluent_cloud", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "Name": "Azure Event Hub", + "DestinationDefinition": { + "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", + "Name": "AZURE_EVENT_HUB", + "DisplayName": "Azure Event Hub", + "Config": { + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": null, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "integrations": { + "All": true + }, + "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", + "originalTimestamp": "2020-05-21T10:23:15.979Z", + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:59372", + "sentAt": "2020-05-21T10:23:15.979Z", + "timestamp": "2020-05-21T15:53:16.014+05:30", + "type": "identify", + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 48, + "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "integrations": { + "All": true + }, + "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", + "originalTimestamp": "2020-05-21T10:23:15.979Z", + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:59372", + "sentAt": "2020-05-21T10:23:15.979Z", + "timestamp": "2020-05-21T15:53:16.014+05:30", + "type": "identify", + "userId": "user-12345" + }, + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 48, + "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "confluent_cloud", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "Name": "Azure Event Hub", + "DestinationDefinition": { + "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", + "Name": "AZURE_EVENT_HUB", + "DisplayName": "Azure Event Hub", + "Config": { + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": null, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "event": "test track without property", + "integrations": { + "All": true + }, + "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", + "originalTimestamp": "2020-05-21T10:23:15.981Z", + "properties": {}, + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:59374", + "sentAt": "2020-05-21T10:23:15.981Z", + "timestamp": "2020-05-21T15:53:16.014+05:30", + "type": "track", + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 49, + "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "event": "test track without property", + "integrations": { + "All": true + }, + "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", + "originalTimestamp": "2020-05-21T10:23:15.981Z", + "properties": {}, + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:59374", + "sentAt": "2020-05-21T10:23:15.981Z", + "timestamp": "2020-05-21T15:53:16.014+05:30", + "type": "track", + "userId": "user-12345" + }, + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 49, + "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "confluent_cloud", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "destination": { + "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "Name": "Azure Event Hub", + "DestinationDefinition": { + "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", + "Name": "AZURE_EVENT_HUB", + "DisplayName": "Azure Event Hub", + "Config": { + "excludeKeys": [], + "includeKeys": [] + } + }, + "Config": null, + "Enabled": true, + "Transformations": [], + "IsProcessorEnabled": true + }, + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "event": "test track with property", + "integrations": { + "All": true + }, + "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", + "originalTimestamp": "2020-05-21T10:23:15.982Z", + "properties": { + "test_prop_1": "test prop", + "test_prop_2": 1232 + }, + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:59373", + "sentAt": "2020-05-21T10:23:15.983Z", + "timestamp": "2020-05-21T15:53:16.013+05:30", + "type": "track", + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 50, + "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "message": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.1" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.1" + }, + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "page": { + "path": "/tests/html/index7.html", + "referrer": "http://localhost:1111/tests/html/", + "search": "", + "title": "", + "url": "http://localhost:1111/tests/html/index7.html" + }, + "screen": { + "density": 2 + }, + "traits": { + "age": 23, + "email": "test@kinesis.com", + "firstname": "Test Kinesis" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" + }, + "event": "test track with property", + "integrations": { + "All": true + }, + "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", + "originalTimestamp": "2020-05-21T10:23:15.982Z", + "properties": { + "test_prop_1": "test prop", + "test_prop_2": 1232 + }, + "receivedAt": "2020-05-21T15:53:16.014+05:30", + "request_ip": "[::1]:59373", + "sentAt": "2020-05-21T10:23:15.983Z", + "timestamp": "2020-05-21T15:53:16.013+05:30", + "type": "track", + "userId": "user-12345" + }, + "userId": "user-12345" + }, + "metadata": { + "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", + "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", + "destinationType": "AZURE_EVENT_HUB", + "jobId": 50, + "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", + "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" + }, + "statusCode": 200 + } + ] + } + } + } +] \ No newline at end of file diff --git a/test/integrations/destinations/courier/processor/data.ts b/test/integrations/destinations/courier/processor/data.ts new file mode 100644 index 0000000000..a1bcb930d7 --- /dev/null +++ b/test/integrations/destinations/courier/processor/data.ts @@ -0,0 +1,333 @@ +export const data = [ + { + "name": "courier", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "type": "track", + "channel": "web", + "event": "Product Added", + "properties": {}, + "context": {}, + "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", + "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", + "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" + }, + "destination": { + "Config": {} + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "apiKey is required", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "configuration", + "destType": "COURIER", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "courier", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "context": { + "ip": "8.8.8.8" + }, + "traits": { + "name": "Joe Doe", + "email": "joe@example.com", + "plan": "basic", + "age": 27 + }, + "type": "identify", + "userId": "userIdTest", + "originalTimestamp": "2022-10-17T15:53:10.566+05:30", + "messageId": "8d04cc30-fc15-49bd-901f-c5c3f72a7d82" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.courier.com/inbound/rudderstack", + "headers": { + "Content-Type": "application/json", + "Authorization": "Bearer dummyApiKey" + }, + "params": {}, + "body": { + "JSON": { + "context": { + "ip": "8.8.8.8" + }, + "traits": { + "name": "Joe Doe", + "email": "joe@example.com", + "plan": "basic", + "age": 27 + }, + "type": "identify", + "userId": "userIdTest", + "originalTimestamp": "2022-10-17T15:53:10.566+05:30", + "messageId": "8d04cc30-fc15-49bd-901f-c5c3f72a7d82" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "courier", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "context": { + "ip": "8.8.8.8", + "traits": { + "name": "Joe Doe", + "email": "joe@example.com", + "plan": "basic", + "age": 27 + } + }, + "type": "identify", + "userId": "userIdTest", + "originalTimestamp": "2022-10-17T15:53:10.566+05:30", + "messageId": "8d04cc30-fc15-49bd-901f-c5c3f72a7d82" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.courier.com/inbound/rudderstack", + "headers": { + "Content-Type": "application/json", + "Authorization": "Bearer dummyApiKey" + }, + "params": {}, + "body": { + "JSON": { + "context": { + "ip": "8.8.8.8", + "traits": { + "name": "Joe Doe", + "email": "joe@example.com", + "plan": "basic", + "age": 27 + } + }, + "type": "identify", + "userId": "userIdTest", + "originalTimestamp": "2022-10-17T15:53:10.566+05:30", + "messageId": "8d04cc30-fc15-49bd-901f-c5c3f72a7d82", + "traits": { + "name": "Joe Doe", + "email": "joe@example.com", + "plan": "basic", + "age": 27 + } + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "courier", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "context": { + "ip": "8.8.8.8" + }, + "type": "identify", + "userId": "userIdTest", + "originalTimestamp": "2022-10-17T15:53:10.566+05:30", + "messageId": "8d04cc30-fc15-49bd-901f-c5c3f72a7d82" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "traits is a required field for identify call", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "COURIER", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "courier", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "context": { + "ip": "8.8.8.8" + }, + "event": "trackTest", + "properties": { + "activity": "checkout" + }, + "userId": "userIdTest", + "type": "track", + "messageId": "3c0abc14-96a2-4aed-9dfc-ee463832cc24", + "originalTimestamp": "2022-10-17T15:32:44.202+05:30" + }, + "destination": { + "Config": { + "apiKey": "dummyApiKey" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://api.courier.com/inbound/rudderstack", + "headers": { + "Content-Type": "application/json", + "Authorization": "Bearer dummyApiKey" + }, + "params": {}, + "body": { + "JSON": { + "context": { + "ip": "8.8.8.8" + }, + "event": "trackTest", + "properties": { + "activity": "checkout" + }, + "userId": "userIdTest", + "type": "track", + "messageId": "3c0abc14-96a2-4aed-9dfc-ee463832cc24", + "originalTimestamp": "2022-10-17T15:32:44.202+05:30" + }, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + } +] \ No newline at end of file diff --git a/test/integrations/destinations/facebook_offline_conversions/processor/data.ts b/test/integrations/destinations/facebook_offline_conversions/processor/data.ts new file mode 100644 index 0000000000..2728d52193 --- /dev/null +++ b/test/integrations/destinations/facebook_offline_conversions/processor/data.ts @@ -0,0 +1,1775 @@ +export const data = [ + { + "name": "facebook_offline_conversions", + "description": "Test 0", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "traits": { + "age": 23, + "email": "adc@test.com", + "firstname": "Test", + "birthday": "2022-05-13T12:51:01.470Z" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + }, + "event": "Product Searched", + "originalTimestamp": "2020-09-22T14:42:44.724Z", + "timestamp": "2022-09-22T20:12:44.757+05:30", + "userId": "user@1" + }, + "destination": { + "Config": { + "accessToken": "ABC..." + } + }, + "metadata": { + "secret": { + "access_token": "ABC" + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "metadata": { + "secret": { + "access_token": "ABC" + } + }, + "statusCode": 400, + "error": "Message Type is not present. Aborting message.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_OFFLINE_CONVERSIONS", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_offline_conversions", + "description": "Test 1", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "traits": { + "age": 23, + "email": "adc@test.com", + "firstname": "Test", + "birthday": "2022-05-13T12:51:01.470Z" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" + }, + "event": "Product Searched", + "type": "identify", + "originalTimestamp": "2020-09-22T14:42:44.724Z", + "timestamp": "2022-09-22T20:12:44.757+05:30", + "userId": "user@1" + }, + "destination": { + "Config": { + "accessToken": "ABC..." + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Message type identify not supported.", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "instrumentation", + "destType": "FACEBOOK_OFFLINE_CONVERSIONS", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_offline_conversions", + "description": "Test 2", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.2" + }, + "traits": { + "abc": "1234" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.2" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/tests/html/ecomm_test.html", + "referrer": "http://0.0.0.0:1112/tests/html/", + "search": "", + "title": "Fb Offline Conversion Ecommerce Test", + "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" + } + }, + "type": "track", + "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", + "originalTimestamp": "2022-09-21T12:05:19.394Z", + "userId": "user@1", + "event": "product searched", + "properties": { + "order_id": "5241735", + "value": 31.98, + "revenue": 31.98, + "shipping": 4, + "coupon": "APPARELSALE", + "currency": "GBP", + "products": [ + { + "id": "product-bacon-jam", + "category": "Merch", + "brand": "" + }, + { + "id": "product-t-shirt", + "category": "Merch", + "brand": "Levis" + }, + { + "id": "offer-t-shirt", + "category": "Merch", + "brand": "Levis" + } + ] + } + }, + "destination": { + "Config": { + "accessToken": "ABC...", + "valueFieldIdentifier": "properties.price", + "eventsToStandard": [ + { + "from": "Product Searched", + "to": "Search" + }, + { + "to": "ViewContent", + "from": "Product Viewed" + }, + { + "to": "AddToCart", + "from": "Cart Checkout" + }, + { + "to": "AddPaymentInfo", + "from": "Card Details Added" + }, + { + "to": "Lead", + "from": "Order Completed" + }, + { + "to": "CompleteRegistration", + "from": "Signup" + }, + { + "to": "AddToWishlist", + "from": "Button Clicked" + } + ], + "eventsToIds": [ + { + "from": "Search", + "to": "582603376981640" + }, + { + "from": "Search", + "to": "506289934669334" + }, + { + "from": "ViewContent", + "to": "1166826033904512" + }, + { + "from": "AddToCart", + "to": "1148872185708962" + }, + { + "from": "CompleteRegistration", + "to": "597443908839411" + }, + { + "from": "Lead", + "to": "1024592094903800" + }, + { + "from": "AddToWishlist", + "to": "506289934669334" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Please Map Your Standard Events With Event Set Ids", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "configuration", + "destType": "FACEBOOK_OFFLINE_CONVERSIONS", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_offline_conversions", + "description": "Test 3", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.2" + }, + "traits": { + "abc": "1234" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.2" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/tests/html/ecomm_test.html", + "referrer": "http://0.0.0.0:1112/tests/html/", + "search": "", + "title": "Fb Offline Conversion Ecommerce Test", + "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" + } + }, + "type": "track", + "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", + "originalTimestamp": "2022-09-21T12:05:19.394Z", + "userId": "user@1", + "event": "Button Clicked", + "properties": { + "order_id": "5241735", + "value": 31.98, + "revenue": 31.98, + "shipping": 4, + "coupon": "APPARELSALE", + "currency": "GBP", + "products": [ + { + "id": "product-bacon-jam", + "category": "Merch", + "brand": "" + }, + { + "id": "product-t-shirt", + "category": "Merch", + "brand": "Levis" + }, + { + "id": "offer-t-shirt", + "category": "Merch", + "brand": "Levis" + } + ] + } + }, + "destination": { + "Config": { + "accessToken": "ABC...", + "valueFieldIdentifier": "properties.price", + "eventsToStandard": [ + { + "from": "Product Searched", + "to": "Search" + }, + { + "to": "ViewContent", + "from": "Product Viewed" + }, + { + "to": "AddToCart", + "from": "Cart Checkout" + }, + { + "to": "AddPaymentInfo", + "from": "Card Details Added" + }, + { + "to": "Lead", + "from": "Order Completed" + }, + { + "to": "CompleteRegistration", + "from": "Signup" + }, + { + "to": "AddToWishlist", + "from": "Button Clicked" + } + ], + "eventsToIds": [ + { + "from": "Search", + "to": "582603376981640" + }, + { + "from": "Search", + "to": "506289934669334" + }, + { + "from": "ViewContent", + "to": "1166826033904512" + }, + { + "from": "AddToCart", + "to": "1148872185708962" + }, + { + "from": "CompleteRegistration", + "to": "597443908839411" + }, + { + "from": "Lead", + "to": "1024592094903800" + } + ] + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "statusCode": 400, + "error": "Please Map Your Standard Events With Event Set Ids", + "statTags": { + "errorCategory": "dataValidation", + "errorType": "configuration", + "destType": "FACEBOOK_OFFLINE_CONVERSIONS", + "module": "destination", + "implementation": "native", + "feature": "processor" + } + } + ] + } + } + }, + { + "name": "facebook_offline_conversions", + "description": "Test 4", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.2" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.2" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/tests/html/ecomm_test.html", + "referrer": "http://0.0.0.0:1112/tests/html/", + "search": "", + "title": "Fb Offline Conversion Ecommerce Test", + "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" + } + }, + "type": "track", + "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", + "originalTimestamp": "2022-09-21T12:05:19.394Z", + "userId": "user@1", + "event": "Product Viewed", + "properties": { + "order_id": "5241735", + "value": 31.98, + "revenue": 31.98, + "shipping": 4, + "coupon": "APPARELSALE", + "currency": "GBP", + "products": [ + { + "id": "product-bacon-jam", + "category": "Merch", + "brand": "" + }, + { + "id": "product-t-shirt", + "category": "Merch", + "brand": "Levis" + }, + { + "id": "offer-t-shirt", + "category": "Merch", + "brand": "Levis" + } + ] + } + }, + "destination": { + "Config": { + "accessToken": "ABC...", + "valueFieldIdentifier": "properties.price", + "eventsToStandard": [ + { + "from": "Product Searched", + "to": "Search" + }, + { + "to": "ViewContent", + "from": "Product Viewed" + }, + { + "to": "AddToCart", + "from": "Cart Checkout" + }, + { + "to": "AddPaymentInfo", + "from": "Card Details Added" + }, + { + "to": "Lead", + "from": "Order Completed" + }, + { + "to": "CompleteRegistration", + "from": "Signup" + }, + { + "to": "AddToWishlist", + "from": "Button Clicked" + } + ], + "eventsToIds": [ + { + "from": "Search", + "to": "582603376981640" + }, + { + "from": "Search", + "to": "506289934669334" + }, + { + "from": "ViewContent", + "to": "1166826033904512" + }, + { + "from": "AddToCart", + "to": "1148872185708962" + }, + { + "from": "CompleteRegistration", + "to": "597443908839411" + }, + { + "from": "Lead", + "to": "1024592094903800" + } + ], + "isHashRequired": true + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://graph.facebook.com/v16.0/1166826033904512/events?upload_tag=rudderstack&data=%5B%7B%22match_keys%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%5D%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22order_id%22%3A%225241735%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Product%20Viewed%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22email%22%3A%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%225241735%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22ViewContent%22%2C%22content_type%22%3A%22product%22%7D%5D&access_token=ABC...", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "facebook_offline_conversions", + "description": "Test 5", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.2" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.2" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/tests/html/ecomm_test.html", + "referrer": "http://0.0.0.0:1112/tests/html/", + "search": "", + "title": "Fb Offline Conversion Ecommerce Test", + "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" + } + }, + "type": "track", + "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", + "originalTimestamp": "2022-09-21T12:05:19.394Z", + "userId": "user@1", + "event": "Product Searched", + "properties": { + "order_id": "5241735", + "value": 31.98, + "revenue": 31.98, + "shipping": 4, + "coupon": "APPARELSALE", + "currency": "GBP", + "products": [ + { + "id": "product-bacon-jam", + "category": "Merch", + "brand": "" + }, + { + "id": "product-t-shirt", + "category": "Merch", + "brand": "Levis" + }, + { + "id": "offer-t-shirt", + "category": "Merch", + "brand": "Levis" + } + ] + } + }, + "destination": { + "Config": { + "accessToken": "ABC...", + "valueFieldIdentifier": "properties.price", + "eventsToStandard": [ + { + "from": "Product Searched", + "to": "Search" + }, + { + "to": "ViewContent", + "from": "Product Viewed" + }, + { + "to": "AddToCart", + "from": "Cart Checkout" + }, + { + "to": "AddPaymentInfo", + "from": "Card Details Added" + }, + { + "to": "Lead", + "from": "Order Completed" + }, + { + "to": "CompleteRegistration", + "from": "Signup" + }, + { + "to": "AddToWishlist", + "from": "Button Clicked" + } + ], + "eventsToIds": [ + { + "from": "Search", + "to": "582603376981640" + }, + { + "from": "Search", + "to": "506289934669334" + }, + { + "from": "ViewContent", + "to": "1166826033904512" + }, + { + "from": "AddToCart", + "to": "1148872185708962" + }, + { + "from": "CompleteRegistration", + "to": "597443908839411" + }, + { + "from": "Lead", + "to": "1024592094903800" + } + ], + "isHashRequired": true + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://graph.facebook.com/v16.0/582603376981640/events?upload_tag=rudderstack&data=%5B%7B%22match_keys%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%5D%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22order_id%22%3A%225241735%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Product%20Searched%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22email%22%3A%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%225241735%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22Search%22%2C%22content_type%22%3A%22product%22%7D%5D&access_token=ABC...", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + }, + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://graph.facebook.com/v16.0/506289934669334/events?upload_tag=rudderstack&data=%5B%7B%22match_keys%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%5D%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22order_id%22%3A%225241735%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Product%20Searched%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22email%22%3A%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%225241735%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22Search%22%2C%22content_type%22%3A%22product%22%7D%5D&access_token=ABC...", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "facebook_offline_conversions", + "description": "Test 6", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.2" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.2" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/tests/html/ecomm_test.html", + "referrer": "http://0.0.0.0:1112/tests/html/", + "search": "", + "title": "Fb Offline Conversion Ecommerce Test", + "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" + } + }, + "type": "track", + "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", + "originalTimestamp": "2022-09-21T12:05:19.394Z", + "userId": "user@1", + "event": "Product Searched", + "properties": { + "order_id": "5241735", + "value": 31.98, + "revenue": 31.98, + "shipping": 4, + "coupon": "APPARELSALE", + "currency": "GBP", + "products": [ + { + "id": "product-bacon-jam", + "category": "Merch", + "brand": "" + }, + { + "id": "product-t-shirt", + "category": "Merch", + "brand": "Levis" + }, + { + "id": "offer-t-shirt", + "category": "Merch", + "brand": "Levis" + } + ] + } + }, + "destination": { + "Config": { + "accessToken": "ABC...", + "valueFieldIdentifier": "properties.price", + "eventsToStandard": [ + { + "from": "Product Searched", + "to": "Search" + }, + { + "to": "ViewContent", + "from": "Product Searched" + }, + { + "to": "AddToCart", + "from": "Cart Checkout" + }, + { + "to": "AddPaymentInfo", + "from": "Card Details Added" + }, + { + "to": "Lead", + "from": "Order Completed" + }, + { + "to": "CompleteRegistration", + "from": "Signup" + }, + { + "to": "AddToWishlist", + "from": "Button Clicked" + } + ], + "eventsToIds": [ + { + "from": "Search", + "to": "582603376981640" + }, + { + "from": "Search", + "to": "506289934669334" + }, + { + "from": "ViewContent", + "to": "1166826033904512" + }, + { + "from": "AddToCart", + "to": "1148872185708962" + }, + { + "from": "CompleteRegistration", + "to": "597443908839411" + }, + { + "from": "Lead", + "to": "1024592094903800" + } + ], + "isHashRequired": true + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://graph.facebook.com/v16.0/582603376981640/events?upload_tag=rudderstack&data=%5B%7B%22match_keys%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%5D%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22order_id%22%3A%225241735%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Product%20Searched%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22email%22%3A%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%225241735%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22ViewContent%22%2C%22content_type%22%3A%22product%22%7D%5D&access_token=ABC...", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + }, + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://graph.facebook.com/v16.0/506289934669334/events?upload_tag=rudderstack&data=%5B%7B%22match_keys%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%5D%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22order_id%22%3A%225241735%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Product%20Searched%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22email%22%3A%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%225241735%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22ViewContent%22%2C%22content_type%22%3A%22product%22%7D%5D&access_token=ABC...", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + }, + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://graph.facebook.com/v16.0/1166826033904512/events?upload_tag=rudderstack&data=%5B%7B%22match_keys%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%5D%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22order_id%22%3A%225241735%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Product%20Searched%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22email%22%3A%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%225241735%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22ViewContent%22%2C%22content_type%22%3A%22product%22%7D%5D&access_token=ABC...", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "facebook_offline_conversions", + "description": "Test 7", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.2" + }, + "traits": { + "email": "test@rudderstack.com" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.2" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/tests/html/ecomm_test.html", + "referrer": "http://0.0.0.0:1112/tests/html/", + "search": "", + "title": "Fb Offline Conversion Ecommerce Test", + "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" + } + }, + "type": "track", + "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", + "originalTimestamp": "2022-09-21T12:05:19.394Z", + "userId": "user@1", + "event": "Product Searched", + "properties": { + "upload_tag": "test campaign", + "order_id": "5241735", + "value": 31.98, + "revenue": 31.98, + "shipping": 4, + "coupon": "APPARELSALE", + "currency": "GBP", + "products": [ + { + "id": "product-bacon-jam", + "category": "Merch", + "brand": "" + }, + { + "id": "product-t-shirt", + "category": "Merch", + "brand": "Levis" + }, + { + "id": "offer-t-shirt", + "category": "Merch", + "brand": "Levis" + } + ] + } + }, + "destination": { + "Config": { + "accessToken": "ABC...", + "valueFieldIdentifier": "properties.price", + "eventsToStandard": [ + { + "from": "Product Searched", + "to": "Search" + }, + { + "to": "ViewContent", + "from": "Product Searched" + }, + { + "to": "AddToCart", + "from": "Cart Checkout" + }, + { + "to": "AddPaymentInfo", + "from": "Card Details Added" + }, + { + "to": "Lead", + "from": "Order Completed" + }, + { + "to": "CompleteRegistration", + "from": "Signup" + }, + { + "to": "AddToWishlist", + "from": "Button Clicked" + } + ], + "eventsToIds": [ + { + "from": "Search", + "to": "582603376981640" + }, + { + "from": "Search", + "to": "506289934669334" + }, + { + "from": "ViewContent", + "to": "1166826033904512" + }, + { + "from": "AddToCart", + "to": "1148872185708962" + }, + { + "from": "CompleteRegistration", + "to": "597443908839411" + }, + { + "from": "Lead", + "to": "1024592094903800" + } + ], + "isHashRequired": true + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://graph.facebook.com/v16.0/582603376981640/events?upload_tag=test campaign&data=%5B%7B%22match_keys%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%5D%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22order_id%22%3A%225241735%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Product%20Searched%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22email%22%3A%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%225241735%22%2C%22upload_tag%22%3A%22test%20campaign%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22ViewContent%22%2C%22content_type%22%3A%22product%22%7D%5D&access_token=ABC...", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + }, + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://graph.facebook.com/v16.0/506289934669334/events?upload_tag=test campaign&data=%5B%7B%22match_keys%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%5D%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22order_id%22%3A%225241735%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Product%20Searched%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22email%22%3A%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%225241735%22%2C%22upload_tag%22%3A%22test%20campaign%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22ViewContent%22%2C%22content_type%22%3A%22product%22%7D%5D&access_token=ABC...", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + }, + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://graph.facebook.com/v16.0/1166826033904512/events?upload_tag=test campaign&data=%5B%7B%22match_keys%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%5D%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22order_id%22%3A%225241735%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Product%20Searched%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22GBP%22%2C%22value%22%3A31.98%2C%22email%22%3A%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%225241735%22%2C%22upload_tag%22%3A%22test%20campaign%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22ViewContent%22%2C%22content_type%22%3A%22product%22%7D%5D&access_token=ABC...", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "facebook_offline_conversions", + "description": "Test 8", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.2" + }, + "traits": { + "email": "test@rudderstack.com", + "birthday": "2005-01-01T23:28:56.782Z", + "firstName": "test", + "name": "test rudderlabs", + "address": { + "city": "kalkata", + "state": "west bangal", + "country": "india", + "zip": "123456" + }, + "phone": "9886775586", + "gender": "male" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.2" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/tests/html/ecomm_test.html", + "referrer": "http://0.0.0.0:1112/tests/html/", + "search": "", + "title": "Fb Offline Conversion Ecommerce Test", + "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" + }, + "device": { + "advertisingId": "apple@123" + } + }, + "type": "track", + "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", + "originalTimestamp": "2022-09-21T12:05:19.394Z", + "userId": "user@1", + "event": "Cart Checkout", + "properties": { + "upload_tag": "test campaign", + "order_id": "485893487985894998", + "value": 100, + "revenue": 31.98, + "shipping": 4, + "coupon": "APPARELSALE", + "currency": "IND", + "products": [ + { + "id": "product-bacon-jam", + "category": "Merch", + "brand": "" + }, + { + "id": "product-t-shirt", + "category": "Merch", + "brand": "Levis" + }, + { + "id": "offer-t-shirt", + "category": "Merch", + "brand": "Levis" + } + ] + } + }, + "destination": { + "Config": { + "accessToken": "ABC...", + "valueFieldIdentifier": "properties.price", + "eventsToStandard": [ + { + "from": "Product Searched", + "to": "Search" + }, + { + "to": "ViewContent", + "from": "Product Searched" + }, + { + "to": "AddToCart", + "from": "Cart Checkout" + }, + { + "to": "AddPaymentInfo", + "from": "Card Details Added" + }, + { + "to": "Lead", + "from": "Order Completed" + }, + { + "to": "CompleteRegistration", + "from": "Signup" + }, + { + "to": "AddToWishlist", + "from": "Button Clicked" + } + ], + "eventsToIds": [ + { + "from": "Search", + "to": "582603376981640" + }, + { + "from": "Search", + "to": "506289934669334" + }, + { + "from": "ViewContent", + "to": "1166826033904512" + }, + { + "from": "AddToCart", + "to": "1148872185708962" + }, + { + "from": "CompleteRegistration", + "to": "597443908839411" + }, + { + "from": "Lead", + "to": "1024592094903800" + } + ], + "isHashRequired": true + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://graph.facebook.com/v16.0/1148872185708962/events?upload_tag=test campaign&data=%5B%7B%22match_keys%22%3A%7B%22doby%22%3A%22f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6%22%2C%22dobm%22%3A%22f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6%22%2C%22dobd%22%3A%22f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6%22%2C%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%5D%2C%22phone%22%3A%5B%2274a39482392f83119041d571d5dace439d315faea8214fe8e815c00261b80615%22%5D%2C%22gen%22%3A%220d248e82c62c9386878327d491c762a002152d42ab2c391a31c44d9f62675ddf%22%2C%22fn%22%3A%229f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08%22%2C%22ct%22%3A%22375aba919c30870659093b7ddcf6045ff7a8624dd4dba49ced8981bd4d0666e0%22%2C%22zip%22%3A%5B%228d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92%22%5D%2C%22madid%22%3A%22c20fa16907343eef642d10f0bdb81bf629e6aaf6c906f26eabda079ca9e5ab67%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22ln%22%3A%22dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22IND%22%2C%22value%22%3A100%2C%22order_id%22%3A%22485893487985894998%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Cart%20Checkout%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22IND%22%2C%22value%22%3A100%2C%22email%22%3A%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%2C%22phone%22%3A%2274a39482392f83119041d571d5dace439d315faea8214fe8e815c00261b80615%22%2C%22gen%22%3A%220d248e82c62c9386878327d491c762a002152d42ab2c391a31c44d9f62675ddf%22%2C%22fn%22%3A%229f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08%22%2C%22ct%22%3A%22375aba919c30870659093b7ddcf6045ff7a8624dd4dba49ced8981bd4d0666e0%22%2C%22zip%22%3A%228d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92%22%2C%22madid%22%3A%22c20fa16907343eef642d10f0bdb81bf629e6aaf6c906f26eabda079ca9e5ab67%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%22485893487985894998%22%2C%22upload_tag%22%3A%22test%20campaign%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22ln%22%3A%22dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22AddToCart%22%2C%22content_type%22%3A%22product%22%7D%5D&access_token=ABC...", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "facebook_offline_conversions", + "description": "Test 9", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.2" + }, + "traits": { + "email": "test@rudderstack.com", + "birthday": "2005-01-01T23:28:56.782Z", + "firstName": "test", + "name": "test rudderlabs", + "address": { + "city": "kalkata", + "state": "west bangal", + "country": "india", + "zip": "123456" + }, + "phone": "9886775586", + "gender": "male" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.2" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/tests/html/ecomm_test.html", + "referrer": "http://0.0.0.0:1112/tests/html/", + "search": "", + "title": "Fb Offline Conversion Ecommerce Test", + "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" + }, + "device": { + "advertisingId": "apple@123" + } + }, + "type": "track", + "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", + "originalTimestamp": "2022-09-21T12:05:19.394Z", + "userId": "user@1", + "event": "Cart Checkout", + "properties": { + "upload_tag": "test campaign", + "order_id": "485893487985894998", + "value": 100, + "revenue": 31.98, + "shipping": 4, + "coupon": "APPARELSALE", + "currency": "IND", + "products": [ + { + "id": "product-bacon-jam", + "category": "Merch", + "brand": "" + }, + { + "id": "product-t-shirt", + "category": "Merch", + "brand": "Levis" + }, + { + "id": "offer-t-shirt", + "category": "Merch", + "brand": "Levis" + } + ] + } + }, + "destination": { + "Config": { + "accessToken": "ABC...", + "valueFieldIdentifier": "properties.price", + "eventsToStandard": [ + { + "from": "Product Searched", + "to": "Search" + }, + { + "to": "ViewContent", + "from": "Product Searched" + }, + { + "to": "AddToCart", + "from": "Cart Checkout" + }, + { + "to": "AddPaymentInfo", + "from": "Card Details Added" + }, + { + "to": "Lead", + "from": "Order Completed" + }, + { + "to": "CompleteRegistration", + "from": "Signup" + }, + { + "to": "AddToWishlist", + "from": "Button Clicked" + } + ], + "eventsToIds": [ + { + "from": "Search", + "to": "582603376981640" + }, + { + "from": "Search", + "to": "506289934669334" + }, + { + "from": "ViewContent", + "to": "1166826033904512" + }, + { + "from": "AddToCart", + "to": "1148872185708962" + }, + { + "from": "CompleteRegistration", + "to": "597443908839411" + }, + { + "from": "Lead", + "to": "1024592094903800" + } + ], + "isHashRequired": false + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://graph.facebook.com/v16.0/1148872185708962/events?upload_tag=test campaign&data=%5B%7B%22match_keys%22%3A%7B%22doby%22%3A%22f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6%22%2C%22dobm%22%3A%22f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6%22%2C%22dobd%22%3A%22f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6%22%2C%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%22test%40rudderstack.com%22%5D%2C%22phone%22%3A%5B%229886775586%22%5D%2C%22gen%22%3A%22male%22%2C%22fn%22%3A%22test%22%2C%22ct%22%3A%22kalkata%22%2C%22zip%22%3A%5B%22123456%22%5D%2C%22madid%22%3A%22apple%40123%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22ln%22%3A%22rudderlabs%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22IND%22%2C%22value%22%3A100%2C%22order_id%22%3A%22485893487985894998%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Cart%20Checkout%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22IND%22%2C%22value%22%3A100%2C%22email%22%3A%22test%40rudderstack.com%22%2C%22phone%22%3A%229886775586%22%2C%22gen%22%3A%22male%22%2C%22fn%22%3A%22test%22%2C%22ct%22%3A%22kalkata%22%2C%22zip%22%3A%22123456%22%2C%22madid%22%3A%22apple%40123%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%22485893487985894998%22%2C%22upload_tag%22%3A%22test%20campaign%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22ln%22%3A%22rudderlabs%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22AddToCart%22%2C%22content_type%22%3A%22product%22%7D%5D&access_token=ABC...", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + }, + { + "name": "facebook_offline_conversions", + "description": "Test 10", + "feature": "processor", + "module": "destination", + "version": "v0", + "input": { + "request": { + "body": [ + { + "message": { + "channel": "web", + "context": { + "app": { + "build": "1.0.0", + "name": "RudderLabs JavaScript SDK", + "namespace": "com.rudderlabs.javascript", + "version": "1.1.2" + }, + "traits": { + "email": "test@rudderstack.com", + "birthday": "2005-01-01T23:28:56.782Z", + "firstName": "test", + "name": "test rudderlabs", + "address": { + "city": "kalkata", + "state": "west bangal", + "country": "india", + "zip": "123456" + }, + "phone": "9886775586", + "gender": "male" + }, + "library": { + "name": "RudderLabs JavaScript SDK", + "version": "1.1.2" + }, + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", + "locale": "en-GB", + "os": { + "name": "", + "version": "" + }, + "screen": { + "density": 2 + }, + "page": { + "path": "/tests/html/ecomm_test.html", + "referrer": "http://0.0.0.0:1112/tests/html/", + "search": "", + "title": "Fb Offline Conversion Ecommerce Test", + "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" + }, + "device": { + "advertisingId": "apple@123" + } + }, + "integrations": { + "FacebookOfflineConversions": { + "contentType": "e-commerce" + } + }, + "type": "track", + "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", + "originalTimestamp": "2022-09-21T12:05:19.394Z", + "userId": "user@1", + "event": "Cart Checkout", + "properties": { + "upload_tag": "test campaign", + "order_id": "485893487985894998", + "value": 100, + "revenue": 31.98, + "shipping": 4, + "coupon": "APPARELSALE", + "currency": "IND", + "products": [ + { + "id": "product-bacon-jam", + "category": "Merch", + "brand": "" + }, + { + "id": "product-t-shirt", + "category": "Merch", + "brand": "Levis" + }, + { + "id": "offer-t-shirt", + "category": "Merch", + "brand": "Levis" + } + ] + } + }, + "destination": { + "Config": { + "accessToken": "ABC...", + "valueFieldIdentifier": "properties.price", + "eventsToStandard": [ + { + "from": "Product Searched", + "to": "Search" + }, + { + "to": "ViewContent", + "from": "Product Searched" + }, + { + "to": "AddToCart", + "from": "Cart Checkout" + }, + { + "to": "AddPaymentInfo", + "from": "Card Details Added" + }, + { + "to": "Lead", + "from": "Order Completed" + }, + { + "to": "CompleteRegistration", + "from": "Signup" + }, + { + "to": "AddToWishlist", + "from": "Button Clicked" + } + ], + "eventsToIds": [ + { + "from": "Search", + "to": "582603376981640" + }, + { + "from": "Search", + "to": "506289934669334" + }, + { + "from": "ViewContent", + "to": "1166826033904512" + }, + { + "from": "AddToCart", + "to": "1148872185708962" + }, + { + "from": "CompleteRegistration", + "to": "597443908839411" + }, + { + "from": "Lead", + "to": "1024592094903800" + } + ], + "categoryToContent": [ + { + "from": "", + "to": "" + } + ], + "isHashRequired": true + } + } + } + ] + } + }, + "output": { + "response": { + "status": 200, + "body": [ + { + "output": { + "version": "1", + "type": "REST", + "method": "POST", + "endpoint": "https://graph.facebook.com/v16.0/1148872185708962/events?upload_tag=test campaign&data=%5B%7B%22match_keys%22%3A%7B%22doby%22%3A%22f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6%22%2C%22dobm%22%3A%22f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6%22%2C%22dobd%22%3A%22f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6%22%2C%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%5D%2C%22phone%22%3A%5B%2274a39482392f83119041d571d5dace439d315faea8214fe8e815c00261b80615%22%5D%2C%22gen%22%3A%220d248e82c62c9386878327d491c762a002152d42ab2c391a31c44d9f62675ddf%22%2C%22fn%22%3A%229f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08%22%2C%22ct%22%3A%22375aba919c30870659093b7ddcf6045ff7a8624dd4dba49ced8981bd4d0666e0%22%2C%22zip%22%3A%5B%228d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92%22%5D%2C%22madid%22%3A%22c20fa16907343eef642d10f0bdb81bf629e6aaf6c906f26eabda079ca9e5ab67%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22ln%22%3A%22dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22IND%22%2C%22value%22%3A100%2C%22order_id%22%3A%22485893487985894998%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Cart%20Checkout%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22IND%22%2C%22value%22%3A100%2C%22email%22%3A%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%2C%22phone%22%3A%2274a39482392f83119041d571d5dace439d315faea8214fe8e815c00261b80615%22%2C%22gen%22%3A%220d248e82c62c9386878327d491c762a002152d42ab2c391a31c44d9f62675ddf%22%2C%22fn%22%3A%229f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08%22%2C%22ct%22%3A%22375aba919c30870659093b7ddcf6045ff7a8624dd4dba49ced8981bd4d0666e0%22%2C%22zip%22%3A%228d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92%22%2C%22madid%22%3A%22c20fa16907343eef642d10f0bdb81bf629e6aaf6c906f26eabda079ca9e5ab67%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%22485893487985894998%22%2C%22upload_tag%22%3A%22test%20campaign%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22ln%22%3A%22dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22AddToCart%22%2C%22content_type%22%3A%22e-commerce%22%7D%5D&access_token=ABC...", + "headers": {}, + "params": {}, + "body": { + "JSON": {}, + "JSON_ARRAY": {}, + "XML": {}, + "FORM": {} + }, + "files": {}, + "userId": "" + }, + "statusCode": 200 + } + ] + } + } + } +] \ No newline at end of file From 5f31eeb9c60af44187a2004ddebc29dd08108f2f Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Mon, 16 Oct 2023 08:37:10 +0530 Subject: [PATCH 5/9] test: add router cases for all destinations --- .../destinations/algolia/router/data.ts | 2363 +++++++++++++++++ .../destinations/appcues/router/data.ts | 221 ++ .../destinations/attentive_tag/router/data.ts | 122 + .../destinations/autopilot/router/data.ts | 317 +++ .../destinations/blueshift/router/data.ts | 348 +++ .../destinations/branch/router/data.ts | 276 ++ .../campaign_manager/router/data.ts | 464 ++++ .../destinations/candu/router/data.ts | 212 ++ .../destinations/courier/router/data.ts | 160 ++ .../criteo_audience/router/data.ts | 270 ++ .../destinations/customerio/router/data.ts | 436 +++ .../router/data.ts | 705 +++++ .../facebook_pixel/router/data.ts | 311 +++ 13 files changed, 6205 insertions(+) create mode 100644 test/integrations/destinations/algolia/router/data.ts create mode 100644 test/integrations/destinations/appcues/router/data.ts create mode 100644 test/integrations/destinations/attentive_tag/router/data.ts create mode 100644 test/integrations/destinations/autopilot/router/data.ts create mode 100644 test/integrations/destinations/blueshift/router/data.ts create mode 100644 test/integrations/destinations/branch/router/data.ts create mode 100644 test/integrations/destinations/campaign_manager/router/data.ts create mode 100644 test/integrations/destinations/candu/router/data.ts create mode 100644 test/integrations/destinations/courier/router/data.ts create mode 100644 test/integrations/destinations/criteo_audience/router/data.ts create mode 100644 test/integrations/destinations/customerio/router/data.ts create mode 100644 test/integrations/destinations/facebook_offline_conversions/router/data.ts create mode 100644 test/integrations/destinations/facebook_pixel/router/data.ts diff --git a/test/integrations/destinations/algolia/router/data.ts b/test/integrations/destinations/algolia/router/data.ts new file mode 100644 index 0000000000..aaf3e224e3 --- /dev/null +++ b/test/integrations/destinations/algolia/router/data.ts @@ -0,0 +1,2363 @@ +export const data = [ + { + name: 'algolia', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'track', + event: 'product list viewed', + sentAt: '2021-10-25T09:40:08.880Z', + userId: 'test-user-id1', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.2.1', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:5500/index.html', + path: '/index.html', + title: 'Test', + search: '', + tab_url: 'http://127.0.0.1:5500/index.html', + referrer: 'http://127.0.0.1:5500/index.html', + initial_referrer: 'http://127.0.0.1:5500/index.html', + referring_domain: '127.0.0.1:5500', + initial_referring_domain: '127.0.0.1:5500', + }, + locale: 'en-GB', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 1440, + innerHeight: 335, + }, + traits: { + city: 'Brussels', + email: 'testemail@email.com', + phone: '1234567890', + country: 'Belgium', + firstName: 'Tintin', + custom_date: 1574769933368, + custom_date1: '2019-10-14T11:15:53.296Z', + custom_flavor: 'chocolate', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.2.1', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', + }, + rudderId: 'e3e907f1-f79a-444b-b91d-da47488f8273', + messageId: '8cdd3d2e-5e07-42ec-abdc-9b6bd4333840', + timestamp: '2021-10-25T15:10:08.888+05:30', + properties: { + index: 'products', + queryId: '43b15df305339e827f0ac0bdc5ebcaa7', + products: [ + { + objectId: 'ecommerce-sample-data-919', + position: 7, + }, + { + objectId: '9780439784542', + position: 8, + }, + ], + }, + receivedAt: '2021-10-25T15:10:08.889+05:30', + request_ip: '[::1]', + anonymousId: '7138f7d9-5dd2-4337-805d-ca17be59dc8e', + integrations: { + All: true, + }, + originalTimestamp: '2021-10-25T09:40:08.879Z', + }, + metadata: { + jobId: 1, + }, + destination: { + ID: '1zzHtStW2ZPlullmz6L7DGnmk9V', + Name: 'algolia-dev', + DestinationDefinition: { + ID: '1zgVZhcj1Tij4qlKg7B1Jp16IrH', + Name: 'ALGOLIA', + DisplayName: 'Algolia', + Config: { + destConfig: { + defaultConfig: ['apiKey', 'applicationId', 'eventTypeSettings'], + }, + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + secretKeys: ['apiKey', 'applicationId'], + supportedMessageTypes: ['track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'apiKey', + applicationId: 'appId', + eventTypeSettings: [ + { + from: 'product clicked', + to: 'click', + }, + { + from: 'product list viewed', + to: 'view', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + message: { + type: 'track', + event: 'product clicked', + sentAt: '2021-10-25T09:40:08.886Z', + userId: 'test-user-id1', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + build: '1.0.0', + version: '1.2.1', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:5500/index.html', + path: '/index.html', + title: 'Test', + search: '', + tab_url: 'http://127.0.0.1:5500/index.html', + referrer: 'http://127.0.0.1:5500/index.html', + initial_referrer: 'http://127.0.0.1:5500/index.html', + referring_domain: '127.0.0.1:5500', + initial_referring_domain: '127.0.0.1:5500', + }, + locale: 'en-GB', + screen: { + width: 1440, + height: 900, + density: 2, + innerWidth: 1440, + innerHeight: 335, + }, + traits: { + city: 'Brussels', + email: 'testemail@email.com', + phone: '1234567890', + country: 'Belgium', + firstName: 'Tintin', + custom_date: 1574769933368, + custom_date1: '2019-10-14T11:15:53.296Z', + custom_flavor: 'chocolate', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.2.1', + }, + campaign: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', + }, + rudderId: 'e3e907f1-f79a-444b-b91d-da47488f8273', + messageId: '7b58e140-b66b-4e88-a5ec-bd6811fc3836', + timestamp: '2021-10-25T15:10:08.943+05:30', + properties: { + index: 'products', + filters: ['field1:hello', 'val1:val2'], + }, + receivedAt: '2021-10-25T15:10:08.943+05:30', + request_ip: '[::1]', + anonymousId: '7138f7d9-5dd2-4337-805d-ca17be59dc8e', + integrations: { + All: true, + }, + originalTimestamp: '2021-10-25T09:40:08.886Z', + }, + metadata: { + jobId: 2, + }, + destination: { + ID: '1zzHtStW2ZPlullmz6L7DGnmk9V', + Name: 'algolia-dev', + DestinationDefinition: { + ID: '1zgVZhcj1Tij4qlKg7B1Jp16IrH', + Name: 'ALGOLIA', + DisplayName: 'Algolia', + Config: { + destConfig: { + defaultConfig: ['apiKey', 'applicationId', 'eventTypeSettings'], + }, + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + secretKeys: ['apiKey', 'applicationId'], + supportedMessageTypes: ['track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'apiKey-2', + applicationId: 'appId-2', + eventTypeSettings: [ + { + from: 'product clicked', + to: 'click', + }, + { + from: 'product list viewed', + to: 'view', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'testone@gmail.com', + firstName: 'test', + lastName: 'one', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '/destinations/ometria', + referrer: '', + search: '', + title: '', + url: 'https://docs.rudderstack.com/destinations/ometria', + category: 'destination', + initial_referrer: 'https://docs.rudderstack.com', + initial_referring_domain: 'docs.rudderstack.com', + }, + }, + type: 'track', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + event: 'product clicked', + userId: 'testuserId1', + properties: { + filters: ['field1:hello', 'val1:val2'], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 3, + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + applicationId: 'O2YARRI15I', + eventTypeSettings: [ + { + from: 'product clicked', + to: 'cLick ', + }, + ], + }, + }, + }, + ], + destType: 'algolia', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://insights.algolia.io/1/events', + headers: { + 'X-Algolia-Application-Id': 'appId', + 'X-Algolia-API-Key': 'apiKey', + }, + params: {}, + body: { + JSON: { + events: [ + { + index: 'products', + userToken: 'test-user-id1', + queryID: '43b15df305339e827f0ac0bdc5ebcaa7', + eventName: 'product list viewed', + eventType: 'view', + objectIDs: ['ecommerce-sample-data-919', '9780439784542'], + }, + { + index: 'products', + userToken: 'test-user-id1', + filters: ['field1:hello', 'val1:val2'], + eventName: 'product clicked', + eventType: 'click', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 1, + }, + { + jobId: 2, + }, + ], + batched: true, + statusCode: 200, + destination: { + ID: '1zzHtStW2ZPlullmz6L7DGnmk9V', + Name: 'algolia-dev', + DestinationDefinition: { + ID: '1zgVZhcj1Tij4qlKg7B1Jp16IrH', + Name: 'ALGOLIA', + DisplayName: 'Algolia', + Config: { + destConfig: { + defaultConfig: ['apiKey', 'applicationId', 'eventTypeSettings'], + }, + excludeKeys: [], + includeKeys: [], + saveDestinationResponse: true, + secretKeys: ['apiKey', 'applicationId'], + supportedMessageTypes: ['track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'apiKey', + applicationId: 'appId', + eventTypeSettings: [ + { + from: 'product clicked', + to: 'click', + }, + { + from: 'product list viewed', + to: 'view', + }, + ], + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + batched: false, + destination: { + Config: { + apiKey: 'dummyApiKey', + applicationId: 'O2YARRI15I', + eventTypeSettings: [ + { + from: 'product clicked', + to: 'cLick ', + }, + ], + }, + }, + error: 'Missing required value from "properties.index"', + metadata: [ + { + jobId: 3, + }, + ], + statTags: { + destType: 'ALGOLIA', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + }, + ], + }, + }, + }, + }, + { + name: 'algolia', + description: 'Test 1', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'track', + event: 'Product List Viewed', + sentAt: '2023-06-19T22:22:34.928Z', + userId: 'anonymous', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + version: '2.35.0', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'https://m2-staging.ecmdi.com/supplies/air-distribution/grilles', + path: '/supplies/air-distribution/grilles/', + title: 'Grilles - Air Distribution - Supplies | East Coast Metal Distributors', + search: '', + tab_url: 'https://m2-staging.ecmdi.com/supplies/air-distribution/grilles', + referrer: 'https://m2-staging.ecmdi.com/', + initial_referrer: 'https://m2-staging.ecmdi.com/', + referring_domain: 'm2-staging.ecmdi.com', + initial_referring_domain: 'm2-staging.ecmdi.com', + }, + locale: 'en', + screen: { + width: 2560, + height: 1440, + density: 1, + innerWidth: 2514, + innerHeight: 567, + }, + traits: { + loggedIn: false, + customerId: 'anonymous', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '2.35.0', + }, + campaign: {}, + sessionId: 1687204412379, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0', + trackingPlanId: 'tp_2P3vmVzstHPms8hwcqHYwgBjIC7', + violationErrors: [ + { + meta: { + schemaPath: '#/properties/properties/properties/list_id/type', + instacePath: '/properties/list_id', + }, + type: 'Datatype-Mismatch', + message: 'must be string', + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/0', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/0', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/0', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/0', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/0', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/0', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/0', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/1', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/1', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/1', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/1', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/1', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/1', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/1', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/2', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/2', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/2', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/2', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/2', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/2', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/2', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/3', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/3', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/3', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/3', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/3', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/3', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/3', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/4', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/4', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/4', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/4', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/4', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/4', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/4', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/5', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/5', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/5', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/5', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/5', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/5', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/5', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/6', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/6', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/6', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/6', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/6', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/6', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/6', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/7', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/7', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/7', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/7', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/7', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/7', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/7', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/8', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/8', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/8', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/8', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/8', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/8', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/8', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/9', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/9', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/9', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/9', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/9', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/9', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/9', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/10', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/10', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/10', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/10', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/10', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/10', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/10', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/11', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/11', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/11', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/11', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/11', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/11', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/11', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/12', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/12', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/12', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/12', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/12', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/12', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/12', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/13', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/13', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/13', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/13', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/13', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/13', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/13', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/14', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/14', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/14', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/14', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/14', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/14', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/14', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/15', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/15', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/15', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/15', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/15', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/15', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/15', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/16', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/16', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/16', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/16', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/16', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/16', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/16', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/17', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/17', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/17', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/17', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/17', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/17', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/17', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/18', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'bu_product_num'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/18', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'erp_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/18', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/18', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'list_name'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/18', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'location_id'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/18', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'mpn'", + }, + { + meta: { + schemaPath: + '#/properties/properties/properties/products/items/additionalProperties', + instacePath: '/properties/products/18', + }, + type: 'Additional-Properties', + message: "must NOT have additional properties 'pim_id'", + }, + ], + trackingPlanVersion: 2, + }, + rudderId: '0d1f77df-5882-402a-a69f-d2dfe3175ebc', + timestamp: '2023-06-19T19:54:39.188Z', + properties: { + index: 'ecm_stg_product', + list_id: 1100000063100, + queryId: 'eafb6ef1081263626abce46671147dc0', + products: [ + { + mpn: '190RF14X20', + sku: '1367585787601', + name: '14" x 20" Stamped Face Return Air Filter Grille with Removable Face - White', + brand: 'TRUaire', + price: 0, + erp_id: '168782', + pim_id: '1367585787601', + list_id: 1100000063100, + category: 'Grilles', + position: 1, + list_name: 'Grilles', + product_id: '49765', + location_id: 1, + bu_product_num: '49765', + }, + { + mpn: '190RF20X20', + sku: '1367585788656', + name: '20" x 20" Stamped Face Return Air Filter Grille with Removable Face - White', + brand: 'TRUaire', + price: 0, + erp_id: '168790', + pim_id: '1367585788656', + list_id: 1100000063100, + category: 'Grilles', + position: 2, + list_name: 'Grilles', + product_id: '49773', + location_id: 1, + bu_product_num: '49773', + }, + { + mpn: '210VM10X04', + sku: '1367585790735', + name: '10" x 4" Bar Type Supply Sidewall/Ceiling Register - White', + brand: 'TRUaire', + price: 0, + erp_id: '300529', + pim_id: '1367585790735', + list_id: 1100000063100, + category: 'Grilles', + position: 3, + list_name: 'Grilles', + product_id: '300529A', + location_id: 1, + bu_product_num: '300529A', + }, + { + mpn: '17014X06', + sku: '1367585782036', + name: '14" x 6" Stamped Face Return Air Grille - White', + brand: 'TRUaire', + price: 0, + erp_id: '168752', + pim_id: '1367585782036', + list_id: 1100000063100, + category: 'Grilles', + position: 4, + list_name: 'Grilles', + product_id: '49741', + location_id: 1, + bu_product_num: '49741', + }, + { + mpn: '17014X04', + sku: '1367585782285', + name: '14" x 4" Stamped Face Return Air Grille - White', + brand: 'TRUaire', + price: 0, + erp_id: '168751', + pim_id: '1367585782285', + list_id: 1100000063100, + category: 'Grilles', + position: 5, + list_name: 'Grilles', + product_id: '49740', + location_id: 1, + bu_product_num: '49740', + }, + { + mpn: '190RF14X14', + sku: '1367585790111', + name: '14" x 14" Stamped Face Return Air Filter Grille with Removable Face - White', + brand: 'TRUaire', + price: 0, + erp_id: '168781', + pim_id: '1367585790111', + list_id: 1100000063100, + category: 'Grilles', + position: 6, + list_name: 'Grilles', + product_id: '49764', + location_id: 1, + bu_product_num: '49764', + }, + { + mpn: '17014X10', + sku: '1367585783304', + name: '14" x 10" Stamped Face Return Air Grille - White', + brand: 'TRUaire', + price: 0, + erp_id: '168755', + pim_id: '1367585783304', + list_id: 1100000063100, + category: 'Grilles', + position: 7, + list_name: 'Grilles', + product_id: '49743', + location_id: 1, + bu_product_num: '49743', + }, + { + mpn: '210VM12X04', + sku: '1367585791531', + name: '12" x 4" Bar Type Supply Sidewall/Ceiling Register - White', + brand: 'TRUaire', + price: 0, + erp_id: '240862', + pim_id: '1367585791531', + list_id: 1100000063100, + category: 'Grilles', + position: 8, + list_name: 'Grilles', + product_id: '49934', + location_id: 1, + bu_product_num: '49934', + }, + { + mpn: '190RF20X25', + sku: '1367585788307', + name: '20" x 25" Stamped Face Return Air Filter Grille with Removable Face - White', + brand: 'TRUaire', + price: 0, + erp_id: '168791', + pim_id: '1367585788307', + list_id: 1100000063100, + category: 'Grilles', + position: 9, + list_name: 'Grilles', + product_id: '49774', + location_id: 1, + bu_product_num: '49774', + }, + { + mpn: '190RF20X14', + sku: '1367585789457', + name: '20" x 14" Stamped Face Return Air Filter Grille with Removable Face - White', + brand: 'TRUaire', + price: 0, + erp_id: '168788', + pim_id: '1367585789457', + list_id: 1100000063100, + category: 'Grilles', + position: 10, + list_name: 'Grilles', + product_id: '49771', + location_id: 1, + bu_product_num: '49771', + }, + { + mpn: '401M10X04', + sku: '1367585800344', + name: '10" x 4" Stamped Curved Blade Supply Sidewall/Ceiling Register', + brand: 'TRUaire', + price: 0, + erp_id: '300734', + pim_id: '1367585800344', + list_id: 1100000063100, + category: 'Grilles', + position: 11, + list_name: 'Grilles', + product_id: '300734A', + location_id: 1, + bu_product_num: '300734A', + }, + { + mpn: '190RF14X25', + sku: '1367585787467', + name: '14" x 25" Stamped Face Return Air Filter Grille with Removable Face - White', + brand: 'TRUaire', + price: 0, + erp_id: '168783', + pim_id: '1367585787467', + list_id: 1100000063100, + category: 'Grilles', + position: 12, + list_name: 'Grilles', + product_id: '49766', + location_id: 1, + bu_product_num: '49766', + }, + { + mpn: '17020X10', + sku: '1367585783058', + name: '20" x 10" Stamped Face Return Air Grille - White', + brand: 'TRUaire', + price: 0, + erp_id: '219506', + pim_id: '1367585783058', + list_id: 1100000063100, + category: 'Grilles', + position: 13, + list_name: 'Grilles', + product_id: '49881', + location_id: 1, + bu_product_num: '49881', + }, + { + mpn: '17020X08', + sku: '1367585783494', + name: '20" x 8" Stamped Face Return Air Grille - White', + brand: 'TRUaire', + price: 0, + erp_id: '210374', + pim_id: '1367585783494', + list_id: 1100000063100, + category: 'Grilles', + position: 14, + list_name: 'Grilles', + product_id: '210374A', + location_id: 1, + bu_product_num: '210374A', + }, + { + mpn: '190RF12X12', + sku: '1367585787042', + name: '12" x 12" Stamped Face Return Air Filter Grille with Removable Face - White', + brand: 'TRUaire', + price: 0, + erp_id: '168777', + pim_id: '1367585787042', + list_id: 1100000063100, + category: 'Grilles', + position: 15, + list_name: 'Grilles', + product_id: '49761', + location_id: 1, + bu_product_num: '49761', + }, + { + mpn: '210VM14X04', + sku: '1367585793228', + name: '14" x 4" Bar Type Supply Sidewall/Ceiling Register - White', + brand: 'TRUaire', + price: 0, + erp_id: '232771', + pim_id: '1367585793228', + list_id: 1100000063100, + category: 'Grilles', + position: 16, + list_name: 'Grilles', + product_id: '49907', + location_id: 1, + bu_product_num: '49907', + }, + { + mpn: '17014X144', + sku: '1367585783124', + name: '14" x 14" Stamped Face Return Air Grille - White - 4 Holes', + brand: 'TRUaire', + price: 0, + erp_id: '168757', + pim_id: '1367585783124', + list_id: 1100000063100, + category: 'Grilles', + position: 17, + list_name: 'Grilles', + product_id: '49744', + location_id: 1, + bu_product_num: '49744', + }, + { + mpn: '190RF20X30', + sku: '1367585788366', + name: '20" x 30" Stamped Face Return Air Filter Grille with Removable Face - White', + brand: 'TRUaire', + price: 0, + erp_id: '168792', + pim_id: '1367585788366', + list_id: 1100000063100, + category: 'Grilles', + position: 18, + list_name: 'Grilles', + product_id: '49775', + location_id: 1, + bu_product_num: '49775', + }, + { + mpn: '190RF16X25', + sku: '1367585788996', + name: '16" x 25" Stamped Face Return Air Filter Grille with Removable Face - White', + brand: 'TRUaire', + price: 0, + erp_id: '168786', + pim_id: '1367585788996', + list_id: 1100000063100, + category: 'Grilles', + position: 19, + list_name: 'Grilles', + product_id: '49769', + location_id: 1, + bu_product_num: '49769', + }, + ], + eventName: 'productListView', + eventType: 'view', + list_name: 'Grilles', + objectIds: [ + '1367585787601', + '1367585788656', + '1367585790735', + '1367585782036', + '1367585782285', + '1367585790111', + '1367585783304', + '1367585791531', + '1367585788307', + '1367585789457', + '1367585800344', + '1367585787467', + '1367585783058', + '1367585783494', + '1367585787042', + '1367585793228', + '1367585783124', + '1367585788366', + '1367585788996', + ], + positions: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], + userToken: 'anonymous', + }, + receivedAt: '2023-06-19T22:22:32.431Z', + request_ip: '104.205.211.60', + anonymousId: '7b701174-5998-480e-a4df-b322d0ec9d1c', + integrations: { + All: true, + }, + originalTimestamp: '2023-06-19T19:54:41.686Z', + }, + destination: { + secretConfig: {}, + Config: { + apiKey: 'apiKey', + applicationId: 'appId', + eventTypeSettings: [ + { + from: 'productClicked', + to: 'click', + }, + { + from: 'product list filtered', + to: 'click', + }, + { + from: 'Product List Viewed', + to: 'view', + }, + { + from: 'Order Completed', + to: 'conversion', + }, + { + from: 'Product Added', + to: 'click', + }, + ], + oneTrustCookieCategories: [], + eventDelivery: false, + eventDeliveryTS: 1687213909459, + }, + liveEventsConfig: { + eventDelivery: false, + eventDeliveryTS: 1687213909459, + }, + id: 'destId', + workspaceId: 'wspId', + DestinationDefinition: { + Config: { + destConfig: { + defaultConfig: [ + 'apiKey', + 'applicationId', + 'eventTypeSettings', + 'oneTrustCookieCategories', + ], + }, + secretKeys: ['apiKey', 'applicationId'], + excludeKeys: [], + includeKeys: ['oneTrustCookieCategories'], + transformAt: 'router', + cdkV2Enabled: true, + transformAtV1: 'router', + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + 'warehouse', + ], + supportedMessageTypes: ['track'], + saveDestinationResponse: true, + }, + configSchema: {}, + responseRules: {}, + options: null, + id: '1xrHTzX8VrnvL6FTGOrBBgT687S', + name: 'ALGOLIA', + displayName: 'Algolia', + category: null, + createdAt: '2021-09-08T13:04:58.041Z', + updatedAt: '2023-06-13T13:18:08.335Z', + }, + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + name: 'my_algolia', + enabled: true, + deleted: false, + createdAt: '2023-05-26T14:18:01.205Z', + updatedAt: '2023-06-19T22:31:49.460Z', + revisionId: 'revisionId1', + secretVersion: 7, + }, + metadata: { + sourceId: 'srcId', + workspaceId: 'wspId', + destinationId: 'destId', + jobId: 12, + }, + }, + ], + destType: 'algolia', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batched: true, + batchedRequest: { + body: { + FORM: {}, + JSON: { + events: [ + { + eventName: 'product list viewed', + eventType: 'view', + index: 'ecm_stg_product', + objectIDs: [ + '1367585787601', + '1367585788656', + '1367585790735', + '1367585782036', + '1367585782285', + '1367585790111', + '1367585783304', + '1367585791531', + '1367585788307', + '1367585789457', + '1367585800344', + '1367585787467', + '1367585783058', + '1367585783494', + '1367585787042', + '1367585793228', + '1367585783124', + '1367585788366', + '1367585788996', + ], + queryID: 'eafb6ef1081263626abce46671147dc0', + userToken: 'anonymous', + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: 'https://insights.algolia.io/1/events', + files: {}, + headers: { + 'X-Algolia-API-Key': 'apiKey', + 'X-Algolia-Application-Id': 'appId', + }, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + }, + destination: { + Config: { + apiKey: 'apiKey', + applicationId: 'appId', + eventDelivery: false, + eventDeliveryTS: 1687213909459, + eventTypeSettings: [ + { + from: 'productClicked', + to: 'click', + }, + { + from: 'product list filtered', + to: 'click', + }, + { + from: 'Product List Viewed', + to: 'view', + }, + { + from: 'Order Completed', + to: 'conversion', + }, + { + from: 'Product Added', + to: 'click', + }, + ], + oneTrustCookieCategories: [], + }, + DestinationDefinition: { + Config: { + cdkV2Enabled: true, + destConfig: { + defaultConfig: [ + 'apiKey', + 'applicationId', + 'eventTypeSettings', + 'oneTrustCookieCategories', + ], + }, + excludeKeys: [], + includeKeys: ['oneTrustCookieCategories'], + saveDestinationResponse: true, + secretKeys: ['apiKey', 'applicationId'], + supportedMessageTypes: ['track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + 'warehouse', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + category: null, + configSchema: {}, + createdAt: '2021-09-08T13:04:58.041Z', + displayName: 'Algolia', + id: '1xrHTzX8VrnvL6FTGOrBBgT687S', + name: 'ALGOLIA', + options: null, + responseRules: {}, + updatedAt: '2023-06-13T13:18:08.335Z', + }, + createdAt: '2023-05-26T14:18:01.205Z', + deleted: false, + enabled: true, + id: 'destId', + isConnectionEnabled: true, + isProcessorEnabled: true, + liveEventsConfig: { + eventDelivery: false, + eventDeliveryTS: 1687213909459, + }, + name: 'my_algolia', + revisionId: 'revisionId1', + secretConfig: {}, + secretVersion: 7, + transformations: [], + updatedAt: '2023-06-19T22:31:49.460Z', + workspaceId: 'wspId', + }, + metadata: [ + { + sourceId: 'srcId', + workspaceId: 'wspId', + destinationId: 'destId', + jobId: 12, + }, + ], + statusCode: 200, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/appcues/router/data.ts b/test/integrations/destinations/appcues/router/data.ts new file mode 100644 index 0000000000..28a52c8bdc --- /dev/null +++ b/test/integrations/destinations/appcues/router/data.ts @@ -0,0 +1,221 @@ +export const data = [ + { + name: 'appcues', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + anonymousId: '33787665-4168-4acc-8df7-17ba79325332', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + campaign: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + page: { + path: '/rudder-sdk-js/tests/html/script-test.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', + }, + screen: { + density: 2, + }, + traits: {}, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '6a5f38c0-4e75-4268-a066-2b73fbcad01f', + originalTimestamp: '2021-01-04T08:25:04.780Z', + receivedAt: '2021-01-04T13:55:04.799+05:30', + request_ip: '[::1]', + rudderId: '79881a62-980a-4d76-89ca-7099440f8c13', + sentAt: '2021-01-04T08:25:04.781Z', + timestamp: '2021-01-04T13:55:04.798+05:30', + type: 'identify', + userId: 'onlyUserId', + }, + metadata: { + jobId: 1, + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + { + message: { + anonymousId: '33787665-4168-4acc-8df7-17ba79325332', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.9', + }, + campaign: {}, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.9', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + page: { + path: '/rudder-sdk-js/tests/html/script-test.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost:4321/rudder-sdk-js/tests/html/script-test.html', + }, + screen: { + density: 2, + }, + traits: { + 'first name': 'John', + 'last name': 'Abraham', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: '57494c6a-3c62-4b30-83aa-6e821d37ac75', + originalTimestamp: '2021-01-04T08:25:04.786Z', + receivedAt: '2021-01-04T13:55:04.799+05:30', + request_ip: '[::1]', + rudderId: 'ed2ed08a-3cd9-4b2c-9b04-7e3d3501fab7', + sentAt: '2021-01-04T08:25:04.787Z', + timestamp: '2021-01-04T13:55:04.798+05:30', + type: 'identify', + userId: 'userIdWithProperties', + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + destType: 'appcues', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + request_id: '6a5f38c0-4e75-4268-a066-2b73fbcad01f', + profile_update: {}, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: 'https://api.appcues.com/v1/accounts/86086/users/onlyUserId/activity', + }, + metadata: [ + { + jobId: 1, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + JSON: { + request_id: '57494c6a-3c62-4b30-83aa-6e821d37ac75', + profile_update: { + 'last name': 'Abraham', + 'first name': 'John', + }, + }, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'Content-Type': 'application/json', + }, + version: '1', + endpoint: + 'https://api.appcues.com/v1/accounts/86086/users/userIdWithProperties/activity', + }, + metadata: [ + { + jobId: 2, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + accountId: '86086', + useNativeSDK: false, + }, + }, + }, + ], + }, + }, + }, + } +]; diff --git a/test/integrations/destinations/attentive_tag/router/data.ts b/test/integrations/destinations/attentive_tag/router/data.ts new file mode 100644 index 0000000000..c52a6ed2e3 --- /dev/null +++ b/test/integrations/destinations/attentive_tag/router/data.ts @@ -0,0 +1,122 @@ +export const data = [ + { + name: 'attentive_tag', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '241654', + }, + }, + metadata: { + jobId: 1, + }, + message: { + anonymousId: '4eb021e9-a2af-4926-ae82-fe996d12f3c5', + channel: 'web', + context: { + locale: 'en-GB', + os: { + name: '', + version: '', + }, + traits: { + company: { + id: 'abc123', + }, + createdAt: 'Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)', + email: 'test0@gmail.com', + phone: '+16465453911', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36', + externalId: [ + { + type: 'clientUsrId', + id: 1, + }, + { + type: 'shopifyId', + id: 1, + }, + { + type: 'klaviyoId', + id: 1, + }, + ], + }, + integrations: { + All: true, + attentive_tag: { + signUpSourceId: '241654', + identifyOperation: 'unsubscribe', + }, + }, + messageId: 'e108eb05-f6cd-4624-ba8c-568f2e2b3f92', + receivedAt: '2020-10-16T13:56:14.945+05:30', + type: 'identify', + }, + }, + ], + destType: 'attentive_tag', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.attentivemobile.com/v1/subscriptions/unsubscribe', + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + user: { + phone: '+16465453911', + email: 'test0@gmail.com', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 1, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + apiKey: 'dummyApiKey', + signUpSourceId: '241654', + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/autopilot/router/data.ts b/test/integrations/destinations/autopilot/router/data.ts new file mode 100644 index 0000000000..cbfe0c4207 --- /dev/null +++ b/test/integrations/destinations/autopilot/router/data.ts @@ -0,0 +1,317 @@ +export const data = [ + { + name: 'autopilot', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + ID: '1afjtc6chkhdeKsXYrNFOzR5D9v', + Name: 'Autopilot', + DestinationDefinition: { + ID: '1afjX4MlAucK57Q0ctTVlD27Tvo', + Name: 'AUTOPILOT', + DisplayName: 'Autopilot', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + apiKey: 'dummyApiKey', + customMappings: [ + { + from: '0001', + to: 'Signup', + }, + ], + triggerId: '00XX', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + metadata: { + jobId: 1, + }, + message: { + anonymousId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.2', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.2', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + page: { + path: '/tests/html/index4.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost/tests/html/index4.html', + }, + screen: { + density: 2, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36', + }, + integrations: { + All: true, + }, + messageId: 'fad9b3fb-5778-4db3-9fb6-7168b554191f', + originalTimestamp: '2020-04-17T14:42:44.722Z', + receivedAt: '2020-04-17T20:12:44.758+05:30', + request_ip: '[::1]:53513', + sentAt: '2020-04-17T14:42:44.722Z', + traits: { + age: 23, + email: 'testmp@rudderstack.com', + firstname: 'Test Kafka', + }, + timestamp: '2020-04-17T20:12:44.758+05:30', + type: 'identify', + userId: 'user12345', + }, + }, + { + destination: { + ID: '1afjtc6chkhdeKsXYrNFOzR5D9v', + Name: 'Autopilot', + DestinationDefinition: { + ID: '1afjX4MlAucK57Q0ctTVlD27Tvo', + Name: 'AUTOPILOT', + DisplayName: 'Autopilot', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + apiKey: 'dummyApiKey', + customMappings: [ + { + from: '0001', + to: 'Signup', + }, + ], + triggerId: '00XX', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + metadata: { + jobId: 2, + }, + message: { + anonymousId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.1-rc.2', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.1-rc.2', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + page: { + path: '/tests/html/index4.html', + referrer: '', + search: '', + title: '', + url: 'http://localhost/tests/html/index4.html', + }, + screen: { + density: 2, + }, + traits: { + age: 23, + email: 'testmp@rudderstack.com', + firstname: 'Test Kafka', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36', + }, + event: 'test track with property', + integrations: { + All: true, + }, + messageId: '37b75e61-9bd2-4fb8-91ed-e3a064905f3a', + originalTimestamp: '2020-04-17T14:42:44.724Z', + properties: { + test_prop_1: 'test prop', + test_prop_2: 1232, + }, + receivedAt: '2020-04-17T20:12:44.758+05:30', + request_ip: '[::1]:53512', + sentAt: '2020-04-17T14:42:44.725Z', + timestamp: '2020-04-17T20:12:44.757+05:30', + type: 'track', + userId: 'user12345', + }, + }, + ], + destType: 'autopilot', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.autopilothq.com/v1/contact', + headers: { + autopilotapikey: 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + contact: { + Email: 'testmp@rudderstack.com', + FirstName: 'Test Kafka', + custom: { + age: 23, + }, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd', + }, + metadata: [ + { + jobId: 1, + }, + ], + batched: false, + statusCode: 200, + destination: { + ID: '1afjtc6chkhdeKsXYrNFOzR5D9v', + Name: 'Autopilot', + DestinationDefinition: { + ID: '1afjX4MlAucK57Q0ctTVlD27Tvo', + Name: 'AUTOPILOT', + DisplayName: 'Autopilot', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + apiKey: 'dummyApiKey', + customMappings: [ + { + from: '0001', + to: 'Signup', + }, + ], + triggerId: '00XX', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://api2.autopilothq.com/v1/trigger/00XX/contact/testmp@rudderstack.com', + headers: { + autopilotapikey: 'dummyApiKey', + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + property: { + test_prop_1: 'test prop', + test_prop_2: 1232, + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd', + }, + metadata: [ + { + jobId: 2, + }, + ], + batched: false, + statusCode: 200, + destination: { + ID: '1afjtc6chkhdeKsXYrNFOzR5D9v', + Name: 'Autopilot', + DestinationDefinition: { + ID: '1afjX4MlAucK57Q0ctTVlD27Tvo', + Name: 'AUTOPILOT', + DisplayName: 'Autopilot', + Config: { + excludeKeys: [], + includeKeys: [], + }, + }, + Config: { + apiKey: 'dummyApiKey', + customMappings: [ + { + from: '0001', + to: 'Signup', + }, + ], + triggerId: '00XX', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/blueshift/router/data.ts b/test/integrations/destinations/blueshift/router/data.ts new file mode 100644 index 0000000000..7c92ff1d74 --- /dev/null +++ b/test/integrations/destinations/blueshift/router/data.ts @@ -0,0 +1,348 @@ +export const data = [ + { + name: 'blueshift', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + eventApiKey: 'efeb4a29aba5e75d99c8a18acd620ec1', + usersApiKey: 'b4a29aba5e75duic8a18acd920ec1e2e', + datacenterEU: false, + }, + }, + metadata: { + jobId: 1, + }, + message: { + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.5', + }, + traits: { + name: 'hardik', + email: 'hardik@rudderstack.com', + cookie: '1234abcd-efghklkj-1234kfjadslk-34iu123', + industry: 'Education', + employees: 399, + plan: 'enterprise', + 'total billed': 830, + }, + }, + type: 'group', + userId: 'rudderstack8', + groupId: '35838', + }, + }, + { + destination: { + Config: { + eventApiKey: 'efeb4a29aba5e75d99c8a18acd620ec1', + usersApiKey: 'b4a29aba5e75duic8a18acd920ec1e2e', + datacenterEU: false, + }, + }, + metadata: { + jobId: 2, + }, + message: { + context: { + ip: '14.5.67.21', + device: { + adTrackingEnabled: true, + advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + type: 'Android', + attTrackingStatus: 3, + }, + os: { + name: 'Android', + version: '9', + }, + network: { + bluetooth: false, + carrier: 'Android', + cellular: true, + wifi: true, + }, + address: { + city: 'kolkata', + country: 'India', + postalCode: 789223, + latitude: '37.7672319', + longitude: '-122.4021353', + state: 'WB', + street: 'rajnagar', + }, + }, + properties: { + cookie: '1234abcd-efghijkj-1234kfjadslk-34iu123', + }, + messageId: '34abcd-efghijkj-1234kf', + type: 'track', + event: 'identify', + userId: 'sampleusrRudder7', + }, + }, + { + destination: { + Config: { + eventApiKey: 'a5e75d99c8a18acb4a29abd920ec1e2e', + usersApiKey: 'b4a29aba5e75d99c8a18acd920ec1e2e', + datacenterEU: false, + }, + }, + metadata: { + jobId: 3, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + messageId: '84e26acc-56a5-4835-8233-591137fca468', + session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: 'anon_id', + type: 'identify', + traits: { + email: 'chandan@companyname.com', + userId: 'rudder123', + anonymousId: 'anon_id', + name: 'James Doe', + phone: '92374162212', + gender: 'M', + firstname: 'James', + lastname: 'Doe', + employed: true, + birthday: '1614775793', + education: 'Science', + graduate: true, + married: true, + customerType: 'Prime', + msg_push: true, + msgSms: true, + msgemail: true, + msgwhatsapp: false, + custom_tags: ['Test_User', 'Interested_User', 'DIY_Hobby'], + custom_mappings: { + Office: 'Trastkiv', + Country: 'Russia', + }, + address: { + city: 'kolkata', + country: 'India', + postalCode: 789223, + state: 'WB', + street: '', + }, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + }, + ], + destType: 'blueshift', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.getblueshift.com/api/v1/event', + headers: { + Authorization: 'Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + group_id: '35838', + customer_id: 'rudderstack8', + email: 'hardik@rudderstack.com', + event: 'identify', + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 1, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + eventApiKey: 'efeb4a29aba5e75d99c8a18acd620ec1', + usersApiKey: 'b4a29aba5e75duic8a18acd920ec1e2e', + datacenterEU: false, + }, + }, + }, + { + batchedRequest: { + body: { + XML: {}, + FORM: {}, + JSON: { + ip: '14.5.67.21', + event: 'identify', + cookie: '1234abcd-efghijkj-1234kfjadslk-34iu123', + os_name: 'Android', + latitude: '37.7672319', + device_id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + longitude: '-122.4021353', + event_uuid: '34abcd-efghijkj-1234kf', + customer_id: 'sampleusrRudder7', + device_idfa: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + device_idfv: '3f034872-5e28-45a1-9eda-ce22a3e36d1a', + device_type: 'Android', + network_carrier: 'Android', + device_manufacturer: 'Google', + }, + JSON_ARRAY: {}, + }, + type: 'REST', + files: {}, + method: 'POST', + params: {}, + headers: { + 'Content-Type': 'application/json', + Authorization: 'Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=', + }, + version: '1', + endpoint: 'https://api.getblueshift.com/api/v1/event', + }, + metadata: [ + { + jobId: 2, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + eventApiKey: 'efeb4a29aba5e75d99c8a18acd620ec1', + usersApiKey: 'b4a29aba5e75duic8a18acd920ec1e2e', + datacenterEU: false, + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.getblueshift.com/api/v1/customers', + headers: { + Authorization: 'Basic YjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q5MjBlYzFlMmU=', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + email: 'chandan@companyname.com', + customer_id: 'rudder123', + phone_number: '92374162212', + firstname: 'James', + lastname: 'Doe', + gender: 'M', + userId: 'rudder123', + anonymousId: 'anon_id', + name: 'James Doe', + employed: true, + birthday: '1614775793', + education: 'Science', + graduate: true, + married: true, + customerType: 'Prime', + msg_push: true, + msgSms: true, + msgemail: true, + msgwhatsapp: false, + custom_tags: ['Test_User', 'Interested_User', 'DIY_Hobby'], + custom_mappings: { + Office: 'Trastkiv', + Country: 'Russia', + }, + address: { + city: 'kolkata', + country: 'India', + postalCode: 789223, + state: 'WB', + street: '', + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 3, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + eventApiKey: 'a5e75d99c8a18acb4a29abd920ec1e2e', + usersApiKey: 'b4a29aba5e75d99c8a18acd920ec1e2e', + datacenterEU: false, + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/branch/router/data.ts b/test/integrations/destinations/branch/router/data.ts new file mode 100644 index 0000000000..4c87145b7e --- /dev/null +++ b/test/integrations/destinations/branch/router/data.ts @@ -0,0 +1,276 @@ +export const data = [ + { + name: 'branch', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + metadata: { + jobId: 1, + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'iOS', + version: '', + }, + screen: { + density: 2, + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + event: 'product added', + integrations: { + All: true, + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + properties: { + name: 'sampath', + }, + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'track', + userId: 'sampath', + }, + }, + { + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + metadata: { + jobId: 2, + }, + message: { + anonymousId: 'sampath', + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'iOS', + version: '', + }, + screen: { + density: 2, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + integrations: { + All: true, + }, + traits: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'identify', + userId: 'sampath', + }, + }, + ], + destType: 'branch', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.branch.io/v2/event/standard', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + branch_key: '', + name: 'ADD_TO_CART', + content_items: [ + { + $product_name: 'sampath', + }, + ], + user_data: { + os: 'iOS', + os_version: '', + app_version: '1.0.0', + screen_dpi: 2, + developer_identity: 'sampath', + user_agent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: 'sampath', + }, + metadata: [ + { + jobId: 1, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api2.branch.io/v2/event/custom', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + branch_key: '', + name: 'sampath', + custom_data: { + anonymousId: 'sampath', + email: 'sampath@gmail.com', + }, + content_items: [{}], + user_data: { + os: 'iOS', + os_version: '', + app_version: '1.0.0', + screen_dpi: 2, + developer_identity: 'sampath', + user_agent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: 'sampath', + }, + metadata: [ + { + jobId: 2, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + branchKey: '', + useNativeSDK: false, + }, + DestinationDefinition: { + DisplayName: 'Branch Metrics', + ID: '1WTpBSTiL3iAUHUdW7rHT4sawgU', + Name: 'BRANCH', + }, + Enabled: true, + ID: '1WTpIHpH7NTBgjeiUPW1kCUgZGI', + Name: 'branch test', + Transformations: [], + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/campaign_manager/router/data.ts b/test/integrations/destinations/campaign_manager/router/data.ts new file mode 100644 index 0000000000..95372e1925 --- /dev/null +++ b/test/integrations/destinations/campaign_manager/router/data.ts @@ -0,0 +1,464 @@ +export const data = [ + { + name: 'campaign_manager', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + metadata: { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 1, + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + id: '0572f78fa49c648e', + name: 'generic_x86_arm', + type: 'Android', + model: 'AOSP on IA Emulator', + manufacturer: 'Google', + adTrackingEnabled: true, + advertisingId: '44c97318-9040-4361-8bc7-4eb30f665ca8', + }, + traits: { + email: 'alex@example.com', + phone: '+1-202-555-0146', + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'England', + countryCode: 'GB', + postalCode: 'EC3M', + streetAddress: '71 Cherry Court SOUTHAMPTON SO53 5PD UK', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + event: 'Promotion Clicked', + originalTimestamp: '2022-11-17T00:22:02.903+05:30', + properties: { + profileId: 437689, + floodlightConfigurationId: '213123123', + ordinal: 'string', + quantity: '455678', + floodlightActivityId: '456543345245', + value: 7, + encryptedUserIdCandidates: ['dfghjbnm'], + limitAdTracking: true, + childDirectedTreatment: true, + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + requestType: 'batchinsert', + }, + type: 'track', + anonymousId: 'randomId', + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2022-11-17T00:22:02.903+05:30', + }, + }, + { + metadata: { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 2, + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + id: '0572f78fa49c648e', + name: 'generic_x86_arm', + type: 'Android', + model: 'AOSP on IA Emulator', + manufacturer: 'Google', + adTrackingEnabled: true, + advertisingId: '44c97318-9040-4361-8bc7-4eb30f665ca8', + }, + traits: { + email: 'alex@example.com', + phone: '+1-202-555-0146', + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'England', + countryCode: 'GB', + postalCode: 'EC3M', + streetAddress: '71 Cherry Court SOUTHAMPTON SO53 5PD UK', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + event: 'Promotion Clicked', + type: 'track', + originalTimestamp: '2022-11-17T00:22:02.903+05:30', + properties: { + profileId: 437689, + floodlightConfigurationId: '213123123', + ordinal: 'string', + floodlightActivityId: '456543345245', + quantity: '455678', + value: 7, + encryptedUserIdCandidates: ['dfghjbnm'], + limitAdTracking: true, + childDirectedTreatment: true, + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + requestType: 'batchupdate', + }, + anonymousId: 'randomId', + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2022-11-17T00:22:02.903+05:30', + }, + }, + { + metadata: { + secret: { + access_token: 'dummyApiToken', + refresh_token: 'efgh5678', + developer_token: 'ijkl91011', + }, + jobId: 3, + }, + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + id: '0572f78fa49c648e', + name: 'generic_x86_arm', + type: 'Android', + model: 'AOSP on IA Emulator', + manufacturer: 'Google', + adTrackingEnabled: true, + advertisingId: '44c97318-9040-4361-8bc7-4eb30f665ca8', + }, + traits: { + email: 'alex@example.com', + phone: '+1-202-555-0146', + firstName: 'John', + lastName: 'Gomes', + city: 'London', + state: 'England', + countryCode: 'GB', + postalCode: 'EC3M', + streetAddress: '71 Cherry Court SOUTHAMPTON SO53 5PD UK', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + event: 'Promotion Clicked', + type: 'track', + originalTimestamp: '2022-11-17T00:22:02.903+05:30', + properties: { + profileId: 437689, + floodlightConfigurationId: '213123123', + ordinal: 'string', + floodlightActivityId: '456543345245', + mobileDeviceId: 'string', + value: 7, + encryptedUserIdCandidates: ['dfghjbnm'], + gclid: 'string', + matchId: 'string', + dclid: 'string', + quantity: '455678', + impressionId: 'string', + limitAdTracking: true, + childDirectedTreatment: true, + encryptionInfo: { + kind: 'dfareporting#encryptionInfo', + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + }, + requestType: 'randomValue', + }, + anonymousId: 'randomId', + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2022-11-17T00:22:02.903+05:30', + }, + }, + ], + destType: 'campaign_manager', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437689/conversions/batchinsert', + headers: { + Authorization: 'Bearer dummyApiToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + kind: 'dfareporting#conversionsBatchInsertRequest', + encryptionInfo: { + kind: 'dfareporting#encryptionInfo', + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + }, + conversions: [ + { + nonPersonalizedAd: false, + treatmentForUnderage: false, + timestampMicros: '1668624722903000', + floodlightConfigurationId: '213123123', + ordinal: 'string', + quantity: '455678', + floodlightActivityId: '456543345245', + value: 7, + encryptedUserIdCandidates: ['dfghjbnm'], + limitAdTracking: true, + childDirectedTreatment: true, + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + secret: { + access_token: 'dummyApiToken', + developer_token: 'ijkl91011', + refresh_token: 'efgh5678', + }, + jobId: 1, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + childDirectedTreatment: false, + limitAdTracking: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + treatmentForUnderage: false, + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437689/conversions/batchupdate', + headers: { + Authorization: 'Bearer dummyApiToken', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + kind: 'dfareporting#conversionsBatchUpdateRequest', + encryptionInfo: { + kind: 'dfareporting#encryptionInfo', + encryptionSource: 'AD_SERVING', + encryptionEntityId: '3564523', + encryptionEntityType: 'DCM_ACCOUNT', + }, + conversions: [ + { + nonPersonalizedAd: false, + treatmentForUnderage: false, + timestampMicros: '1668624722903000', + floodlightConfigurationId: '213123123', + ordinal: 'string', + quantity: '455678', + floodlightActivityId: '456543345245', + value: 7, + encryptedUserIdCandidates: ['dfghjbnm'], + }, + ], + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + secret: { + access_token: 'dummyApiToken', + developer_token: 'ijkl91011', + refresh_token: 'efgh5678', + }, + jobId: 2, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + childDirectedTreatment: false, + limitAdTracking: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + treatmentForUnderage: false, + }, + }, + }, + { + destination: { + Config: { + treatmentForUnderage: false, + limitAdTracking: false, + childDirectedTreatment: false, + nonPersonalizedAd: false, + rudderAccountId: '2EOknn1JNH7WK1MfNku4fGYKkRK', + }, + }, + batched: false, + error: + '[CAMPAIGN MANAGER (DCM)]: properties.requestType must be one of batchinsert or batchupdate.', + metadata: [ + { + secret: { + access_token: 'dummyApiToken', + developer_token: 'ijkl91011', + refresh_token: 'efgh5678', + }, + jobId: 3, + }, + ], + statusCode: 400, + statTags: { + destType: 'CAMPAIGN_MANAGER', + errorCategory: 'dataValidation', + errorType: 'instrumentation', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/candu/router/data.ts b/test/integrations/destinations/candu/router/data.ts new file mode 100644 index 0000000000..8aa6441881 --- /dev/null +++ b/test/integrations/destinations/candu/router/data.ts @@ -0,0 +1,212 @@ +export const data = [ + { + name: 'candu', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + ID: '23uZJcllEOBx8GbZ31qYzoML8Up', + Name: 'Candu local', + DestinationDefinition: { + ID: '23uYPwdkxT7pUNDAiCVNK3aU0sT', + Name: 'CANDU', + DisplayName: 'Candu', + Config: { + destConfig: { + defaultConfig: ['apiKey'], + }, + excludeKeys: [], + includeKeys: [ + 'apiKey', + 'blackListedEvents', + 'whiteListedEvents', + 'oneTrustCookieCategories', + ], + saveDestinationResponse: true, + secretKeys: ['apiKey'], + supportedMessageTypes: ['identify', 'track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { + apiKey: 'FXLkLUEhGJyvmY4', + }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + metadata: { + jobId: 1, + }, + message: { + anonymousId: 'a1b2c3d4e5f6g7h8i9j10', + channel: 'mobile', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + device: { + adTrackingEnabled: true, + advertisingId: '', + id: '', + manufacturer: 'Google', + model: 'AOSP on IA Emulator', + name: 'generic_x86_arm', + attTrackingStatus: 3, + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + locale: 'en-US', + os: { + name: 'watchos', + }, + screen: { + density: 2, + }, + traits: { + email: 'sampath@gmail.com', + name: 'Joker', + Gender: 'male', + foo: { + foo: 'bar', + }, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', + }, + event: 'product added', + integrations: { + All: true, + }, + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + originalTimestamp: '2020-01-17T04:53:51.185Z', + receivedAt: '2020-01-17T10:23:52.688+05:30', + request_ip: '[::1]:64059', + sentAt: '2020-01-17T04:53:52.667Z', + timestamp: '2020-01-17T10:23:51.206+05:30', + type: 'identify', + userId: 'sampath', + }, + }, + ], + destType: 'candu', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.candu.ai/api/eventWebhook', + headers: { + Authorization: 'Basic RlhMa0xVRWhHSnl2bVk0', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + traits: { + email: 'sampath@gmail.com', + name: 'Joker', + Gender: 'male', + foo: { foo: 'bar' }, + }, + type: 'identify', + userId: 'sampath', + anonymousId: 'a1b2c3d4e5f6g7h8i9j10', + timestamp: '2020-01-17T10:23:51.206+05:30', + messageId: 'ea5cfab2-3961-4d8a-8187-3d1858c90a9f', + context: { source: 'RudderStack' }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 1, + }, + ], + batched: false, + statusCode: 200, + destination: { + ID: '23uZJcllEOBx8GbZ31qYzoML8Up', + Name: 'Candu local', + DestinationDefinition: { + ID: '23uYPwdkxT7pUNDAiCVNK3aU0sT', + Name: 'CANDU', + DisplayName: 'Candu', + Config: { + destConfig: { defaultConfig: ['apiKey'] }, + excludeKeys: [], + includeKeys: [ + 'apiKey', + 'blackListedEvents', + 'whiteListedEvents', + 'oneTrustCookieCategories', + ], + saveDestinationResponse: true, + secretKeys: ['apiKey'], + supportedMessageTypes: ['identify', 'track'], + supportedSourceTypes: [ + 'android', + 'ios', + 'web', + 'unity', + 'amp', + 'cloud', + 'reactnative', + 'flutter', + 'cordova', + ], + transformAt: 'router', + transformAtV1: 'router', + }, + ResponseRules: {}, + }, + Config: { apiKey: 'FXLkLUEhGJyvmY4' }, + Enabled: true, + Transformations: [], + IsProcessorEnabled: true, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/courier/router/data.ts b/test/integrations/destinations/courier/router/data.ts new file mode 100644 index 0000000000..a3a3237197 --- /dev/null +++ b/test/integrations/destinations/courier/router/data.ts @@ -0,0 +1,160 @@ +export const data = [ + { + name: 'courier', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + type: 'track', + channel: 'web', + event: 'Product Added', + userId: 'test123', + properties: { + price: 999, + quantity: 1, + }, + context: { + traits: { + firstName: 'John', + age: 27, + }, + }, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + }, + metadata: { + jobId: 1, + }, + }, + { + message: { + type: 'track', + channel: 'web', + event: 'Product Added', + properties: {}, + context: {}, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + }, + destination: { + Config: { + sdkKey: 'test-sdk-key', + trackKnownUsers: false, + nonInteraction: false, + listen: false, + trackCategorizedPages: true, + trackNamedPages: true, + }, + }, + metadata: { + jobId: 2, + }, + }, + ], + destType: 'courier', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batched: false, + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://api.courier.com/inbound/rudderstack', + headers: { + Authorization: 'Bearer dummyApiKey', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + JSON: { + type: 'track', + channel: 'web', + event: 'Product Added', + userId: 'test123', + properties: { + price: 999, + quantity: 1, + }, + context: { + traits: { + firstName: 'John', + age: 27, + }, + }, + rudderId: '8f8fa6b5-8e24-489c-8e22-61f23f2e364f', + messageId: '2116ef8c-efc3-4ca4-851b-02ee60dad6ff', + anonymousId: '97c46c81-3140-456d-b2a9-690d70aaca35', + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + }, + destination: { + Config: { + apiKey: 'dummyApiKey', + }, + }, + metadata: [ + { + jobId: 1, + }, + ], + statusCode: 200, + }, + { + batched: false, + error: 'apiKey is required', + metadata: [ + { + jobId: 2, + }, + ], + statTags: { + destType: 'COURIER', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + destination: { + Config: { + sdkKey: 'test-sdk-key', + trackKnownUsers: false, + nonInteraction: false, + listen: false, + trackCategorizedPages: true, + trackNamedPages: true, + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/criteo_audience/router/data.ts b/test/integrations/destinations/criteo_audience/router/data.ts new file mode 100644 index 0000000000..a91c112663 --- /dev/null +++ b/test/integrations/destinations/criteo_audience/router/data.ts @@ -0,0 +1,270 @@ +export const data = [ + { + name: 'criteo_audience', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + destination: { + Config: { + clientId: 'abcdef8-f49-4cd6-b4c5-958b3d66d431', + clientSecret: 'sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg', + audienceId: '34893', + audienceType: 'email', + }, + ID: 'iwehr83843', + }, + metadata: { + secret: { + accessToken: 'success_access_token', + }, + jobId: 1, + }, + message: { + userId: 'user 1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + madid: 'sample_madid', + email: 'alex@email.com', + identityLink: 'text.com', + gum: 'sdjfds', + }, + { + madid: 'sample_madid_1', + email: 'amy@email.com', + identityLink: 'yahoo.com', + gum: 'sdjfds', + }, + { + madid: 'sample_madid_2', + email: 'van@email.com', + identityLink: 'abc.com', + gum: 'sdjfds', + }, + ], + }, + }, + context: { + ip: '14.5.67.21', + library: { + name: 'http', + }, + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + { + destination: { + Config: { + clientId: 'abcdef8-f49-4cd6-b4c5-958b3d66d431', + clientSecret: 'sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg', + audienceId: '34893', + audienceType: 'madid', + }, + ID: 'iwehr83843', + }, + metadata: { + secret: { + accessToken: 'success_access_token', + }, + jobId: 2, + }, + message: { + userId: 'user 1', + type: 'audiencelist', + properties: { + listData: { + add: [ + { + madid: 'sample_madid', + email: 'alex@email.com', + identityLink: 'text.com', + gum: 'sdjfds', + }, + { + madid: 'sample_madid_1', + email: 'amy@email.com', + identityLink: 'yahoo.com', + gum: 'sdjfds', + }, + { + madid: 'sample_madid_2', + email: 'van@email.com', + identityLink: 'abc.com', + gum: 'sdjfds', + }, + ], + remove: [ + { + madid: 'sample_madid', + email: 'alex@email.com', + identityLink: 'text.com', + gum: 'sdjfds', + }, + ], + }, + }, + context: { + ip: '14.5.67.21', + }, + timestamp: '2020-02-02T00:23:09.544Z', + }, + }, + ], + destType: 'criteo_audience', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'PATCH', + endpoint: 'https://api.criteo.com/2022-10/audiences/34893/contactlist', + headers: { + Authorization: 'Bearer success_access_token', + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + data: { + type: 'ContactlistAmendment', + attributes: { + operation: 'add', + identifierType: 'email', + identifiers: ['alex@email.com', 'amy@email.com', 'van@email.com'], + internalIdentifiers: false, + }, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 1, + secret: { + accessToken: 'success_access_token', + }, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + clientId: 'abcdef8-f49-4cd6-b4c5-958b3d66d431', + clientSecret: 'sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg', + audienceId: '34893', + audienceType: 'email', + }, + ID: 'iwehr83843', + }, + }, + { + batchedRequest: [ + { + version: '1', + type: 'REST', + method: 'PATCH', + endpoint: 'https://api.criteo.com/2022-10/audiences/34893/contactlist', + headers: { + Authorization: 'Bearer success_access_token', + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + data: { + type: 'ContactlistAmendment', + attributes: { + operation: 'add', + identifierType: 'madid', + identifiers: ['sample_madid', 'sample_madid_1', 'sample_madid_2'], + internalIdentifiers: false, + }, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + { + version: '1', + type: 'REST', + method: 'PATCH', + endpoint: 'https://api.criteo.com/2022-10/audiences/34893/contactlist', + headers: { + Authorization: 'Bearer success_access_token', + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + params: {}, + body: { + JSON: { + data: { + type: 'ContactlistAmendment', + attributes: { + operation: 'remove', + identifierType: 'madid', + identifiers: ['sample_madid'], + internalIdentifiers: false, + }, + }, + }, + JSON_ARRAY: {}, + XML: {}, + FORM: {}, + }, + files: {}, + }, + ], + metadata: [ + { + jobId: 2, + secret: { + accessToken: 'success_access_token', + }, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + clientId: 'abcdef8-f49-4cd6-b4c5-958b3d66d431', + clientSecret: 'sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg', + audienceId: '34893', + audienceType: 'madid', + }, + ID: 'iwehr83843', + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/customerio/router/data.ts b/test/integrations/destinations/customerio/router/data.ts new file mode 100644 index 0000000000..9a34377714 --- /dev/null +++ b/test/integrations/destinations/customerio/router/data.ts @@ -0,0 +1,436 @@ +export const data = [ + { + name: 'customerio', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + anonymousId: '123456', + email: 'test@rudderstack.com', + address: { + city: 'kolkata', + country: 'India', + postalCode: 712136, + state: 'WB', + street: '', + }, + ip: '0.0.0.0', + age: 26, + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + user_properties: { + prop1: 'val1', + prop2: 'val2', + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + originalTimestamp: '2019-10-14T09:03:17.562Z', + anonymousId: '123456', + userId: '123456', + integrations: { + All: true, + }, + traits: { + anonymousId: 'anon-id', + email: 'test@gmail.com', + 'dot.name': 'Arnab Pal', + address: { + city: 'NY', + country: 'USA', + postalCode: 712136, + state: 'CA', + street: '', + }, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 1, + }, + destination: { + Config: { + datacenterEU: false, + siteID: '46be54768e7d49ab2628', + apiKey: 'dummyApiKey', + }, + }, + }, + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + anonymousId: '12345', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'page', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2019-10-14T11:15:18.299Z', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '/test', + referrer: 'Rudder', + search: 'abc', + title: 'Test Page', + url: 'www.rudderlabs.com', + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + datacenterEU: false, + siteID: '46be54768e7d49ab2628', + apiKey: 'dummyApiKey', + }, + }, + }, + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.0-beta.2', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.0-beta.2', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + groupId: 'group@1', + integrations: { + All: true, + }, + traits: { + domainNames: 'rudderstack.com', + email: 'help@rudderstack.com', + name: 'rudderstack', + action: 'identify', + }, + type: 'group', + userId: 'user@1', + }, + metadata: { + jobId: 3, + }, + destination: { + Config: { + datacenterEU: false, + siteID: '46be54768e7d49ab2628', + apiKey: 'dummyApiKey', + }, + }, + }, + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.0-beta.2', + }, + ip: '0.0.0.0', + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.0-beta.2', + }, + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', + }, + groupId: 'group@1', + integrations: { + All: true, + }, + traits: { + domainNames: 'rudderstack.com', + email: 'help@rudderstack.com', + name: 'rudderstack', + action: 'delete', + }, + type: 'group', + userId: 'user@1', + }, + metadata: { + jobId: 4, + }, + destination: { + Config: { + datacenterEU: false, + siteID: '46be54768e7d49ab2628', + apiKey: 'dummyApiKey', + }, + }, + }, + ], + destType: 'customerio', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'PUT', + endpoint: 'https://track.customer.io/api/v1/customers/123456', + headers: { + Authorization: 'Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=', + }, + params: {}, + body: { + JSON: { + anonymous_id: '123456', + city: 'NY', + country: 'USA', + postalCode: 712136, + state: 'CA', + street: '', + email: 'test@gmail.com', + 'dot.name': 'Arnab Pal', + prop1: 'val1', + prop2: 'val2', + _timestamp: 1571043797, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '123456', + statusCode: 200, + }, + metadata: [ + { + jobId: 1, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + datacenterEU: false, + siteID: '46be54768e7d49ab2628', + apiKey: 'dummyApiKey', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://track.customer.io/api/v1/customers/12345/events', + headers: { + Authorization: 'Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=', + }, + params: {}, + body: { + JSON: { + data: { + path: '/test', + referrer: 'Rudder', + search: 'abc', + title: 'Test Page', + url: 'www.rudderlabs.com', + }, + name: 'ApplicationLoaded', + type: 'page', + timestamp: 1571051718, + }, + XML: {}, + JSON_ARRAY: {}, + FORM: {}, + }, + files: {}, + userId: '12345', + statusCode: 200, + }, + metadata: [ + { + jobId: 2, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + datacenterEU: false, + siteID: '46be54768e7d49ab2628', + apiKey: 'dummyApiKey', + }, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://track.customer.io/api/v2/batch', + headers: { + Authorization: 'Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=', + 'Content-Type': 'application/json', + }, + params: {}, + body: { + FORM: {}, + XML: {}, + JSON: { + batch: [ + { + type: 'object', + action: 'identify', + attributes: { + name: 'rudderstack', + email: 'help@rudderstack.com', + domainNames: 'rudderstack.com', + }, + identifiers: { + object_id: 'group@1', + object_type_id: '1', + }, + cio_relationships: [ + { + identifiers: { + id: 'user@1', + }, + }, + ], + }, + { + type: 'object', + action: 'delete', + attributes: { + name: 'rudderstack', + email: 'help@rudderstack.com', + domainNames: 'rudderstack.com', + }, + identifiers: { + object_id: 'group@1', + object_type_id: '1', + }, + cio_relationships: [ + { + identifiers: { + id: 'user@1', + }, + }, + ], + }, + ], + }, + JSON_ARRAY: {}, + }, + files: {}, + }, + metadata: [ + { + jobId: 3, + }, + { + jobId: 4, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + datacenterEU: false, + siteID: '46be54768e7d49ab2628', + apiKey: 'dummyApiKey', + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/facebook_offline_conversions/router/data.ts b/test/integrations/destinations/facebook_offline_conversions/router/data.ts new file mode 100644 index 0000000000..7bf984a029 --- /dev/null +++ b/test/integrations/destinations/facebook_offline_conversions/router/data.ts @@ -0,0 +1,705 @@ +export const data = [ + { + name: 'facebook_offline_conversions', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.2', + }, + traits: { + abc: '1234', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.2', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36', + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '/tests/html/ecomm_test.html', + referrer: 'http://0.0.0.0:1112/tests/html/', + search: '', + title: 'Fb Offline Conversion Ecommerce Test', + url: 'http://0.0.0.0:1112/tests/html/ecomm_test.html', + }, + }, + type: 'track', + messageId: '9116b734-7e6b-4497-ab51-c16744d4487e', + originalTimestamp: '2022-09-21T12:05:19.394Z', + userId: 'user@1', + event: 'product searched', + properties: { + order_id: '5241735', + value: 31.98, + revenue: 31.98, + shipping: 4, + coupon: 'APPARELSALE', + currency: 'GBP', + products: [ + { + id: 'product-bacon-jam', + category: 'Merch', + brand: '', + }, + { + id: 'product-t-shirt', + category: 'Merch', + brand: 'Levis', + }, + { + id: 'offer-t-shirt', + category: 'Merch', + brand: 'Levis', + }, + ], + }, + }, + metadata: { + jobId: 1, + }, + destination: { + Config: { + accessToken: 'ABC...', + valueFieldIdentifier: 'properties.price', + eventsToStandard: [ + { + from: 'Product Searched', + to: 'Search', + }, + { + to: 'ViewContent', + from: 'Product Viewed', + }, + { + to: 'AddToCart', + from: 'Cart Checkout', + }, + { + to: 'AddPaymentInfo', + from: 'Card Details Added', + }, + { + to: 'Lead', + from: 'Order Completed', + }, + { + to: 'CompleteRegistration', + from: 'Signup', + }, + { + to: 'AddToWishlist', + from: 'Button Clicked', + }, + ], + eventsToIds: [ + { + from: 'Search', + to: '582603376981640', + }, + { + from: 'Search', + to: '506289934669334', + }, + { + from: 'ViewContent', + to: '1166826033904512', + }, + { + from: 'AddToCart', + to: '1148872185708962', + }, + { + from: 'CompleteRegistration', + to: '597443908839411', + }, + { + from: 'Lead', + to: '1024592094903800', + }, + { + from: 'AddToWishlist', + to: '506289934669334', + }, + ], + isHashRequired: true, + }, + }, + }, + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.2', + }, + traits: { + abc: '1234', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.2', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36', + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '/tests/html/ecomm_test.html', + referrer: 'http://0.0.0.0:1112/tests/html/', + search: '', + title: 'Fb Offline Conversion Ecommerce Test', + url: 'http://0.0.0.0:1112/tests/html/ecomm_test.html', + }, + }, + type: 'track', + messageId: '9116b734-7e6b-4497-ab51-c16744d4487e', + originalTimestamp: '2022-09-21T12:05:19.394Z', + userId: 'user@1', + event: 'Button Clicked', + properties: { + order_id: '5241735', + value: 31.98, + revenue: 31.98, + shipping: 4, + coupon: 'APPARELSALE', + currency: 'GBP', + products: [ + { + id: 'product-bacon-jam', + category: 'Merch', + brand: '', + }, + { + id: 'product-t-shirt', + category: 'Merch', + brand: 'Levis', + }, + { + id: 'offer-t-shirt', + category: 'Merch', + brand: 'Levis', + }, + ], + }, + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + accessToken: 'ABC...', + valueFieldIdentifier: 'properties.price', + eventsToStandard: [ + { + from: 'Product Searched', + to: 'Search', + }, + { + to: 'ViewContent', + from: 'Product Viewed', + }, + { + to: 'AddToCart', + from: 'Cart Checkout', + }, + { + to: 'AddPaymentInfo', + from: 'Card Details Added', + }, + { + to: 'Lead', + from: 'Order Completed', + }, + { + to: 'CompleteRegistration', + from: 'Signup', + }, + { + to: 'AddToWishlist', + from: 'Button Clicked', + }, + ], + eventsToIds: [ + { + from: 'Search', + to: '582603376981640', + }, + { + from: 'Search', + to: '506289934669334', + }, + { + from: 'ViewContent', + to: '1166826033904512', + }, + { + from: 'AddToCart', + to: '1148872185708962', + }, + { + from: 'CompleteRegistration', + to: '597443908839411', + }, + { + from: 'Lead', + to: '1024592094903800', + }, + ], + isHashRequired: true, + }, + }, + }, + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.1.2', + }, + traits: { + email: 'test@rudderstack.com', + birthday: '2005-01-01T23:28:56.782Z', + firstName: 'test', + lastName: 'rudderstack', + initial: { + firstName: 'rudderlabs', + }, + address: { + city: 'kalkata', + state: 'west bangal', + country: 'india', + zip: '123456', + }, + phone: '9886775586', + gender: 'male', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.1.2', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36', + locale: 'en-GB', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + path: '/tests/html/ecomm_test.html', + referrer: 'http://0.0.0.0:1112/tests/html/', + search: '', + title: 'Fb Offline Conversion Ecommerce Test', + url: 'http://0.0.0.0:1112/tests/html/ecomm_test.html', + }, + device: { + advertisingId: 'apple@123', + }, + }, + type: 'track', + messageId: '9116b734-7e6b-4497-ab51-c16744d4487e', + originalTimestamp: '2022-09-21T12:05:19.394Z', + userId: 'user@1', + event: 'Cart Checkout', + properties: { + upload_tag: 'test campaign', + order_id: '485893487985894998', + value: 100, + revenue: 31.98, + shipping: 4, + coupon: 'APPARELSALE', + currency: 'IND', + products: [ + { + id: 'product-bacon-jam', + category: 'Merch', + brand: '', + }, + { + id: 'product-t-shirt', + category: 'Merch', + brand: 'Levis', + }, + { + id: 'offer-t-shirt', + category: 'Merch', + brand: 'Levis', + }, + ], + }, + }, + metadata: { + jobId: 3, + }, + destination: { + Config: { + accessToken: 'ABC...', + valueFieldIdentifier: 'properties.price', + eventsToStandard: [ + { + from: 'Product Searched', + to: 'Search', + }, + { + to: 'ViewContent', + from: 'Product Searched', + }, + { + to: 'AddToCart', + from: 'Cart Checkout', + }, + { + to: 'AddPaymentInfo', + from: 'Card Details Added', + }, + { + to: 'Lead', + from: 'Order Completed', + }, + { + to: 'CompleteRegistration', + from: 'Signup', + }, + { + to: 'AddToWishlist', + from: 'Button Clicked', + }, + ], + eventsToIds: [ + { + from: 'Search', + to: '582603376981640', + }, + { + from: 'Search', + to: '506289934669334', + }, + { + from: 'ViewContent', + to: '1166826033904512', + }, + { + from: 'AddToCart', + to: '1148872185708962', + }, + { + from: 'CompleteRegistration', + to: '597443908839411', + }, + { + from: 'Lead', + to: '1024592094903800', + }, + ], + isHashRequired: true, + }, + }, + }, + ], + destType: 'facebook_offline_conversions', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + error: 'Please Map Your Standard Events With Event Set Ids', + metadata: [ + { + jobId: 1, + }, + ], + batched: false, + statTags: { + destType: 'FACEBOOK_OFFLINE_CONVERSIONS', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + statusCode: 400, + destination: { + Config: { + accessToken: 'ABC...', + valueFieldIdentifier: 'properties.price', + eventsToStandard: [ + { + from: 'Product Searched', + to: 'Search', + }, + { + to: 'ViewContent', + from: 'Product Viewed', + }, + { + to: 'AddToCart', + from: 'Cart Checkout', + }, + { + to: 'AddPaymentInfo', + from: 'Card Details Added', + }, + { + to: 'Lead', + from: 'Order Completed', + }, + { + to: 'CompleteRegistration', + from: 'Signup', + }, + { + to: 'AddToWishlist', + from: 'Button Clicked', + }, + ], + eventsToIds: [ + { + from: 'Search', + to: '582603376981640', + }, + { + from: 'Search', + to: '506289934669334', + }, + { + from: 'ViewContent', + to: '1166826033904512', + }, + { + from: 'AddToCart', + to: '1148872185708962', + }, + { + from: 'CompleteRegistration', + to: '597443908839411', + }, + { + from: 'Lead', + to: '1024592094903800', + }, + { + from: 'AddToWishlist', + to: '506289934669334', + }, + ], + isHashRequired: true, + }, + }, + }, + { + error: 'Please Map Your Standard Events With Event Set Ids', + metadata: [ + { + jobId: 2, + }, + ], + statTags: { + destType: 'FACEBOOK_OFFLINE_CONVERSIONS', + errorCategory: 'dataValidation', + errorType: 'configuration', + feature: 'router', + implementation: 'native', + module: 'destination', + }, + batched: false, + statusCode: 400, + destination: { + Config: { + accessToken: 'ABC...', + valueFieldIdentifier: 'properties.price', + eventsToStandard: [ + { + from: 'Product Searched', + to: 'Search', + }, + { + to: 'ViewContent', + from: 'Product Viewed', + }, + { + to: 'AddToCart', + from: 'Cart Checkout', + }, + { + to: 'AddPaymentInfo', + from: 'Card Details Added', + }, + { + to: 'Lead', + from: 'Order Completed', + }, + { + to: 'CompleteRegistration', + from: 'Signup', + }, + { + to: 'AddToWishlist', + from: 'Button Clicked', + }, + ], + eventsToIds: [ + { + from: 'Search', + to: '582603376981640', + }, + { + from: 'Search', + to: '506289934669334', + }, + { + from: 'ViewContent', + to: '1166826033904512', + }, + { + from: 'AddToCart', + to: '1148872185708962', + }, + { + from: 'CompleteRegistration', + to: '597443908839411', + }, + { + from: 'Lead', + to: '1024592094903800', + }, + ], + isHashRequired: true, + }, + }, + }, + { + metadata: [ + { + jobId: 3, + }, + ], + batchedRequest: [ + { + body: { + FORM: {}, + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + }, + endpoint: + 'https://graph.facebook.com/v16.0/1148872185708962/events?upload_tag=test campaign&data=%5B%7B%22match_keys%22%3A%7B%22doby%22%3A%22f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6%22%2C%22dobm%22%3A%22f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6%22%2C%22dobd%22%3A%22f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6%22%2C%22extern_id%22%3A%22user%401%22%2C%22email%22%3A%5B%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%5D%2C%22phone%22%3A%5B%2274a39482392f83119041d571d5dace439d315faea8214fe8e815c00261b80615%22%5D%2C%22gen%22%3A%220d248e82c62c9386878327d491c762a002152d42ab2c391a31c44d9f62675ddf%22%2C%22ln%22%3A%227fb35d4777487797615cfa7c57724a47ba99152485600ccdb98e3871a6d05b21%22%2C%22fn%22%3A%229f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08%22%2C%22ct%22%3A%22375aba919c30870659093b7ddcf6045ff7a8624dd4dba49ced8981bd4d0666e0%22%2C%22zip%22%3A%5B%228d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92%22%5D%2C%22madid%22%3A%22c20fa16907343eef642d10f0bdb81bf629e6aaf6c906f26eabda079ca9e5ab67%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%7D%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22IND%22%2C%22value%22%3A100%2C%22order_id%22%3A%22485893487985894998%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22quantity%22%3A1%2C%22brand%22%3A%22Levis%22%2C%22category%22%3A%22Merch%22%7D%5D%2C%22custom_data%22%3A%7B%22extern_id%22%3A%22user%401%22%2C%22event_name%22%3A%22Cart%20Checkout%22%2C%22event_time%22%3A1663761919%2C%22currency%22%3A%22IND%22%2C%22value%22%3A100%2C%22email%22%3A%221c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd%22%2C%22phone%22%3A%2274a39482392f83119041d571d5dace439d315faea8214fe8e815c00261b80615%22%2C%22gen%22%3A%220d248e82c62c9386878327d491c762a002152d42ab2c391a31c44d9f62675ddf%22%2C%22ln%22%3A%227fb35d4777487797615cfa7c57724a47ba99152485600ccdb98e3871a6d05b21%22%2C%22fn%22%3A%229f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08%22%2C%22ct%22%3A%22375aba919c30870659093b7ddcf6045ff7a8624dd4dba49ced8981bd4d0666e0%22%2C%22zip%22%3A%228d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92%22%2C%22madid%22%3A%22c20fa16907343eef642d10f0bdb81bf629e6aaf6c906f26eabda079ca9e5ab67%22%2C%22contents%22%3A%5B%7B%22id%22%3A%22product-bacon-jam%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22%22%7D%2C%7B%22id%22%3A%22product-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%2C%7B%22id%22%3A%22offer-t-shirt%22%2C%22category%22%3A%22Merch%22%2C%22brand%22%3A%22Levis%22%7D%5D%2C%22order_id%22%3A%22485893487985894998%22%2C%22upload_tag%22%3A%22test%20campaign%22%2C%22client_user_agent%22%3A%22Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_3)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F83.0.4103.97%20Safari%2F537.36%22%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22shipping%22%3A4%2C%22coupon%22%3A%22APPARELSALE%22%7D%2C%22event_source_url%22%3A%22http%3A%2F%2F0.0.0.0%3A1112%2Ftests%2Fhtml%2Fecomm_test.html%22%2C%22event_name%22%3A%22AddToCart%22%2C%22content_type%22%3A%22product%22%7D%5D&access_token=ABC...', + files: {}, + headers: {}, + method: 'POST', + params: {}, + type: 'REST', + version: '1', + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + accessToken: 'ABC...', + valueFieldIdentifier: 'properties.price', + eventsToStandard: [ + { + from: 'Product Searched', + to: 'Search', + }, + { + to: 'ViewContent', + from: 'Product Searched', + }, + { + to: 'AddToCart', + from: 'Cart Checkout', + }, + { + to: 'AddPaymentInfo', + from: 'Card Details Added', + }, + { + to: 'Lead', + from: 'Order Completed', + }, + { + to: 'CompleteRegistration', + from: 'Signup', + }, + { + to: 'AddToWishlist', + from: 'Button Clicked', + }, + ], + eventsToIds: [ + { + from: 'Search', + to: '582603376981640', + }, + { + from: 'Search', + to: '506289934669334', + }, + { + from: 'ViewContent', + to: '1166826033904512', + }, + { + from: 'AddToCart', + to: '1148872185708962', + }, + { + from: 'CompleteRegistration', + to: '597443908839411', + }, + { + from: 'Lead', + to: '1024592094903800', + }, + ], + isHashRequired: true, + }, + }, + }, + ], + }, + }, + }, + }, +]; diff --git a/test/integrations/destinations/facebook_pixel/router/data.ts b/test/integrations/destinations/facebook_pixel/router/data.ts new file mode 100644 index 0000000000..9dee212222 --- /dev/null +++ b/test/integrations/destinations/facebook_pixel/router/data.ts @@ -0,0 +1,311 @@ +export const data = [ + { + name: 'facebook_pixel', + description: 'Test 0', + feature: 'router', + module: 'destination', + version: 'v0', + input: { + request: { + body: { + input: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: 'abc@gmail.com', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-10-14T15:46:51.693229+05:30', + type: 'track', + }, + metadata: { + jobId: 1, + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + removeExternalId: true, + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + { + message: { + channel: 'web', + context: { + traits: { + name: 'Rudder Test', + email: 'abc@gmail.com', + firstname: 'Test', + lastname: 'Test', + phone: 9000000000, + gender: 'female', + }, + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + properties: { + plan: 'standard plan', + name: 'rudder test', + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + metadata: { + jobId: 2, + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + destType: 'facebook_pixel', + }, + method: 'POST', + }, + }, + output: { + response: { + status: 200, + body: { + output: [ + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + data: [ + '{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08"},"event_name":"spin_result","event_time":1697278611,"action_source":"other","custom_data":{"additional_bet_index":0,"value":400}}', + ], + }, + }, + files: {}, + }, + metadata: [ + { + jobId: 1, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + removeExternalId: true, + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + { + batchedRequest: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + XML: {}, + JSON_ARRAY: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","ph":"593a6d58f34eb5c3de4f47e38d1faaa7d389fafe332a85400b1e54498391c579","ge":"252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111","ln":"532eaabd9574880dbf76b9b8cc00832c20a6ec113d682299550d7a6e0f345e25","fn":"2c2ccf28d806f6f9a34b67aa874d2113b7ac1444f1a4092541b8b75b84771747","client_ip_address":"0.0.0.0","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"identify","event_time":1697278611,"event_id":"84e26acc-56a5-4835-8233-591137fca468","action_source":"website"}', + ], + }, + }, + files: {}, + }, + metadata: [ + { + jobId: 2, + }, + ], + batched: false, + statusCode: 200, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + }, + }, +]; From 05db6365b50fd26e47cf091146d09e49675a169a Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Mon, 16 Oct 2023 12:15:39 +0530 Subject: [PATCH 6/9] fix: timestamp testcase in fb pixel --- .../facebook_pixel/processor/data.ts | 11705 ++++++++-------- .../facebook_pixel/router/data.ts | 11 +- 2 files changed, 6068 insertions(+), 5648 deletions(-) diff --git a/test/integrations/destinations/facebook_pixel/processor/data.ts b/test/integrations/destinations/facebook_pixel/processor/data.ts index 530cafaf5e..d5d0a8ec96 100644 --- a/test/integrations/destinations/facebook_pixel/processor/data.ts +++ b/test/integrations/destinations/facebook_pixel/processor/data.ts @@ -1,5646 +1,6061 @@ +export const mockFns = (_) => { + // @ts-ignore + jest.useFakeTimers().setSystemTime(new Date('2023-10-15')); +}; + export const data = [ - { - "name": "facebook_pixel", - "description": "Test 0", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "mobile", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": " aBc@gmail.com ", - "address": { - "zip": 1234 - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 1", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": " aBc@gmail.com ", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "group" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 2", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "traits": { - "name": "Test" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "properties": { - "plan": "standard plan", - "name": "rudder test" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 3", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "traits": { - "name": "Rudder Test", - "email": "abc@gmail.com", - "firstname": "Rudder", - "lastname": "Test", - "phone": 9000000000, - "gender": "female" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "properties": { - "plan": "standard plan", - "name": "rudder test" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 4", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "traits": { - "name": "Rudder Test", - "email": "abc@gmail.com", - "phone": 9000000000, - "address": { - "postalCode": 1234 - }, - "gender": "female" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "properties": { - "plan": "standard plan", - "name": "rudder test" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 5", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0, - "email": "abc@gmail.com" - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 6", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0, - "email": "abc@gmail.com" - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 7", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0, - "email": "abc@gmail.com", - "phone": 9000000000 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "phone", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 8", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0, - "email": "abc@gmail.com", - "phone": 9000000000 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "phone", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 9", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/abc", - "referrer": "xyz", - "search": "def", - "title": "ghi", - "url": "jkl" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "phone", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 10", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/abc", - "referrer": "xyz", - "search": "def", - "title": "ghi", - "url": "jkl" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "phone", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 11", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product list viewed", - "properties": { - "phone": 9000000000, - "email": "abc@gmail.com", - "category": "cat 1", - "list_id": "1234", - "filters": [ - { - "type": "department", - "value": "beauty" - }, - { - "type": "price", - "value": "under" - } - ], - "sorts": [ - { - "type": "price", - "value": "desc" - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "phone", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 12", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product list viewed", - "properties": { - "phone": 9000000000, - "email": "abc@gmail.com", - "category": "cat 1", - "list_id": "1234", - "filters": [ - { - "type": "department", - "value": "beauty" - }, - { - "type": "price", - "value": "under" - } - ], - "sorts": [ - { - "type": "price", - "value": "desc" - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 13", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product list viewed", - "properties": { - "email": "abc@gmail.com", - "quantity": 2, - "category": "cat 1", - "list_id": "1234", - "contentName": "nutrition", - "value": 18.9, - "filters": [ - { - "type": "department", - "value": "beauty" - }, - { - "type": "price", - "value": "under" - } - ], - "sorts": [ - { - "type": "price", - "value": "desc" - } - ], - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "productDimension": "My Product Dimension", - "productMetric": "My Product Metric", - "position": 10 - }, - { - "product_id": "507f1f77bcf86cdef799439011", - "productDimension": "My Product Dimension1", - "productMetric": "My Product Metric1", - "position": -10 - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 14", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "my product list", - "properties": { - "email": "abc@gmail.com", - "quantity": 2, - "category": "cat 1", - "list_id": "1234", - "filters": [ - { - "type": "department", - "value": "beauty" - }, - { - "type": "price", - "value": "under" - } - ], - "sorts": [ - { - "type": "price", - "value": "desc" - } - ], - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "productDimension": "My Product Dimension", - "productMetric": "My Product Metric", - "position": 10 - }, - { - "product_id": "507f1f77bcf86cdef799439011", - "productDimension": "My Product Dimension1", - "productMetric": "My Product Metric1", - "position": -10 - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "removeExternalId": false, - "eventsToEvents": [ - { - "from": "My product list", - "to": "ViewContent" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "list_id" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 15", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product viewed", - "properties": { - "currency": "CAD", - "quantity": 1, - "price": 24.75, - "name": "my product 1", - "category": "clothing", - "sku": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "removeExternalId": true, - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 16", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product added", - "properties": { - "currency": "CAD", - "quantity": 1, - "value": 24.75, - "category": "cat 1", - "id": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "removeExternalId": false, - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.value", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 17", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order completed", - "properties": { - "order_id": "rudderstackorder1", - "total": 99.99, - "revenue": 12.24, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "contentName": "all about nutrition", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 18", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "checkout started", - "properties": { - "currency": "CAD", - "category": "clothing", - "contentName": "abc", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 1, - "price": 24.75, - "name": "my product 2", - "sku": "p-299" - } - ], - "step": 1, - "paymentMethod": "Visa", - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "contentName" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 19", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "dataProcessingOptions": [ - [ - "LDU" - ], - 1, - 1000 - ], - "fbc": "fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890", - "fbp": "fb.1.1554763741205.234567890", - "fb_login_id": "fb_id", - "lead_id": "lead_id", - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUSage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 20", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "dataProcessingOptions": [ - [ - "LDU" - ], - 1, - 1000 - ], - "fbc": "fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890", - "fbp": "fb.1.1554763741205.234567890", - "fb_login_id": "fb_id", - "lead_id": "lead_id", - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUSage": false, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 21", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "products searched", - "properties": { - "product_id": "p-298", - "quantity": 2, - "price": 18.9, - "category": "health", - "value": 18.9, - "query": "HDMI cable" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 22", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "products searched", - "properties": { - "query": "HDMI cable" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "testDestination": true, - "testEventCode": "TEST1001", - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 23", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/abc", - "referrer": "xyz", - "search": "def", - "title": "ghi", - "url": "jkl" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "standardPageCall": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "phone", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "url" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 24", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "track page", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "track page", - "to": "PageView" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "additional_bet_index" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 25", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "my product list", - "properties": { - "email": "abc@gmail.com", - "quantity": 2, - "category": "cat 1", - "list_id": "1234", - "filters": [ - { - "type": "department", - "value": "beauty" - }, - { - "type": "price", - "value": "under" - } - ], - "sorts": [ - { - "type": "price", - "value": "desc" - } - ], - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "productDimension": "My Product Dimension", - "productMetric": "My Product Metric", - "position": 10 - }, - { - "product_id": "507f1f77bcf86cdef799439011", - "productDimension": "My Product Dimension1", - "productMetric": "My Product Metric1", - "position": -10 - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "My product list", - "to": "Schedule" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "list_id" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 26", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 27", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product added", - "properties": { - "currency": "CAD", - "quantity": 1, - "value": "35.753", - "category": "cat 1", - "id": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.value", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 28", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product added", - "properties": { - "currency": "CAD", - "quantity": 1, - "value": "35.7A3", - "category": "cat 1", - "id": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.value", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 29", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product added", - "properties": { - "currency": "CAD", - "quantity": 1, - "value": "ABC", - "category": "cat 1", - "id": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.value", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 30", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order completed", - "properties": { - "category": [ - "clothing", - "fishing" - ], - "order_id": "rudderstackorder1", - "total": 99.99, - "revenue": 12.24, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 31", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order completed", - "properties": { - "category": 100, - "order_id": "rudderstackorder1", - "total": 99.99, - "revenue": 12.24, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 32", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order completed", - "properties": { - "category": { - "category1": "1" - }, - "order_id": "rudderstackorder1", - "total": 99.99, - "revenue": 12.24, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 33", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "spin_result", - "to": "Schedule" - }, - { - "to": "Schedule" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 34", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-08-24T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "spin_result", - "to": "Schedule" - }, - { - "to": "Schedule" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 35", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "originalTimestamp": "2019-04-16T15:50:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "validToken", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 36", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "products searched", - "properties": { - "query": { - "key1": "HDMI cable" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 37", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "products searched", - "properties": { - "query": 50 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 38", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "url": "https://theminimstory.com/collections/summer-of-pearls?utm_source=facebook&utm_medium=paidsocial&utm_campaign=carousel&utm_content=ad1-jul&fbclid=IwAR2SsDcjzd_TLZN-e93kxOeGBYO4pQ3AiyeXSheHW5emDeLw8uTvo6lTMPI" - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "checkout started", - "properties": { - "currency": "CAD", - "category": "clothing", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 1, - "price": 24.75, - "name": "my product 2", - "sku": "p-299" - } - ], - "step": 1, - "paymentMethod": "Visa", - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 39", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "url": "https://theminimstory.com/collections/summer-of-pearls?utm_source=facebook&utm_medium=paidsocial&utm_campaign=carousel&utm_content=ad1-jul&fbclid=IwAR2SsDcjzd_TLZN-e93kxOeGBYO4pQ3AiyeXSheHW5emDeLw8uTvo6lTMPI" - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": { - "name": "checkout started" - }, - "properties": { - "currency": "CAD", - "category": "clothing", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 1, - "price": 24.75, - "name": "my product 2", - "sku": "p-299" - } - ], - "step": 1, - "paymentMethod": "Visa", - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 40", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "url": "url in wrong format" - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "checkout started", - "properties": { - "currency": "CAD", - "category": "clothing", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 1, - "price": 24.75, - "name": "my product 2", - "sku": "p-299" - } - ], - "step": 1, - "paymentMethod": "Visa", - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 41", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product viewed", - "properties": { - "currency": "CAD", - "quantity": 1, - "price": 24.75, - "name": "my product 1", - "category": "clothing", - "sku": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true, - "Facebook_Pixel": { - "contentType": "sending dedicated content type for this particular payload" - } - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "removeExternalId": true, - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 42", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product viewed", - "properties": { - "currency": "CAD", - "quantity": 1, - "price": 24.75, - "value": 18.9, - "name": "my product 1", - "category": "clothing", - "sku": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "removeExternalId": true, - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.value", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 43", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order completed", - "properties": { - "order_id": "rudderstackorder1", - "total": 99.99, - "revenue": 12.24, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "contentName": "all about nutrition", - "products": { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 44", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product list viewed", - "properties": { - "email": "abc@gmail.com", - "quantity": 2, - "category": "cat 1", - "list_id": "1234", - "contentName": "nutrition", - "value": 18.9, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "productDimension": "My Product Dimension", - "productMetric": "My Product Metric", - "position": 10 - }, - [ - { - "product_id": "507f1f77bcf86cdef799439011", - "productDimension": "My Product Dimension1", - "productMetric": "My Product Metric1", - "position": -10 - } - ] - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 45", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "custom", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "pixelId": "dummyPixelId", - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 46", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "custom", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - }, - { - "name": "facebook_pixel", - "description": "Test 47", - "feature": "processor", - "module": "destination", - "version": "v0", - "input": { - "request": { - "body": [ - { - "metadata": { - "jobId": 12 - }, - "destination": { - "secretConfig": {}, - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [], - "limitedDataUSage": false, - "accessToken": "dummyAccessToken", - "testDestination": false, - "testEventCode": "", - "standardPageCall": false, - "blacklistedEvents": [], - "whitelistedEvents": [], - "eventFilteringOption": "disable", - "removeExternalId": false, - "useUpdatedMapping": false, - "oneTrustCookieCategories": [], - "useNativeSDK": false, - "eventDelivery": false, - "eventDeliveryTS": 1686748039135 - }, - "liveEventsConfig": { - "eventDelivery": false, - "eventDeliveryTS": 1686748039135 - }, - "id": "destId1", - "workspaceId": "wsp2", - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true, - "name": "san-fb_pixel", - "enabled": true, - "deleted": false, - "createdAt": "2023-06-06T13:36:08.579Z", - "updatedAt": "2023-06-14T13:07:19.136Z", - "revisionId": "revId2", - "secretVersion": 3 - }, - "message": { - "type": "page", - "sentAt": "2019-09-01T15:46:51.000Z", - "userId": "user@19", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "version": "dev-snapshot", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:8888/", - "path": "/", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:8888/", - "referrer": "http://127.0.0.1:8888/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:8888", - "initial_referring_domain": "" - }, - "locale": "en-GB", - "screen": { - "width": 1728, - "height": 1117, - "density": 2, - "innerWidth": 547, - "innerHeight": 915 - }, - "traits": { - "name": false, - "source": "rudderstack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "dev-snapshot" - }, - "campaign": {}, - "sessionId": 1687769234506, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" - }, - "rudderId": "6bbfd003-c074-4ee9-8674-c132ded9ff04", - "timestamp": "2019-09-01T15:46:51.000Z", - "properties": { - "url": "http://127.0.0.1:8888/", - "path": "/", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:8888/", - "referrer": "http://127.0.0.1:8888/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:8888", - "initial_referring_domain": "" - }, - "receivedAt": "2019-09-01T15:46:51.000Z", - "request_ip": "49.206.54.243", - "anonymousId": "700ab220-faad-4cdf-8484-63e4c6bce6fe", - "integrations": { - "All": true - }, - "originalTimestamp": "2019-09-01T15:46:51.000Z" - } - } - ] - } - }, - "output": { - "response": { - "status": 200, - "body": [ - { - "metadata": { - "jobId": 12 - }, - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation", - "destType": "FACEBOOK_PIXEL", - "module": "destination", - "implementation": "native", - "feature": "processor" - } - } - ] - } - } - } -] \ No newline at end of file + { + name: 'facebook_pixel', + description: 'Test 0', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + channel: 'mobile', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: ' aBc@gmail.com ', + address: { + zip: 1234, + }, + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-10-14T00:00:00.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + removeExternalId: true, + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","zp":"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4"},"event_name":"spin_result","event_time":1697221800,"action_source":"app","custom_data":{"additional_bet_index":0,"value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 1', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: ' aBc@gmail.com ', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-10-14T15:46:51.693229+05:30', + type: 'group', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Message type group not supported', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 2', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + traits: { + name: 'Test', + }, + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + properties: { + plan: 'standard plan', + name: 'rudder test', + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: + 'For identify events, "Advanced Mapping" configuration must be enabled on the RudderStack dashboard', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 3', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + traits: { + name: 'Rudder Test', + email: 'abc@gmail.com', + firstname: 'Rudder', + lastname: 'Test', + phone: 9000000000, + gender: 'female', + }, + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + properties: { + plan: 'standard plan', + name: 'rudder test', + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","ph":"593a6d58f34eb5c3de4f47e38d1faaa7d389fafe332a85400b1e54498391c579","ge":"252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111","ln":"532eaabd9574880dbf76b9b8cc00832c20a6ec113d682299550d7a6e0f345e25","fn":"2c2ccf28d806f6f9a34b67aa874d2113b7ac1444f1a4092541b8b75b84771747","client_ip_address":"0.0.0.0","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"identify","event_time":1697278611,"event_id":"84e26acc-56a5-4835-8233-591137fca468","action_source":"website"}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 4', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + traits: { + name: 'Rudder Test', + email: 'abc@gmail.com', + phone: 9000000000, + address: { + postalCode: 1234, + }, + gender: 'female', + }, + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + properties: { + plan: 'standard plan', + name: 'rudder test', + }, + type: 'identify', + messageId: '84e26acc-56a5-4835-8233-591137fca468', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '123456', + integrations: { + All: true, + }, + sentAt: '2019-10-14T09:03:22.563Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","ph":"593a6d58f34eb5c3de4f47e38d1faaa7d389fafe332a85400b1e54498391c579","ge":"252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111","zp":"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4","client_ip_address":"0.0.0.0","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36","fn":"2c2ccf28d806f6f9a34b67aa874d2113b7ac1444f1a4092541b8b75b84771747","ln":"532eaabd9574880dbf76b9b8cc00832c20a6ec113d682299550d7a6e0f345e25"},"event_name":"identify","event_time":1697278611,"event_id":"84e26acc-56a5-4835-8233-591137fca468","action_source":"website"}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 5', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: 'abc@gmail.com', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + email: 'abc@gmail.com', + }, + timestamp: '2023-10-14T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08"},"event_name":"spin_result","event_time":1697278611,"action_source":"other","custom_data":{"additional_bet_index":0,"value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 6', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: 'abc@gmail.com', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + email: 'abc@gmail.com', + }, + timestamp: '2023-10-14T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: 'email', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08"},"event_name":"spin_result","event_time":1697278611,"action_source":"other","custom_data":{"additional_bet_index":0,"email":"abc@gmail.com","value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 7', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: 'abc@gmail.com', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + email: 'abc@gmail.com', + phone: 9000000000, + }, + timestamp: '2023-10-14T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: 'phone', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: 'email', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08"},"event_name":"spin_result","event_time":1697278611,"action_source":"other","custom_data":{"additional_bet_index":0,"email":"abc@gmail.com","value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 8', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: 'abc@gmail.com', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + email: 'abc@gmail.com', + phone: 9000000000, + }, + timestamp: '2023-10-14T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: 'phone', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: 'email', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08"},"event_name":"spin_result","event_time":1697278611,"action_source":"other","custom_data":{"additional_bet_index":0,"email":"abc@gmail.com","phone":"593a6d58f34eb5c3de4f47e38d1faaa7d389fafe332a85400b1e54498391c579","value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 9', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'page', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + timestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '/abc', + referrer: 'xyz', + search: 'def', + title: 'ghi', + url: 'jkl', + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: 'phone', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: 'email', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","client_ip_address":"0.0.0.0","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"Viewed page ApplicationLoaded","event_time":1697278611,"event_source_url":"jkl","event_id":"5e10d13a-bf9a-44bf-b884-43a9e591ea71","action_source":"website","custom_data":{"path":"/abc","referrer":"xyz","search":"def","title":"ghi","url":"jkl"}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 10', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'page', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '/abc', + referrer: 'xyz', + search: 'def', + title: 'ghi', + url: 'jkl', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: 'phone', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: 'email', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","client_ip_address":"0.0.0.0","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"Viewed a page","event_time":1697278611,"event_source_url":"jkl","event_id":"5e10d13a-bf9a-44bf-b884-43a9e591ea71","action_source":"website","custom_data":{"path":"/abc","referrer":"xyz","search":"def","title":"ghi","url":"jkl"}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 11', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'product list viewed', + properties: { + phone: 9000000000, + email: 'abc@gmail.com', + category: 'cat 1', + list_id: '1234', + filters: [ + { + type: 'department', + value: 'beauty', + }, + { + type: 'price', + value: 'under', + }, + ], + sorts: [ + { + type: 'price', + value: 'desc', + }, + ], + testDimension: true, + testMetric: true, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: 'phone', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: 'email', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"ViewContent","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"phone":"593a6d58f34eb5c3de4f47e38d1faaa7d389fafe332a85400b1e54498391c579","email":"abc@gmail.com","category":"cat 1","list_id":"1234","filters[0].type":"department","filters[0].value":"beauty","filters[1].type":"price","filters[1].value":"under","sorts[0].type":"price","sorts[0].value":"desc","testDimension":true,"testMetric":true,"content_ids":["cat 1"],"content_type":"product_group","contents":[{"id":"cat 1","quantity":1}],"content_category":"cat 1","value":0,"currency":"USD"}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 12', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'product list viewed', + properties: { + phone: 9000000000, + email: 'abc@gmail.com', + category: 'cat 1', + list_id: '1234', + filters: [ + { + type: 'department', + value: 'beauty', + }, + { + type: 'price', + value: 'under', + }, + ], + sorts: [ + { + type: 'price', + value: 'desc', + }, + ], + testDimension: true, + testMetric: true, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"ViewContent","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"category":"cat 1","list_id":"1234","filters[0].type":"department","filters[0].value":"beauty","filters[1].type":"price","filters[1].value":"under","sorts[0].type":"price","sorts[0].value":"desc","testDimension":true,"testMetric":true,"content_ids":["cat 1"],"content_type":"product_group","contents":[{"id":"cat 1","quantity":1}],"content_category":"cat 1","value":0,"currency":"USD"}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 13', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'product list viewed', + properties: { + email: 'abc@gmail.com', + quantity: 2, + category: 'cat 1', + list_id: '1234', + contentName: 'nutrition', + value: 18.9, + filters: [ + { + type: 'department', + value: 'beauty', + }, + { + type: 'price', + value: 'under', + }, + ], + sorts: [ + { + type: 'price', + value: 'desc', + }, + ], + products: [ + { + product_id: '507f1f77bcf86cd799439011', + productDimension: 'My Product Dimension', + productMetric: 'My Product Metric', + position: 10, + }, + { + product_id: '507f1f77bcf86cdef799439011', + productDimension: 'My Product Dimension1', + productMetric: 'My Product Metric1', + position: -10, + }, + ], + testDimension: true, + testMetric: true, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"ViewContent","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"quantity":2,"category":"cat 1","list_id":"1234","contentName":"nutrition","value":18.9,"filters[0].type":"department","filters[0].value":"beauty","filters[1].type":"price","filters[1].value":"under","sorts[0].type":"price","sorts[0].value":"desc","products[0].product_id":"507f1f77bcf86cd799439011","products[0].productDimension":"My Product Dimension","products[0].productMetric":"My Product Metric","products[0].position":10,"products[1].product_id":"507f1f77bcf86cdef799439011","products[1].productDimension":"My Product Dimension1","products[1].productMetric":"My Product Metric1","products[1].position":-10,"testDimension":true,"testMetric":true,"content_ids":["507f1f77bcf86cd799439011","507f1f77bcf86cdef799439011"],"content_type":"product","contents":[{"id":"507f1f77bcf86cd799439011","quantity":2},{"id":"507f1f77bcf86cdef799439011","quantity":2}],"content_category":"cat 1","content_name":"nutrition","currency":"USD"}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 14', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'my product list', + properties: { + email: 'abc@gmail.com', + quantity: 2, + category: 'cat 1', + list_id: '1234', + filters: [ + { + type: 'department', + value: 'beauty', + }, + { + type: 'price', + value: 'under', + }, + ], + sorts: [ + { + type: 'price', + value: 'desc', + }, + ], + products: [ + { + product_id: '507f1f77bcf86cd799439011', + productDimension: 'My Product Dimension', + productMetric: 'My Product Metric', + position: 10, + }, + { + product_id: '507f1f77bcf86cdef799439011', + productDimension: 'My Product Dimension1', + productMetric: 'My Product Metric1', + position: -10, + }, + ], + testDimension: true, + testMetric: true, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + removeExternalId: false, + eventsToEvents: [ + { + from: 'My product list', + to: 'ViewContent', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: 'list_id', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"ViewContent","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"quantity":2,"category":"cat 1","list_id":"1234","filters[0].type":"department","filters[0].value":"beauty","filters[1].type":"price","filters[1].value":"under","sorts[0].type":"price","sorts[0].value":"desc","products[0].product_id":"507f1f77bcf86cd799439011","products[0].productDimension":"My Product Dimension","products[0].productMetric":"My Product Metric","products[0].position":10,"products[1].product_id":"507f1f77bcf86cdef799439011","products[1].productDimension":"My Product Dimension1","products[1].productMetric":"My Product Metric1","products[1].position":-10,"testDimension":true,"testMetric":true,"content_ids":["507f1f77bcf86cd799439011","507f1f77bcf86cdef799439011"],"content_type":"product","contents":[{"id":"507f1f77bcf86cd799439011","quantity":2},{"id":"507f1f77bcf86cdef799439011","quantity":2}],"content_category":"cat 1","value":0,"currency":"USD"}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 15', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'product viewed', + properties: { + currency: 'CAD', + quantity: 1, + price: 24.75, + name: 'my product 1', + category: 'clothing', + sku: 'p-298', + testDimension: true, + testMetric: true, + position: 4.5, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + removeExternalId: true, + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"ViewContent","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"currency":"CAD","quantity":1,"price":24.75,"name":"my product 1","category":"clothing","sku":"p-298","testDimension":true,"testMetric":true,"position":4.5,"content_ids":["p-298"],"content_type":"product","content_name":"my product 1","content_category":"clothing","value":24.75,"contents":[{"id":"p-298","quantity":1,"item_price":24.75}]}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 16', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'product added', + properties: { + currency: 'CAD', + quantity: 1, + value: 24.75, + category: 'cat 1', + id: 'p-298', + testDimension: true, + testMetric: true, + position: 4.5, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + removeExternalId: false, + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.value', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"AddToCart","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"currency":"CAD","quantity":1,"value":24.75,"category":"cat 1","id":"p-298","testDimension":true,"testMetric":true,"position":4.5,"content_ids":["p-298"],"content_type":"product","content_name":"","content_category":"cat 1","contents":[{"id":"p-298","quantity":1}]}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 17', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'order completed', + properties: { + order_id: 'rudderstackorder1', + total: 99.99, + revenue: 12.24, + shipping: 13.99, + tax: 20.99, + currency: 'INR', + contentName: 'all about nutrition', + products: [ + { + quantity: 1, + price: 24.75, + name: 'my product', + sku: 'p-298', + }, + { + quantity: 3, + price: 24.75, + name: 'other product', + sku: 'p-299', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","em":"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"Purchase","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"order_id":"rudderstackorder1","total":99.99,"revenue":12.24,"shipping":13.99,"tax":20.99,"currency":"INR","contentName":"all about nutrition","products[0].quantity":1,"products[0].price":24.75,"products[0].name":"my product","products[0].sku":"p-298","products[1].quantity":3,"products[1].price":24.75,"products[1].name":"other product","products[1].sku":"p-299","content_ids":["p-298","p-299"],"content_type":"product","value":12.24,"contents":[{"id":"p-298","quantity":1,"item_price":24.75},{"id":"p-299","quantity":3,"item_price":24.75}],"num_items":2,"content_name":"all about nutrition"}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 18', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'checkout started', + properties: { + currency: 'CAD', + category: 'clothing', + contentName: 'abc', + products: [ + { + quantity: 1, + price: 24.75, + name: 'my product', + sku: 'p-298', + }, + { + quantity: 1, + price: 24.75, + name: 'my product 2', + sku: 'p-299', + }, + ], + step: 1, + paymentMethod: 'Visa', + testDimension: true, + testMetric: true, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: 'contentName', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","em":"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"InitiateCheckout","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"currency":"CAD","category":"clothing","contentName":"abc","products[0].quantity":1,"products[0].price":24.75,"products[0].name":"my product","products[0].sku":"p-298","products[1].quantity":1,"products[1].price":24.75,"products[1].name":"my product 2","products[1].sku":"p-299","step":1,"paymentMethod":"Visa","testDimension":true,"testMetric":true,"content_category":"clothing","content_ids":["p-298","p-299"],"content_type":"product","value":0,"contents":[{"id":"p-298","quantity":1,"item_price":24.75},{"id":"p-299","quantity":1,"item_price":24.75}],"num_items":2}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 19', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + dataProcessingOptions: [['LDU'], 1, 1000], + fbc: 'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890', + fbp: 'fb.1.1554763741205.234567890', + fb_login_id: 'fb_id', + lead_id: 'lead_id', + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: 'abc@gmail.com', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-10-14T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUSage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","fbc":"fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890","fbp":"fb.1.1554763741205.234567890","lead_id":"lead_id","fb_login_id":"fb_id"},"event_name":"spin_result","event_time":1697278611,"action_source":"other","data_processing_options":["LDU"],"data_processing_options_country":1,"data_processing_options_state":1000,"custom_data":{"additional_bet_index":0,"value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 20', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + dataProcessingOptions: [['LDU'], 1, 1000], + fbc: 'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890', + fbp: 'fb.1.1554763741205.234567890', + fb_login_id: 'fb_id', + lead_id: 'lead_id', + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: 'abc@gmail.com', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-10-14T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUSage: false, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","fbc":"fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890","fbp":"fb.1.1554763741205.234567890","lead_id":"lead_id","fb_login_id":"fb_id"},"event_name":"spin_result","event_time":1697278611,"action_source":"other","custom_data":{"additional_bet_index":0,"value":400}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 21', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'products searched', + properties: { + product_id: 'p-298', + quantity: 2, + price: 18.9, + category: 'health', + value: 18.9, + query: 'HDMI cable', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","em":"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"Search","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"product_id":"p-298","quantity":2,"price":18.9,"category":"health","value":18.9,"query":"HDMI cable","content_ids":["p-298"],"content_category":"health","contents":[{"id":"p-298","quantity":2,"item_price":18.9}],"search_string":"HDMI cable","currency":"USD"}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 22', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'products searched', + properties: { + query: 'HDMI cable', + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + testDestination: true, + testEventCode: 'TEST1001', + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","em":"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"Search","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"query":"HDMI cable","content_ids":[],"content_category":"","value":0,"contents":[],"search_string":"HDMI cable","currency":"USD"}}', + ], + test_event_code: 'TEST1001', + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 23', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + ip: '0.0.0.0', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'page', + messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + properties: { + path: '/abc', + referrer: 'xyz', + search: 'def', + title: 'ghi', + url: 'jkl', + }, + integrations: { + All: true, + }, + name: 'ApplicationLoaded', + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + standardPageCall: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: 'phone', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: 'url', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: 'email', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","client_ip_address":"0.0.0.0","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"PageView","event_time":1697278611,"event_source_url":"jkl","event_id":"5e10d13a-bf9a-44bf-b884-43a9e591ea71","action_source":"website","custom_data":{"path":"/abc","referrer":"xyz","search":"def","title":"ghi","url":"jkl"}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 24', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: 'abc@gmail.com', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'track page', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-10-14T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: 'track page', + to: 'PageView', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: 'additional_bet_index', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08"},"event_name":"PageView","event_time":1697278611,"action_source":"other","custom_data":{"revenue":400,"additional_bet_index":0}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 25', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'my product list', + properties: { + email: 'abc@gmail.com', + quantity: 2, + category: 'cat 1', + list_id: '1234', + filters: [ + { + type: 'department', + value: 'beauty', + }, + { + type: 'price', + value: 'under', + }, + ], + sorts: [ + { + type: 'price', + value: 'desc', + }, + ], + products: [ + { + product_id: '507f1f77bcf86cd799439011', + productDimension: 'My Product Dimension', + productMetric: 'My Product Metric', + position: 10, + }, + { + product_id: '507f1f77bcf86cdef799439011', + productDimension: 'My Product Dimension1', + productMetric: 'My Product Metric1', + position: -10, + }, + ], + testDimension: true, + testMetric: true, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: 'My product list', + to: 'Schedule', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: 'list_id', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"Schedule","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"quantity":2,"category":"cat 1","list_id":"1234","filters[0].type":"department","filters[0].value":"beauty","filters[1].type":"price","filters[1].value":"under","sorts[0].type":"price","sorts[0].value":"desc","products[0].product_id":"507f1f77bcf86cd799439011","products[0].productDimension":"My Product Dimension","products[0].productMetric":"My Product Metric","products[0].position":10,"products[1].product_id":"507f1f77bcf86cdef799439011","products[1].productDimension":"My Product Dimension1","products[1].productMetric":"My Product Metric1","products[1].position":-10,"testDimension":true,"testMetric":true}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 26', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: 'abc@gmail.com', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-10-14T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: "'event' is required", + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 27', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'product added', + properties: { + currency: 'CAD', + quantity: 1, + value: '35.753', + category: 'cat 1', + id: 'p-298', + testDimension: true, + testMetric: true, + position: 4.5, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.value', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"AddToCart","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"currency":"CAD","quantity":1,"value":35.75,"category":"cat 1","id":"p-298","testDimension":true,"testMetric":true,"position":4.5,"content_ids":["p-298"],"content_type":"product","content_name":"","content_category":"cat 1","contents":[{"id":"p-298","quantity":1}]}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 28', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'product added', + properties: { + currency: 'CAD', + quantity: 1, + value: '35.7A3', + category: 'cat 1', + id: 'p-298', + testDimension: true, + testMetric: true, + position: 4.5, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.value', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"AddToCart","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"currency":"CAD","quantity":1,"value":35.7,"category":"cat 1","id":"p-298","testDimension":true,"testMetric":true,"position":4.5,"content_ids":["p-298"],"content_type":"product","content_name":"","content_category":"cat 1","contents":[{"id":"p-298","quantity":1}]}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 29', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'product added', + properties: { + currency: 'CAD', + quantity: 1, + value: 'ABC', + category: 'cat 1', + id: 'p-298', + testDimension: true, + testMetric: true, + position: 4.5, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.value', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Revenue could not be converted to number', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 30', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'order completed', + properties: { + category: ['clothing', 'fishing'], + order_id: 'rudderstackorder1', + total: 99.99, + revenue: 12.24, + shipping: 13.99, + tax: 20.99, + currency: 'INR', + products: [ + { + quantity: 1, + price: 24.75, + name: 'my product', + sku: 'p-298', + }, + { + quantity: 3, + price: 24.75, + name: 'other product', + sku: 'p-299', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","em":"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"Purchase","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"category[0]":"clothing","category[1]":"fishing","order_id":"rudderstackorder1","total":99.99,"revenue":12.24,"shipping":13.99,"tax":20.99,"currency":"INR","products[0].quantity":1,"products[0].price":24.75,"products[0].name":"my product","products[0].sku":"p-298","products[1].quantity":3,"products[1].price":24.75,"products[1].name":"other product","products[1].sku":"p-299","content_category":"clothing,fishing","content_ids":["p-298","p-299"],"content_type":"product","value":12.24,"contents":[{"id":"p-298","quantity":1,"item_price":24.75},{"id":"p-299","quantity":3,"item_price":24.75}],"num_items":2}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 31', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'order completed', + properties: { + category: 100, + order_id: 'rudderstackorder1', + total: 99.99, + revenue: 12.24, + shipping: 13.99, + tax: 20.99, + currency: 'INR', + products: [ + { + quantity: 1, + price: 24.75, + name: 'my product', + sku: 'p-298', + }, + { + quantity: 3, + price: 24.75, + name: 'other product', + sku: 'p-299', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","em":"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"Purchase","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"category":100,"order_id":"rudderstackorder1","total":99.99,"revenue":12.24,"shipping":13.99,"tax":20.99,"currency":"INR","products[0].quantity":1,"products[0].price":24.75,"products[0].name":"my product","products[0].sku":"p-298","products[1].quantity":3,"products[1].price":24.75,"products[1].name":"other product","products[1].sku":"p-299","content_category":"100","content_ids":["p-298","p-299"],"content_type":"product","value":12.24,"contents":[{"id":"p-298","quantity":1,"item_price":24.75},{"id":"p-299","quantity":3,"item_price":24.75}],"num_items":2}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 32', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'order completed', + properties: { + category: { + category1: '1', + }, + order_id: 'rudderstackorder1', + total: 99.99, + revenue: 12.24, + shipping: 13.99, + tax: 20.99, + currency: 'INR', + products: [ + { + quantity: 1, + price: 24.75, + name: 'my product', + sku: 'p-298', + }, + { + quantity: 3, + price: 24.75, + name: 'other product', + sku: 'p-299', + }, + ], + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: "'properties.category' must be either be a string or an array", + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 33', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: 'abc@gmail.com', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2023-10-14T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: 'spin_result', + to: 'Schedule', + }, + { + to: 'Schedule', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08"},"event_name":"Schedule","event_time":1697278611,"action_source":"other","custom_data":{"revenue":400,"additional_bet_index":0}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 34', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: 'abc@gmail.com', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + timestamp: '2019-08-24T15:46:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + limitedDataUsage: true, + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: 'spin_result', + to: 'Schedule', + }, + { + to: 'Schedule', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: + 'Events must be sent within seven days of their occurrence or up to one minute in the future.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 35', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + destination_props: { + Fb: { + app_id: 'RudderFbApp', + }, + }, + context: { + device: { + id: 'df16bffa-5c3d-4fbb-9bce-3bab098129a7R', + manufacturer: 'Xiaomi', + model: 'Redmi 6', + name: 'xiaomi', + }, + network: { + carrier: 'Banglalink', + }, + os: { + name: 'android', + version: '8.1.0', + }, + screen: { + height: '100', + density: 50, + }, + traits: { + email: 'abc@gmail.com', + anonymousId: 'c82cbdff-e5be-4009-ac78-cdeea09ab4b1', + }, + }, + event: 'spin_result', + integrations: { + All: true, + }, + message_id: 'a80f82be-9bdc-4a9f-b2a5-15621ee41df8', + properties: { + revenue: 400, + additional_bet_index: 0, + }, + originalTimestamp: '2019-04-16T15:50:51.693229+05:30', + type: 'track', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + accessToken: 'validToken', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: true, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: + 'Events must be sent within seven days of their occurrence or up to one minute in the future.', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 36', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'products searched', + properties: { + query: { + key1: 'HDMI cable', + }, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: "'query' should be in string format only", + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 37', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'products searched', + properties: { + query: 50, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","em":"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"Search","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"query":50,"content_ids":[],"content_category":"","value":0,"contents":[],"search_string":50,"currency":"USD"}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 38', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + url: 'https://theminimstory.com/collections/summer-of-pearls?utm_source=facebook&utm_medium=paidsocial&utm_campaign=carousel&utm_content=ad1-jul&fbclid=IwAR2SsDcjzd_TLZN-e93kxOeGBYO4pQ3AiyeXSheHW5emDeLw8uTvo6lTMPI', + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'checkout started', + properties: { + currency: 'CAD', + category: 'clothing', + products: [ + { + quantity: 1, + price: 24.75, + name: 'my product', + sku: 'p-298', + }, + { + quantity: 1, + price: 24.75, + name: 'my product 2', + sku: 'p-299', + }, + ], + step: 1, + paymentMethod: 'Visa', + testDimension: true, + testMetric: true, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","em":"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36","fbc":"fb.1.1697278611693.IwAR2SsDcjzd_TLZN-e93kxOeGBYO4pQ3AiyeXSheHW5emDeLw8uTvo6lTMPI"},"event_name":"InitiateCheckout","event_time":1697278611,"event_source_url":"https://theminimstory.com/collections/summer-of-pearls?utm_source=facebook&utm_medium=paidsocial&utm_campaign=carousel&utm_content=ad1-jul&fbclid=IwAR2SsDcjzd_TLZN-e93kxOeGBYO4pQ3AiyeXSheHW5emDeLw8uTvo6lTMPI","event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"currency":"CAD","category":"clothing","products[0].quantity":1,"products[0].price":24.75,"products[0].name":"my product","products[0].sku":"p-298","products[1].quantity":1,"products[1].price":24.75,"products[1].name":"my product 2","products[1].sku":"p-299","step":1,"paymentMethod":"Visa","testDimension":true,"testMetric":true,"content_category":"clothing","content_ids":["p-298","p-299"],"content_type":"product","value":0,"contents":[{"id":"p-298","quantity":1,"item_price":24.75},{"id":"p-299","quantity":1,"item_price":24.75}],"num_items":2}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 39', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + url: 'https://theminimstory.com/collections/summer-of-pearls?utm_source=facebook&utm_medium=paidsocial&utm_campaign=carousel&utm_content=ad1-jul&fbclid=IwAR2SsDcjzd_TLZN-e93kxOeGBYO4pQ3AiyeXSheHW5emDeLw8uTvo6lTMPI', + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: { + name: 'checkout started', + }, + properties: { + currency: 'CAD', + category: 'clothing', + products: [ + { + quantity: 1, + price: 24.75, + name: 'my product', + sku: 'p-298', + }, + { + quantity: 1, + price: 24.75, + name: 'my product 2', + sku: 'p-299', + }, + ], + step: 1, + paymentMethod: 'Visa', + testDimension: true, + testMetric: true, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'event name should be string', + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 40', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + page: { + url: 'url in wrong format', + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'checkout started', + properties: { + currency: 'CAD', + category: 'clothing', + products: [ + { + quantity: 1, + price: 24.75, + name: 'my product', + sku: 'p-298', + }, + { + quantity: 1, + price: 24.75, + name: 'my product 2', + sku: 'p-299', + }, + ], + step: 1, + paymentMethod: 'Visa', + testDimension: true, + testMetric: true, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5","em":"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"InitiateCheckout","event_time":1697278611,"event_source_url":"url in wrong format","event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"currency":"CAD","category":"clothing","products[0].quantity":1,"products[0].price":24.75,"products[0].name":"my product","products[0].sku":"p-298","products[1].quantity":1,"products[1].price":24.75,"products[1].name":"my product 2","products[1].sku":"p-299","step":1,"paymentMethod":"Visa","testDimension":true,"testMetric":true,"content_category":"clothing","content_ids":["p-298","p-299"],"content_type":"product","value":0,"contents":[{"id":"p-298","quantity":1,"item_price":24.75},{"id":"p-299","quantity":1,"item_price":24.75}],"num_items":2}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 41', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'product viewed', + properties: { + currency: 'CAD', + quantity: 1, + price: 24.75, + name: 'my product 1', + category: 'clothing', + sku: 'p-298', + testDimension: true, + testMetric: true, + position: 4.5, + }, + integrations: { + All: true, + Facebook_Pixel: { + contentType: 'sending dedicated content type for this particular payload', + }, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + removeExternalId: true, + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"ViewContent","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"currency":"CAD","quantity":1,"price":24.75,"name":"my product 1","category":"clothing","sku":"p-298","testDimension":true,"testMetric":true,"position":4.5,"content_ids":["p-298"],"content_type":"sending dedicated content type for this particular payload","content_name":"my product 1","content_category":"clothing","value":24.75,"contents":[{"id":"p-298","quantity":1,"item_price":24.75}]}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 42', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'product viewed', + properties: { + currency: 'CAD', + quantity: 1, + price: 24.75, + value: 18.9, + name: 'my product 1', + category: 'clothing', + sku: 'p-298', + testDimension: true, + testMetric: true, + position: 4.5, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + removeExternalId: true, + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.value', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"ViewContent","event_time":1697278611,"event_id":"ec5481b6-a926-4d2e-b293-0b3a77c4d3be","action_source":"website","custom_data":{"currency":"CAD","quantity":1,"price":24.75,"value":18.9,"name":"my product 1","category":"clothing","sku":"p-298","testDimension":true,"testMetric":true,"position":4.5,"content_ids":["p-298"],"content_type":"product","content_name":"my product 1","content_category":"clothing","contents":[{"id":"p-298","quantity":1,"item_price":24.75}]}}', + ], + }, + }, + files: {}, + userId: '', + }, + statusCode: 200, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 43', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + traits: { + email: 'test@rudderstack.com', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'order completed', + properties: { + order_id: 'rudderstackorder1', + total: 99.99, + revenue: 12.24, + shipping: 13.99, + tax: 20.99, + currency: 'INR', + contentName: 'all about nutrition', + products: { + quantity: 1, + price: 24.75, + name: 'my product', + sku: 'p-298', + }, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + categoryToContent: [ + { + from: 'clothing', + to: 'product', + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: "'properties.products' is not sent as an Array", + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 44', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'product list viewed', + properties: { + email: 'abc@gmail.com', + quantity: 2, + category: 'cat 1', + list_id: '1234', + contentName: 'nutrition', + value: 18.9, + products: [ + { + product_id: '507f1f77bcf86cd799439011', + productDimension: 'My Product Dimension', + productMetric: 'My Product Metric', + position: 10, + }, + [ + { + product_id: '507f1f77bcf86cdef799439011', + productDimension: 'My Product Dimension1', + productMetric: 'My Product Metric1', + position: -10, + }, + ], + ], + testDimension: true, + testMetric: true, + }, + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + accessToken: '09876', + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + eventCustomProperties: [ + { + eventCustomProperties: '', + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: "'properties.products[1]' is not an object", + statTags: { + errorCategory: 'dataValidation', + errorType: 'instrumentation', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 45', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'custom', + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + pixelId: 'dummyPixelId', + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Access token not found. Aborting', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 46', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + message: { + channel: 'web', + context: { + app: { + build: '1.0.0', + name: 'RudderLabs JavaScript SDK', + namespace: 'com.rudderlabs.javascript', + version: '1.0.0', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: '1.0.0', + }, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', + locale: 'en-US', + os: { + name: '', + version: '', + }, + screen: { + density: 2, + }, + }, + type: 'track', + messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be', + originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + anonymousId: '00000000000000000000000000', + userId: '12345', + event: 'custom', + integrations: { + All: true, + }, + sentAt: '2019-10-14T11:15:53.296Z', + }, + destination: { + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: true, + }, + ], + valueFieldIdentifier: '', + advancedMapping: false, + whitelistPiiProperties: [ + { + whitelistPiiProperties: '', + }, + ], + }, + Enabled: true, + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + statusCode: 400, + error: 'Pixel Id not found. Aborting', + statTags: { + errorCategory: 'dataValidation', + errorType: 'configuration', + destType: 'FACEBOOK_PIXEL', + module: 'destination', + implementation: 'native', + feature: 'processor', + }, + }, + ], + }, + }, + }, + { + name: 'facebook_pixel', + description: 'Test 47', + feature: 'processor', + module: 'destination', + version: 'v0', + input: { + request: { + body: [ + { + metadata: { + jobId: 12, + }, + destination: { + secretConfig: {}, + Config: { + blacklistPiiProperties: [ + { + blacklistPiiProperties: '', + blacklistPiiHash: false, + }, + ], + pixelId: 'dummyPixelId', + eventsToEvents: [ + { + from: '', + to: '', + }, + ], + valueFieldIdentifier: 'properties.price', + advancedMapping: false, + whitelistPiiProperties: [], + limitedDataUSage: false, + accessToken: 'dummyAccessToken', + testDestination: false, + testEventCode: '', + standardPageCall: false, + blacklistedEvents: [], + whitelistedEvents: [], + eventFilteringOption: 'disable', + removeExternalId: false, + useUpdatedMapping: false, + oneTrustCookieCategories: [], + useNativeSDK: false, + eventDelivery: false, + eventDeliveryTS: 1686748039135, + }, + liveEventsConfig: { + eventDelivery: false, + eventDeliveryTS: 1686748039135, + }, + id: 'destId1', + workspaceId: 'wsp2', + transformations: [], + isConnectionEnabled: true, + isProcessorEnabled: true, + name: 'san-fb_pixel', + enabled: true, + deleted: false, + createdAt: '2023-06-06T13:36:08.579Z', + updatedAt: '2023-06-14T13:07:19.136Z', + revisionId: 'revId2', + secretVersion: 3, + }, + message: { + type: 'page', + sentAt: '2023-10-14T15:46:51.000Z', + userId: 'user@19', + channel: 'web', + context: { + os: { + name: '', + version: '', + }, + app: { + name: 'RudderLabs JavaScript SDK', + version: 'dev-snapshot', + namespace: 'com.rudderlabs.javascript', + }, + page: { + url: 'http://127.0.0.1:8888/', + path: '/', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:8888/', + referrer: 'http://127.0.0.1:8888/', + initial_referrer: '$direct', + referring_domain: '127.0.0.1:8888', + initial_referring_domain: '', + }, + locale: 'en-GB', + screen: { + width: 1728, + height: 1117, + density: 2, + innerWidth: 547, + innerHeight: 915, + }, + traits: { + name: false, + source: 'rudderstack', + }, + library: { + name: 'RudderLabs JavaScript SDK', + version: 'dev-snapshot', + }, + campaign: {}, + sessionId: 1687769234506, + userAgent: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36', + }, + rudderId: '6bbfd003-c074-4ee9-8674-c132ded9ff04', + timestamp: '2023-10-14T15:46:51.000Z', + properties: { + url: 'http://127.0.0.1:8888/', + path: '/', + title: 'Document', + search: '', + tab_url: 'http://127.0.0.1:8888/', + referrer: 'http://127.0.0.1:8888/', + initial_referrer: '$direct', + referring_domain: '127.0.0.1:8888', + initial_referring_domain: '', + }, + receivedAt: '2023-10-14T15:46:51.000Z', + request_ip: '49.206.54.243', + anonymousId: '700ab220-faad-4cdf-8484-63e4c6bce6fe', + integrations: { + All: true, + }, + originalTimestamp: '2023-10-14T15:46:51.000Z', + }, + }, + ], + }, + }, + output: { + response: { + status: 200, + body: [ + { + output: { + version: '1', + type: 'REST', + method: 'POST', + endpoint: + 'https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=dummyAccessToken', + headers: {}, + params: {}, + body: { + JSON: {}, + JSON_ARRAY: {}, + XML: {}, + FORM: { + data: [ + '{"user_data":{"external_id":"72fd46c9ecb386f6747664a3e1d524294a3d7a2c8ae4aeb22b1e578b75093635","client_ip_address":"49.206.54.243","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"},"event_name":"PageView","event_time":1697298411,"event_source_url":"http://127.0.0.1:8888/","action_source":"website","custom_data":{"url":"http://127.0.0.1:8888/","path":"/","title":"Document","search":"","tab_url":"http://127.0.0.1:8888/","referrer":"http://127.0.0.1:8888/","initial_referrer":"$direct","referring_domain":"127.0.0.1:8888","initial_referring_domain":""}}', + ], + }, + }, + files: {}, + userId: '', + }, + metadata: { + jobId: 12, + }, + statusCode: 200, + }, + ], + }, + }, + }, +].map((d) => ({ ...d, mockFns })); diff --git a/test/integrations/destinations/facebook_pixel/router/data.ts b/test/integrations/destinations/facebook_pixel/router/data.ts index 9dee212222..ef6b9f8635 100644 --- a/test/integrations/destinations/facebook_pixel/router/data.ts +++ b/test/integrations/destinations/facebook_pixel/router/data.ts @@ -1,3 +1,8 @@ +export const mockFns = (_) => { + // @ts-ignore + jest.useFakeTimers().setSystemTime(new Date('2023-10-15')); +}; + export const data = [ { name: 'facebook_pixel', @@ -129,7 +134,7 @@ export const data = [ }, type: 'identify', messageId: '84e26acc-56a5-4835-8233-591137fca468', - originalTimestamp: '2023-10-14T15:46:51.693229+05:30', + originalTimestamp: '2023-10-14T00:00:00.693229+05:30', anonymousId: '00000000000000000000000000', userId: '123456', integrations: { @@ -258,7 +263,7 @@ export const data = [ JSON_ARRAY: {}, FORM: { data: [ - '{"user_data":{"external_id":"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","ph":"593a6d58f34eb5c3de4f47e38d1faaa7d389fafe332a85400b1e54498391c579","ge":"252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111","ln":"532eaabd9574880dbf76b9b8cc00832c20a6ec113d682299550d7a6e0f345e25","fn":"2c2ccf28d806f6f9a34b67aa874d2113b7ac1444f1a4092541b8b75b84771747","client_ip_address":"0.0.0.0","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"identify","event_time":1697278611,"event_id":"84e26acc-56a5-4835-8233-591137fca468","action_source":"website"}', + '{"user_data":{"external_id":"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92","em":"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08","ph":"593a6d58f34eb5c3de4f47e38d1faaa7d389fafe332a85400b1e54498391c579","ge":"252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111","ln":"532eaabd9574880dbf76b9b8cc00832c20a6ec113d682299550d7a6e0f345e25","fn":"2c2ccf28d806f6f9a34b67aa874d2113b7ac1444f1a4092541b8b75b84771747","client_ip_address":"0.0.0.0","client_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"},"event_name":"identify","event_time":1697221800,"event_id":"84e26acc-56a5-4835-8233-591137fca468","action_source":"website"}', ], }, }, @@ -308,4 +313,4 @@ export const data = [ }, }, }, -]; +].map((d) => ({ ...d, mockFns })); From eb702a9e68ba592e2a997bdd2cd697d12caa3e86 Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Mon, 16 Oct 2023 12:44:19 +0530 Subject: [PATCH 7/9] chore: cleanup old test and data files --- test/__tests__/algolia-cdk.test.ts | 59 - test/__tests__/algolia.test.js | 58 - test/__tests__/appcues.test.js | 49 - test/__tests__/attentive_tag.test.js | 51 - test/__tests__/autopilot-cdk.test.ts | 33 - test/__tests__/autopilot.test.js | 7 - test/__tests__/azure_event_hub.test.js | 46 - test/__tests__/blueshift.test.js | 51 - test/__tests__/branch.test.js | 49 - test/__tests__/campaign_manager.test.js | 47 - test/__tests__/candu.test.js | 49 - test/__tests__/confluent_cloud.test.js | 47 - test/__tests__/courier.test.js | 46 - test/__tests__/criteo_audience.test.js | 79 - test/__tests__/customerio.test.js | 51 - test/__tests__/data/algolia_input.json | 804 --- test/__tests__/data/algolia_output.json | 121 - test/__tests__/data/algolia_router_input.json | 1902 ------- .../__tests__/data/algolia_router_output.json | 288 - test/__tests__/data/appcues_input.json | 750 --- test/__tests__/data/appcues_output.json | 320 -- test/__tests__/data/appcues_router_input.json | 119 - .../__tests__/data/appcues_router_output.json | 75 - test/__tests__/data/attentive_tag_input.json | 1062 ---- test/__tests__/data/attentive_tag_output.json | 368 -- .../data/attentive_tag_router_input.json | 57 - .../data/attentive_tag_router_output.json | 40 - test/__tests__/data/autopilot_cdk_output.json | 108 - test/__tests__/data/autopilot_input.json | 796 --- test/__tests__/data/autopilot_output.json | 108 - .../data/autopilot_router_input.json | 165 - .../data/autopilot_router_output.json | 125 - .../__tests__/data/azure_event_hub_input.json | 396 -- .../data/azure_event_hub_output.json | 276 - test/__tests__/data/blueshift_input.json | 1120 ---- test/__tests__/data/blueshift_output.json | 438 -- .../data/blueshift_router_input.json | 167 - .../data/blueshift_router_output.json | 156 - test/__tests__/data/branch_input.json | 806 --- test/__tests__/data/branch_output.json | 385 -- test/__tests__/data/branch_router_input.json | 128 - test/__tests__/data/branch_router_output.json | 120 - test/__tests__/data/campaign_manager.json | 653 --- .../data/campaign_manager_router_input.json | 276 - .../data/campaign_manager_router_output.json | 156 - test/__tests__/data/candu_input.json | 938 ---- test/__tests__/data/candu_output.json | 209 - test/__tests__/data/candu_router_input.json | 105 - test/__tests__/data/candu_router_output.json | 82 - .../__tests__/data/confluent_cloud_input.json | 396 -- .../data/confluent_cloud_output.json | 276 - test/__tests__/data/courier.json | 218 - test/__tests__/data/courier_router.json | 136 - test/__tests__/data/criteo_audience.json | 1307 ----- .../data/criteo_audience_router_input.json | 111 - .../data/criteo_audience_router_output.json | 135 - test/__tests__/data/customerio_input.json | 4964 ----------------- test/__tests__/data/customerio_output.json | 1779 ------ .../data/customerio_router_input.json | 233 - .../data/customerio_router_output.json | 175 - .../data/facebook_offline_conversions.json | 1393 ----- .../facebook_offline_conversions_router.json | 664 --- test/__tests__/data/facebook_pixel_input.json | 4092 -------------- .../__tests__/data/facebook_pixel_output.json | 772 --- .../data/facebook_pixel_router_input.json | 164 - .../data/facebook_pixel_router_output.json | 122 - .../facebook_offline_conversions.test.js | 85 - test/__tests__/fbpixel.test.js | 53 - 68 files changed, 31416 deletions(-) delete mode 100644 test/__tests__/algolia-cdk.test.ts delete mode 100644 test/__tests__/algolia.test.js delete mode 100644 test/__tests__/appcues.test.js delete mode 100644 test/__tests__/attentive_tag.test.js delete mode 100644 test/__tests__/autopilot-cdk.test.ts delete mode 100644 test/__tests__/autopilot.test.js delete mode 100644 test/__tests__/azure_event_hub.test.js delete mode 100644 test/__tests__/blueshift.test.js delete mode 100644 test/__tests__/branch.test.js delete mode 100644 test/__tests__/campaign_manager.test.js delete mode 100644 test/__tests__/candu.test.js delete mode 100644 test/__tests__/confluent_cloud.test.js delete mode 100644 test/__tests__/courier.test.js delete mode 100644 test/__tests__/criteo_audience.test.js delete mode 100644 test/__tests__/customerio.test.js delete mode 100644 test/__tests__/data/algolia_input.json delete mode 100644 test/__tests__/data/algolia_output.json delete mode 100644 test/__tests__/data/algolia_router_input.json delete mode 100644 test/__tests__/data/algolia_router_output.json delete mode 100644 test/__tests__/data/appcues_input.json delete mode 100644 test/__tests__/data/appcues_output.json delete mode 100644 test/__tests__/data/appcues_router_input.json delete mode 100644 test/__tests__/data/appcues_router_output.json delete mode 100644 test/__tests__/data/attentive_tag_input.json delete mode 100644 test/__tests__/data/attentive_tag_output.json delete mode 100644 test/__tests__/data/attentive_tag_router_input.json delete mode 100644 test/__tests__/data/attentive_tag_router_output.json delete mode 100644 test/__tests__/data/autopilot_cdk_output.json delete mode 100644 test/__tests__/data/autopilot_input.json delete mode 100644 test/__tests__/data/autopilot_output.json delete mode 100644 test/__tests__/data/autopilot_router_input.json delete mode 100644 test/__tests__/data/autopilot_router_output.json delete mode 100644 test/__tests__/data/azure_event_hub_input.json delete mode 100644 test/__tests__/data/azure_event_hub_output.json delete mode 100644 test/__tests__/data/blueshift_input.json delete mode 100644 test/__tests__/data/blueshift_output.json delete mode 100644 test/__tests__/data/blueshift_router_input.json delete mode 100644 test/__tests__/data/blueshift_router_output.json delete mode 100644 test/__tests__/data/branch_input.json delete mode 100644 test/__tests__/data/branch_output.json delete mode 100644 test/__tests__/data/branch_router_input.json delete mode 100644 test/__tests__/data/branch_router_output.json delete mode 100644 test/__tests__/data/campaign_manager.json delete mode 100644 test/__tests__/data/campaign_manager_router_input.json delete mode 100644 test/__tests__/data/campaign_manager_router_output.json delete mode 100644 test/__tests__/data/candu_input.json delete mode 100644 test/__tests__/data/candu_output.json delete mode 100644 test/__tests__/data/candu_router_input.json delete mode 100644 test/__tests__/data/candu_router_output.json delete mode 100644 test/__tests__/data/confluent_cloud_input.json delete mode 100644 test/__tests__/data/confluent_cloud_output.json delete mode 100644 test/__tests__/data/courier.json delete mode 100644 test/__tests__/data/courier_router.json delete mode 100644 test/__tests__/data/criteo_audience.json delete mode 100644 test/__tests__/data/criteo_audience_router_input.json delete mode 100644 test/__tests__/data/criteo_audience_router_output.json delete mode 100644 test/__tests__/data/customerio_input.json delete mode 100644 test/__tests__/data/customerio_output.json delete mode 100644 test/__tests__/data/customerio_router_input.json delete mode 100644 test/__tests__/data/customerio_router_output.json delete mode 100644 test/__tests__/data/facebook_offline_conversions.json delete mode 100644 test/__tests__/data/facebook_offline_conversions_router.json delete mode 100644 test/__tests__/data/facebook_pixel_input.json delete mode 100644 test/__tests__/data/facebook_pixel_output.json delete mode 100644 test/__tests__/data/facebook_pixel_router_input.json delete mode 100644 test/__tests__/data/facebook_pixel_router_output.json delete mode 100644 test/__tests__/facebook_offline_conversions.test.js delete mode 100644 test/__tests__/fbpixel.test.js diff --git a/test/__tests__/algolia-cdk.test.ts b/test/__tests__/algolia-cdk.test.ts deleted file mode 100644 index 0b6fae6741..0000000000 --- a/test/__tests__/algolia-cdk.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -import fs from 'fs'; -import path from 'path'; -import { processCdkV2Workflow } from '../../src/cdk/v2/handler'; -import tags from '../../src/v0/util/tags'; - -const integration = 'algolia'; -const destName = 'Algolia'; - -const inputDataFile = fs.readFileSync(path.resolve(__dirname, `./data/${integration}_input.json`), { - encoding: 'utf8', -}); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_output.json`), - { encoding: 'utf8' }, -); -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -describe(`${destName} Tests`, () => { - describe('Processor Tests', () => { - inputData.forEach((input, index) => { - it(`${destName} - payload: ${index}`, async () => { - const expected = expectedData[index]; - try { - const output = await processCdkV2Workflow(integration, input, tags.FEATURES.PROCESSOR); - expect(output).toEqual(expected); - } catch (error: any) { - expect(error.message).toEqual(expected.message); - } - }); - }); - }); - - const inputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_input.json`), - { encoding: 'utf8' }, - ); - const outputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_output.json`), - { encoding: 'utf8' }, - ); - const inputRouterData = JSON.parse(inputRouterDataFile); - const expectedRouterData = JSON.parse(outputRouterDataFile); - - describe('Router Tests', () => { - inputRouterData.forEach((input, index) => { - it(`${destName} - payload: ${index}`, async () => { - const expected = expectedRouterData[index]; - try { - const output = await processCdkV2Workflow(integration, input, tags.FEATURES.ROUTER); - expect(output).toEqual(expected); - } catch (error: any) { - // console.log(error); - expect(error.message).toEqual(expected.message); - } - }); - }); - }); -}); diff --git a/test/__tests__/algolia.test.js b/test/__tests__/algolia.test.js deleted file mode 100644 index c958ff237b..0000000000 --- a/test/__tests__/algolia.test.js +++ /dev/null @@ -1,58 +0,0 @@ -const integration = "algolia"; -const name = "algolia"; - -const fs = require("fs"); -const path = require("path"); - -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); -const inputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_input.json`) -); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_output.json`) -); -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -inputData.forEach((input, index) => { - it(`${name} Tests: payload - ${index}`, () => { - let output, expected; - try { - output = transformer.process(input); - expected = expectedData[index]; - } catch (error) { - output = error.message; - // console.log(output); - expected = expectedData[index].message; - } - expect(output).toEqual(expected); - }); -}); - -const routerInputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_input.json`) -); -const routerInputData = JSON.parse(routerInputDataFile); -const routerOutputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_output.json`) -); -const routerOutputData = JSON.parse(routerOutputDataFile); - -describe("Router Tests", () => { - routerInputData.forEach((input, index) => { - it(`${name} Tests: payload - ${index}`, async () => { - let output, expected; - try { - output = await transformer.processRouterDest(input); - expected = routerOutputData[index]; - } catch (error) { - output = error.message; - // console.log(output); - expected = routerOutputData[index].message; - } - expect(output).toEqual(expected); - }); - }); -}); diff --git a/test/__tests__/appcues.test.js b/test/__tests__/appcues.test.js deleted file mode 100644 index 077d2e580c..0000000000 --- a/test/__tests__/appcues.test.js +++ /dev/null @@ -1,49 +0,0 @@ -const integration = "appcues"; -const name = "Appcues"; - -const fs = require("fs"); -const path = require("path"); - -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); -const inputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_input.json`) -); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_output.json`) -); -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -// Router Test Data -const inputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_input.json`) -); -const outputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_output.json`) -); -const inputRouterData = JSON.parse(inputRouterDataFile); -const expectedRouterData = JSON.parse(outputRouterDataFile); - -describe(`${name} Tests`, () => { - describe("Processor Tests", () => { - inputData.forEach((input, index) => { - it(`${name} - payload: ${index}`, async () => { - try { - const output = await transformer.process(input); - expect(output).toEqual(expectedData[index]); - } catch (error) { - expect(error.message).toEqual(expectedData[index].error); - } - }); - }); - }); - - describe("Router Tests", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/attentive_tag.test.js b/test/__tests__/attentive_tag.test.js deleted file mode 100644 index ff8e278ece..0000000000 --- a/test/__tests__/attentive_tag.test.js +++ /dev/null @@ -1,51 +0,0 @@ -const integration = "attentive_tag"; -const name = "Attentive Tag"; - -const fs = require("fs"); -const path = require("path"); - -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); -const inputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_input.json`) -); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_output.json`) -); -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -// Router Test Data -const inputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_input.json`) -); -const outputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_output.json`) -); -const inputRouterData = JSON.parse(inputRouterDataFile); -const expectedRouterData = JSON.parse(outputRouterDataFile); - -Date.now = jest.fn(() => new Date("2019-10-14T09:03:17.562Z")); - -describe(`${name} Tests`, () => { - describe("Processor Tests", () => { - inputData.forEach((input, index) => { - it(`${name} - payload: ${index}`, async () => { - try { - const output = await transformer.process(input); - expect(output).toEqual(expectedData[index]); - } catch (error) { - expect(error.message).toEqual(expectedData[index].error); - } - }); - }); - }); - - describe("Router Tests", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/autopilot-cdk.test.ts b/test/__tests__/autopilot-cdk.test.ts deleted file mode 100644 index fcb0ad401b..0000000000 --- a/test/__tests__/autopilot-cdk.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import fs from 'fs'; -import path from 'path'; -import { processCdkV2Workflow } from '../../src/cdk/v2/handler'; -import tags from '../../src/v0/util/tags'; - -const integration = 'autopilot'; -const destName = 'Autopilot'; - -const inputDataFile = fs.readFileSync(path.resolve(__dirname, `./data/${integration}_input.json`), { - encoding: 'utf8', -}); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_cdk_output.json`), - { encoding: 'utf8' }, -); -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -describe(`${destName} Tests`, () => { - describe('Processor Tests', () => { - inputData.forEach((input, index) => { - it(`${destName} - payload: ${index}`, async () => { - const expected = expectedData[index]; - try { - const output = await processCdkV2Workflow(integration, input, tags.FEATURES.PROCESSOR); - expect(output).toEqual(expected); - } catch (error: any) { - expect(error.message).toEqual(expected.error); - } - }); - }); - }); -}); diff --git a/test/__tests__/autopilot.test.js b/test/__tests__/autopilot.test.js deleted file mode 100644 index d2b226aea3..0000000000 --- a/test/__tests__/autopilot.test.js +++ /dev/null @@ -1,7 +0,0 @@ -const { - getDestFromTestFile, - executeTransformationTest -} = require("./utilities/test-utils"); - -executeTransformationTest(getDestFromTestFile(__filename), "processor"); -executeTransformationTest(getDestFromTestFile(__filename), "router"); diff --git a/test/__tests__/azure_event_hub.test.js b/test/__tests__/azure_event_hub.test.js deleted file mode 100644 index b76c7450cd..0000000000 --- a/test/__tests__/azure_event_hub.test.js +++ /dev/null @@ -1,46 +0,0 @@ -const integration = "azure_event_hub"; -const name = "Azure event Hub"; - -const fs = require("fs"); -const path = require("path"); -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); - -const inputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_input.json`) -); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_output.json`) -); - -const dataWithMetadata = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_with_metadata.json`) -); - -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -inputData.forEach((input, index) => { - it(`${name} Tests: payload: ${index}`, async () => { - try { - const output = await transformer.process(input); - expect(output).toEqual(expectedData[index]); - } catch (error) { - expect(error.message).toEqual(expectedData[index].message); - } - }); -}); - -test(`${name} Metadata parse test`, done => { - const inputData = JSON.parse(dataWithMetadata); - inputData.forEach(async (data, _) => { - try { - const output = transformer.processMetadata(data.input); - expect(output).toEqual(data.output); - done(); - } catch (error) { - done(error); - } - }); -}); diff --git a/test/__tests__/blueshift.test.js b/test/__tests__/blueshift.test.js deleted file mode 100644 index 156552b54b..0000000000 --- a/test/__tests__/blueshift.test.js +++ /dev/null @@ -1,51 +0,0 @@ -const integration = "blueshift"; -const name = "blueshift"; - -const fs = require("fs"); -const path = require("path"); - -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); - -// Processor Test Data -const inputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_input.json`) -); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_output.json`) -); -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -// Router Test Data -const inputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_input.json`) -); -const outputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_output.json`) -); -const inputRouterData = JSON.parse(inputRouterDataFile); -const expectedRouterData = JSON.parse(outputRouterDataFile); - -describe(`${name} Tests`, () => { - describe("Processor Tests", () => { - inputData.forEach((input, index) => { - it(`${name} - payload: ${index}`, async () => { - try { - const output = await transformer.process(input); - expect(output).toEqual(expectedData[index]); - } catch (error) { - expect(error.message).toEqual(expectedData[index].error); - } - }); - }); - }); - - describe("Router Tests", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/branch.test.js b/test/__tests__/branch.test.js deleted file mode 100644 index 74af08b18a..0000000000 --- a/test/__tests__/branch.test.js +++ /dev/null @@ -1,49 +0,0 @@ -const integration = "branch"; -const name = "Branch"; - -const fs = require("fs"); -const path = require("path"); - -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); -const inputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_input.json`) -); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_output.json`) -); -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -// Router Test Data -const inputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_input.json`) -); -const outputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_output.json`) -); -const inputRouterData = JSON.parse(inputRouterDataFile); -const expectedRouterData = JSON.parse(outputRouterDataFile); - -describe(`${name} Tests`, () => { - describe("Processor Tests", () => { - inputData.forEach((input, index) => { - it(`${name} - payload: ${index}`, async () => { - try { - const output = await transformer.process(input); - expect(output).toEqual(expectedData[index]); - } catch (error) { - expect(error.message).toEqual(expectedData[index].error); - } - }); - }); - }); - - describe("Router Tests", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/campaign_manager.test.js b/test/__tests__/campaign_manager.test.js deleted file mode 100644 index 4f3a40d520..0000000000 --- a/test/__tests__/campaign_manager.test.js +++ /dev/null @@ -1,47 +0,0 @@ -const integration = "campaign_manager"; -const name = "campaign_manager"; - -const fs = require("fs"); -const path = require("path"); - -const version = "v0"; -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); - -// Processor Test Data -const testDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}.json`) -); -const testData = JSON.parse(testDataFile); - -// Router Test files -const inputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_input.json`) -); -const outputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_output.json`) -); -const inputRouterData = JSON.parse(inputRouterDataFile); -const expectedRouterData = JSON.parse(outputRouterDataFile); - -describe(`${name} Tests`, () => { - describe("Processor", () => { - testData.forEach((dataPoint, index) => { - it(`${index}. ${integration} - ${dataPoint.description}`, async () => { - try { - let output = await transformer.process(dataPoint.input); - delete output.body.JSON.idempotency; - expect(output).toEqual(dataPoint.output); - } catch (error) { - expect(error.message).toEqual(dataPoint.output.error); - } - }); - }); - }); - - describe("Router Tests", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/candu.test.js b/test/__tests__/candu.test.js deleted file mode 100644 index 6a2fcadb23..0000000000 --- a/test/__tests__/candu.test.js +++ /dev/null @@ -1,49 +0,0 @@ -const integration = "candu"; -const name = "Candu"; - -const fs = require("fs"); -const path = require("path"); - -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); -const inputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_input.json`) -); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_output.json`) -); -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -// Router Test Data -const inputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_input.json`) -); -const outputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_output.json`) -); -const inputRouterData = JSON.parse(inputRouterDataFile); -const expectedRouterData = JSON.parse(outputRouterDataFile); - -describe(`${name} Tests`, () => { - describe("Processor Tests", () => { - inputData.forEach((input, index) => { - it(`${name} - payload: ${index}`, async () => { - try { - const output = await transformer.process(input); - expect(output).toEqual(expectedData[index]); - } catch (error) { - expect(error.message).toEqual(expectedData[index].error); - } - }); - }); - }); - - describe("Router Tests", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/confluent_cloud.test.js b/test/__tests__/confluent_cloud.test.js deleted file mode 100644 index 3c57ebccbe..0000000000 --- a/test/__tests__/confluent_cloud.test.js +++ /dev/null @@ -1,47 +0,0 @@ -const integration = "confluent_cloud"; -const name = "Confluent Cloud"; - -const fs = require("fs"); -const path = require("path"); - -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); - -const inputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_input.json`) -); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_output.json`) -); - -const dataWithMetadata = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_with_metadata.json`) -); - -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -inputData.forEach((input, index) => { - it(`${name} Tests: payload: ${index}`, async () => { - try { - const output = await transformer.process(input); - expect(output).toEqual(expectedData[index]); - } catch (error) { - expect(error.message).toEqual(expectedData[index].message); - } - }); -}); - -test(`${name} Metadata parse test`, done => { - const inputData = JSON.parse(dataWithMetadata); - inputData.forEach(async (data, _) => { - try { - const output = transformer.processMetadata(data.input); - expect(output).toEqual(data.output); - done(); - } catch (error) { - done(error); - } - }); -}); diff --git a/test/__tests__/courier.test.js b/test/__tests__/courier.test.js deleted file mode 100644 index 30c99a424c..0000000000 --- a/test/__tests__/courier.test.js +++ /dev/null @@ -1,46 +0,0 @@ -const integration = "courier"; -const name = "Courier"; - -const fs = require("fs"); -const path = require("path"); - -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); - -// Processor Test files -const testDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}.json`) -); -const testData = JSON.parse(testDataFile); - -// Router Test files -const routerTestDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router.json`) - ); -const routerTestData = JSON.parse(routerTestDataFile); - -describe(`${name} Tests`, () => { - describe("Processor", () => { - testData.forEach(async (dataPoint, index) => { - it(`${index}. ${integration} - ${dataPoint.description}`, async () => { - try { - const output = await transformer.process(dataPoint.input); - expect(output).toEqual(dataPoint.output); - } catch (error) { - expect(error.message).toEqual(dataPoint.output.error); - } - }); - }); - }); - - describe("Router Tests", () => { - routerTestData.forEach(dataPoint => { - it("Payload", async () => { - const output = await transformer.processRouterDest(dataPoint.input); - expect(output).toEqual(dataPoint.output); - }); - }); - }); - -}); diff --git a/test/__tests__/criteo_audience.test.js b/test/__tests__/criteo_audience.test.js deleted file mode 100644 index 099fbd0a18..0000000000 --- a/test/__tests__/criteo_audience.test.js +++ /dev/null @@ -1,79 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const integration = "criteo_audience"; -const name = "Criteo_Audience"; -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); - -// Mocking the config module to change the value of MAX_IDENTIFIERS -jest.mock(`../../src/${version}/destinations/${integration}/config`, () => { - const originalConfig= jest.requireActual(`../../src/${version}/destinations/${integration}/config`); - return { - ...originalConfig, - MAX_IDENTIFIERS: 5, - } -}); -jest.mock('ioredis', () => require('../../../test/__mocks__/redis')); -// Processor Test Data -const testDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}.json`) -); -const testData = JSON.parse(testDataFile); - -// Router Test Data -const inputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_input.json`) -); -const outputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_output.json`) -); -const inputRouterData = JSON.parse(inputRouterDataFile); -const expectedRouterData = JSON.parse(outputRouterDataFile); - -describe(`${name} Tests`, () => { - describe("Processor", () => { - testData.forEach((dataPoint, index) => { - it(`${index}. ${integration} - ${dataPoint.description}`, async () => { - try { - const output = await transformer.process(dataPoint.input); - expect(output).toEqual(dataPoint.output); - } catch (error) { - expect(error.message).toEqual(dataPoint.output.error); - } - }); - }); - }); - - describe("Router Tests", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); - -describe("Router Tests for rETL sources", () => { - it("should send events to dest", async () => { - const input = JSON.parse( - fs.readFileSync( - path.resolve( - __dirname, - `data/${integration}_router_rETL_input.json` - ) - ) - ); - const output = JSON.parse( - fs.readFileSync( - path.resolve( - __dirname, - `data/${integration}_router_rETL_output.json` - ) - ) - ); - const actualOutput = await transformer.processRouterDest(input); - console.log(JSON.stringify(actualOutput)) - expect(actualOutput).toEqual(output); - }); -}); diff --git a/test/__tests__/customerio.test.js b/test/__tests__/customerio.test.js deleted file mode 100644 index 7170c0dc30..0000000000 --- a/test/__tests__/customerio.test.js +++ /dev/null @@ -1,51 +0,0 @@ -const integration = "customerio"; -const name = "CustomerIO"; - -const fs = require("fs"); -const path = require("path"); -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/customerio/transform`); - -const inputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_input.json`) -); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_output.json`) -); -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -// Router Test Data -const inputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_input.json`) -); -const outputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_output.json`) -); -const inputRouterData = JSON.parse(inputRouterDataFile); -const expectedRouterData = JSON.parse(outputRouterDataFile); - -for (let index = 0; index < inputData.length; index++) { - it(`${name} Tests - payload: ${index}`, () => { - let output, expected; - try { - output = transformer.process(inputData[index]); - expected = expectedData[index]; - } catch (error) { - output = error.message; - expected = expectedData[index].message; - } - - expect(output).toEqual(expected); - }); -} - -describe(`${name} Tests`, () => { - describe("Router Tests", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); diff --git a/test/__tests__/data/algolia_input.json b/test/__tests__/data/algolia_input.json deleted file mode 100644 index ee55f465bb..0000000000 --- a/test/__tests__/data/algolia_input.json +++ /dev/null @@ -1,804 +0,0 @@ -[ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/ometria", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/ometria", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "product clicked", - "userId": "testuserId1", - "properties": { - "index": "products", - "filters": ["field1:hello", "val1:val2"] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I", - "eventTypeSettings": [ - { - "from": "product clicked", - "to": "cLick " - } - ] - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/ometria", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/ometria", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "product list viewed", - "userId": "testuserId1", - "properties": { - "index": "products", - "products": [ - { - "objectId": "ecommerce-sample-data-919", - "position": 7 - }, - { - "objectId": "9780439784542", - "position": 8 - } - ], - "queryId": "43b15df305339e827f0ac0bdc5ebcaa7" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I", - "eventTypeSettings": [ - { - "from": "product list viewed", - "to": "click" - } - ] - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/ometria", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/ometria", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "product clicked", - "userId": "testuserId1", - "properties": { - "eventType": "click", - "index": "products", - "queryId": "43b15df305339e827f0ac0bdc5ebcaa8" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I", - "eventTypeSettings": [] - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/ometria", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/ometria", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "testuserId1", - "event": "product clicked", - "properties": { - "index": "products", - "queryId": "43b15df305339e827f0ac0bdc5ebcaa7" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I", - "eventTypeSettings": [] - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/ometria", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/ometria", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "product list viewed", - "userId": "testuserId1", - "properties": { - "index": "products", - "products": [ - { - "objectId": "ecommerce-sample-data-919", - "position": 7 - }, - { - "objectId": "9780439784542", - "position": 8 - } - ], - "queryId": "" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I", - "eventTypeSettings": [ - { - "from": "product list viewed", - "to": "click" - } - ] - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/ometria", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/ometria", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "product list viewed", - "userId": "testuserId1", - "properties": { - "index": "products", - "products": [ - { - "objectId": "ecommerce-sample-data-919", - "position": 7 - }, - { - "objectId": "9780439784542", - "position": 8 - } - ], - "queryId": "43b15df305339e827f0ac0bdc5ebcaa7" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I", - "eventTypeSettings": [ - { - "from": "product list viewed", - "to": "view" - } - ] - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/ometria", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/ometria", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "product list viewed", - "userId": "testuserId1", - "properties": { - "index": "products", - "products": [ - { - "objectId": "ecommerce-sample-data-919", - "position": "7" - }, - { - "objectId": "9780439784542", - "position": "a" - } - ], - "queryId": "43b15df305339e827f0ac0bdc5ebcaa7" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I", - "eventTypeSettings": [ - { - "from": "product list viewed", - "to": "click" - } - ] - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/ometria", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/ometria", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "product list viewed", - "userId": "testuserId1", - "properties": { - "index": "products", - "products": [ - { - "objectId": "ecommerce-sample-data-919", - "position": "7" - }, - { - "objectId": "9780439784542", - "position": "a" - } - ], - "queryId": "43b15df305339e827f0ac0bdc5ebcaa7" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I", - "eventTypeSettings": [ - { - "from": "product list viewed", - "to": "check" - } - ] - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/ometria", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/ometria", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "product list viewed", - "userId": "testuserId1", - "properties": { - "index": "products", - "products": [ - { - "objectId": "ecommerce-sample-data-919", - "position": "7" - }, - { - "objectId": "9780439784542", - "position": "a" - } - ], - "queryId": "43b15df305339e827f0ac0bdc5ebcaa7" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/ometria", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/ometria", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "product clicked", - "userId": "testuserId1", - "properties": { - "filters": ["field1:hello", "val1:val2"] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I", - "eventTypeSettings": [ - { - "from": "product clicked", - "to": "cLick " - } - ] - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/ometria", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/ometria", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": ["abc", "def"], - "userId": "testuserId1", - "properties": { - "filters": ["field1:hello", "val1:val2"] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I", - "eventTypeSettings": [ - { - "from": "product clicked", - "to": "cLick " - } - ] - } - } - } -] diff --git a/test/__tests__/data/algolia_output.json b/test/__tests__/data/algolia_output.json deleted file mode 100644 index 04cdb6ca9d..0000000000 --- a/test/__tests__/data/algolia_output.json +++ /dev/null @@ -1,121 +0,0 @@ -[ - { - "body": { - "FORM": {}, - "JSON_ARRAY": {}, - "JSON": { - "events": [ - { - "eventName": "product clicked", - "eventType": "click", - "filters": ["field1:hello", "val1:val2"], - "index": "products", - "userToken": "testuserId1" - } - ] - }, - "XML": {} - }, - "endpoint": "https://insights.algolia.io/1/events", - "files": {}, - "headers": { - "X-Algolia-API-Key": "dummyApiKey", - "X-Algolia-Application-Id": "O2YARRI15I" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - { - "body": { - "FORM": {}, - "JSON_ARRAY": {}, - "JSON": { - "events": [ - { - "eventName": "product list viewed", - "eventType": "click", - "objectIDs": ["ecommerce-sample-data-919", "9780439784542"], - "positions": [7, 8], - "index": "products", - "userToken": "testuserId1", - "queryID": "43b15df305339e827f0ac0bdc5ebcaa7" - } - ] - }, - "XML": {} - }, - "endpoint": "https://insights.algolia.io/1/events", - "files": {}, - "headers": { - "X-Algolia-API-Key": "dummyApiKey", - "X-Algolia-Application-Id": "O2YARRI15I" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - { - "statusCode": "400", - "message": "Either filters or objectIds is required." - }, - { - "statusCode": "400", - "message": "eventType is mandatory for track call" - }, - { - "statusCode": "400", - "message": "for click eventType either both positions and queryId should be present or none" - }, - { - "body": { - "FORM": {}, - "JSON_ARRAY": {}, - "JSON": { - "events": [ - { - "eventName": "product list viewed", - "eventType": "view", - "index": "products", - "objectIDs": ["ecommerce-sample-data-919", "9780439784542"], - "userToken": "testuserId1", - "queryID": "43b15df305339e827f0ac0bdc5ebcaa7" - } - ] - }, - "XML": {} - }, - "endpoint": "https://insights.algolia.io/1/events", - "files": {}, - "headers": { - "X-Algolia-API-Key": "dummyApiKey", - "X-Algolia-Application-Id": "O2YARRI15I" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - { - "statusCode": "400", - "message": "for click eventType either both positions and queryId should be present or none" - }, - { - "statusCode": "400", - "message": "eventType can be either click, view or conversion" - }, - { - "statusCode": "400", - "message": "eventType is mandatory for track call" - }, - { - "statusCode": "400", - "message": "Missing required value from \"properties.index\"" - }, - { - "statusCode": "400", - "message": "event name should be a string" - } -] diff --git a/test/__tests__/data/algolia_router_input.json b/test/__tests__/data/algolia_router_input.json deleted file mode 100644 index c56e8d2a64..0000000000 --- a/test/__tests__/data/algolia_router_input.json +++ /dev/null @@ -1,1902 +0,0 @@ -[ - [ - { - "message": { - "type": "track", - "event": "product list viewed", - "sentAt": "2021-10-25T09:40:08.880Z", - "userId": "test-user-id1", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.2.1", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:5500/index.html", - "path": "/index.html", - "title": "Test", - "search": "", - "tab_url": "http://127.0.0.1:5500/index.html", - "referrer": "http://127.0.0.1:5500/index.html", - "initial_referrer": "http://127.0.0.1:5500/index.html", - "referring_domain": "127.0.0.1:5500", - "initial_referring_domain": "127.0.0.1:5500" - }, - "locale": "en-GB", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 1440, - "innerHeight": 335 - }, - "traits": { - "city": "Brussels", - "email": "testemail@email.com", - "phone": "1234567890", - "country": "Belgium", - "firstName": "Tintin", - "custom_date": 1574769933368, - "custom_date1": "2019-10-14T11:15:53.296Z", - "custom_flavor": "chocolate" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.2.1" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36" - }, - "rudderId": "e3e907f1-f79a-444b-b91d-da47488f8273", - "messageId": "8cdd3d2e-5e07-42ec-abdc-9b6bd4333840", - "timestamp": "2021-10-25T15:10:08.888+05:30", - "properties": { - "index": "products", - "queryId": "43b15df305339e827f0ac0bdc5ebcaa7", - "products": [ - { - "objectId": "ecommerce-sample-data-919", - "position": 7 - }, - { - "objectId": "9780439784542", - "position": 8 - } - ] - }, - "receivedAt": "2021-10-25T15:10:08.889+05:30", - "request_ip": "[::1]", - "anonymousId": "7138f7d9-5dd2-4337-805d-ca17be59dc8e", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-10-25T09:40:08.879Z" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "ID": "1zzHtStW2ZPlullmz6L7DGnmk9V", - "Name": "algolia-dev", - "DestinationDefinition": { - "ID": "1zgVZhcj1Tij4qlKg7B1Jp16IrH", - "Name": "ALGOLIA", - "DisplayName": "Algolia", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "applicationId", "eventTypeSettings"] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["apiKey", "applicationId"], - "supportedMessageTypes": ["track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "apiKey", - "applicationId": "appId", - "eventTypeSettings": [ - { - "from": "product clicked", - "to": "click" - }, - { - "from": "product list viewed", - "to": "view" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "type": "track", - "event": "product clicked", - "sentAt": "2021-10-25T09:40:08.886Z", - "userId": "test-user-id1", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.2.1", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:5500/index.html", - "path": "/index.html", - "title": "Test", - "search": "", - "tab_url": "http://127.0.0.1:5500/index.html", - "referrer": "http://127.0.0.1:5500/index.html", - "initial_referrer": "http://127.0.0.1:5500/index.html", - "referring_domain": "127.0.0.1:5500", - "initial_referring_domain": "127.0.0.1:5500" - }, - "locale": "en-GB", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 1440, - "innerHeight": 335 - }, - "traits": { - "city": "Brussels", - "email": "testemail@email.com", - "phone": "1234567890", - "country": "Belgium", - "firstName": "Tintin", - "custom_date": 1574769933368, - "custom_date1": "2019-10-14T11:15:53.296Z", - "custom_flavor": "chocolate" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.2.1" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36" - }, - "rudderId": "e3e907f1-f79a-444b-b91d-da47488f8273", - "messageId": "7b58e140-b66b-4e88-a5ec-bd6811fc3836", - "timestamp": "2021-10-25T15:10:08.943+05:30", - "properties": { - "index": "products", - "filters": ["field1:hello", "val1:val2"] - }, - "receivedAt": "2021-10-25T15:10:08.943+05:30", - "request_ip": "[::1]", - "anonymousId": "7138f7d9-5dd2-4337-805d-ca17be59dc8e", - "integrations": { - "All": true - }, - "originalTimestamp": "2021-10-25T09:40:08.886Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "ID": "1zzHtStW2ZPlullmz6L7DGnmk9V", - "Name": "algolia-dev", - "DestinationDefinition": { - "ID": "1zgVZhcj1Tij4qlKg7B1Jp16IrH", - "Name": "ALGOLIA", - "DisplayName": "Algolia", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "applicationId", "eventTypeSettings"] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["apiKey", "applicationId"], - "supportedMessageTypes": ["track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "apiKey-2", - "applicationId": "appId-2", - "eventTypeSettings": [ - { - "from": "product clicked", - "to": "click" - }, - { - "from": "product list viewed", - "to": "view" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "testone@gmail.com", - "firstName": "test", - "lastName": "one" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/destinations/ometria", - "referrer": "", - "search": "", - "title": "", - "url": "https://docs.rudderstack.com/destinations/ometria", - "category": "destination", - "initial_referrer": "https://docs.rudderstack.com", - "initial_referring_domain": "docs.rudderstack.com" - } - }, - "type": "track", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "event": "product clicked", - "userId": "testuserId1", - "properties": { - "filters": ["field1:hello", "val1:val2"] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 3 - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I", - "eventTypeSettings": [ - { - "from": "product clicked", - "to": "cLick " - } - ] - } - } - } - ], - [], - {}, - [ - { - "message": { - "type": "track", - "event": "Product List Viewed", - "sentAt": "2023-06-19T22:22:34.928Z", - "userId": "anonymous", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "version": "2.35.0", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "https://m2-staging.ecmdi.com/supplies/air-distribution/grilles", - "path": "/supplies/air-distribution/grilles/", - "title": "Grilles - Air Distribution - Supplies | East Coast Metal Distributors", - "search": "", - "tab_url": "https://m2-staging.ecmdi.com/supplies/air-distribution/grilles", - "referrer": "https://m2-staging.ecmdi.com/", - "initial_referrer": "https://m2-staging.ecmdi.com/", - "referring_domain": "m2-staging.ecmdi.com", - "initial_referring_domain": "m2-staging.ecmdi.com" - }, - "locale": "en", - "screen": { - "width": 2560, - "height": 1440, - "density": 1, - "innerWidth": 2514, - "innerHeight": 567 - }, - "traits": { - "loggedIn": false, - "customerId": "anonymous" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "2.35.0" - }, - "campaign": {}, - "sessionId": 1687204412379, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0", - "trackingPlanId": "tp_2P3vmVzstHPms8hwcqHYwgBjIC7", - "violationErrors": [ - { - "meta": { - "schemaPath": "#/properties/properties/properties/list_id/type", - "instacePath": "/properties/list_id" - }, - "type": "Datatype-Mismatch", - "message": "must be string" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/0" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/0" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/0" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/0" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/0" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/0" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/0" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/1" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/1" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/1" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/1" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/1" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/1" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/1" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/2" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/2" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/2" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/2" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/2" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/2" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/2" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/3" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/3" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/3" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/3" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/3" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/3" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/3" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/4" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/4" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/4" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/4" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/4" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/4" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/4" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/5" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/5" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/5" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/5" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/5" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/5" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/5" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/6" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/6" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/6" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/6" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/6" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/6" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/6" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/7" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/7" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/7" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/7" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/7" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/7" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/7" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/8" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/8" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/8" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/8" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/8" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/8" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/8" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/9" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/9" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/9" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/9" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/9" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/9" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/9" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/10" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/10" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/10" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/10" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/10" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/10" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/10" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/11" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/11" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/11" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/11" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/11" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/11" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/11" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/12" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/12" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/12" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/12" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/12" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/12" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/12" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/13" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/13" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/13" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/13" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/13" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/13" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/13" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/14" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/14" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/14" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/14" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/14" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/14" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/14" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/15" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/15" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/15" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/15" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/15" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/15" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/15" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/16" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/16" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/16" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/16" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/16" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/16" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/16" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/17" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/17" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/17" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/17" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/17" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/17" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/17" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/18" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'bu_product_num'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/18" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'erp_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/18" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/18" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'list_name'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/18" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'location_id'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/18" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'mpn'" - }, - { - "meta": { - "schemaPath": "#/properties/properties/properties/products/items/additionalProperties", - "instacePath": "/properties/products/18" - }, - "type": "Additional-Properties", - "message": "must NOT have additional properties 'pim_id'" - } - ], - "trackingPlanVersion": 2 - }, - "rudderId": "0d1f77df-5882-402a-a69f-d2dfe3175ebc", - "timestamp": "2023-06-19T19:54:39.188Z", - "properties": { - "index": "ecm_stg_product", - "list_id": 1100000063100, - "queryId": "eafb6ef1081263626abce46671147dc0", - "products": [ - { - "mpn": "190RF14X20", - "sku": "1367585787601", - "name": "14\" x 20\" Stamped Face Return Air Filter Grille with Removable Face - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "168782", - "pim_id": "1367585787601", - "list_id": 1100000063100, - "category": "Grilles", - "position": 1, - "list_name": "Grilles", - "product_id": "49765", - "location_id": 1, - "bu_product_num": "49765" - }, - { - "mpn": "190RF20X20", - "sku": "1367585788656", - "name": "20\" x 20\" Stamped Face Return Air Filter Grille with Removable Face - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "168790", - "pim_id": "1367585788656", - "list_id": 1100000063100, - "category": "Grilles", - "position": 2, - "list_name": "Grilles", - "product_id": "49773", - "location_id": 1, - "bu_product_num": "49773" - }, - { - "mpn": "210VM10X04", - "sku": "1367585790735", - "name": "10\" x 4\" Bar Type Supply Sidewall/Ceiling Register - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "300529", - "pim_id": "1367585790735", - "list_id": 1100000063100, - "category": "Grilles", - "position": 3, - "list_name": "Grilles", - "product_id": "300529A", - "location_id": 1, - "bu_product_num": "300529A" - }, - { - "mpn": "17014X06", - "sku": "1367585782036", - "name": "14\" x 6\" Stamped Face Return Air Grille - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "168752", - "pim_id": "1367585782036", - "list_id": 1100000063100, - "category": "Grilles", - "position": 4, - "list_name": "Grilles", - "product_id": "49741", - "location_id": 1, - "bu_product_num": "49741" - }, - { - "mpn": "17014X04", - "sku": "1367585782285", - "name": "14\" x 4\" Stamped Face Return Air Grille - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "168751", - "pim_id": "1367585782285", - "list_id": 1100000063100, - "category": "Grilles", - "position": 5, - "list_name": "Grilles", - "product_id": "49740", - "location_id": 1, - "bu_product_num": "49740" - }, - { - "mpn": "190RF14X14", - "sku": "1367585790111", - "name": "14\" x 14\" Stamped Face Return Air Filter Grille with Removable Face - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "168781", - "pim_id": "1367585790111", - "list_id": 1100000063100, - "category": "Grilles", - "position": 6, - "list_name": "Grilles", - "product_id": "49764", - "location_id": 1, - "bu_product_num": "49764" - }, - { - "mpn": "17014X10", - "sku": "1367585783304", - "name": "14\" x 10\" Stamped Face Return Air Grille - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "168755", - "pim_id": "1367585783304", - "list_id": 1100000063100, - "category": "Grilles", - "position": 7, - "list_name": "Grilles", - "product_id": "49743", - "location_id": 1, - "bu_product_num": "49743" - }, - { - "mpn": "210VM12X04", - "sku": "1367585791531", - "name": "12\" x 4\" Bar Type Supply Sidewall/Ceiling Register - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "240862", - "pim_id": "1367585791531", - "list_id": 1100000063100, - "category": "Grilles", - "position": 8, - "list_name": "Grilles", - "product_id": "49934", - "location_id": 1, - "bu_product_num": "49934" - }, - { - "mpn": "190RF20X25", - "sku": "1367585788307", - "name": "20\" x 25\" Stamped Face Return Air Filter Grille with Removable Face - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "168791", - "pim_id": "1367585788307", - "list_id": 1100000063100, - "category": "Grilles", - "position": 9, - "list_name": "Grilles", - "product_id": "49774", - "location_id": 1, - "bu_product_num": "49774" - }, - { - "mpn": "190RF20X14", - "sku": "1367585789457", - "name": "20\" x 14\" Stamped Face Return Air Filter Grille with Removable Face - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "168788", - "pim_id": "1367585789457", - "list_id": 1100000063100, - "category": "Grilles", - "position": 10, - "list_name": "Grilles", - "product_id": "49771", - "location_id": 1, - "bu_product_num": "49771" - }, - { - "mpn": "401M10X04", - "sku": "1367585800344", - "name": "10\" x 4\" Stamped Curved Blade Supply Sidewall/Ceiling Register", - "brand": "TRUaire", - "price": 0, - "erp_id": "300734", - "pim_id": "1367585800344", - "list_id": 1100000063100, - "category": "Grilles", - "position": 11, - "list_name": "Grilles", - "product_id": "300734A", - "location_id": 1, - "bu_product_num": "300734A" - }, - { - "mpn": "190RF14X25", - "sku": "1367585787467", - "name": "14\" x 25\" Stamped Face Return Air Filter Grille with Removable Face - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "168783", - "pim_id": "1367585787467", - "list_id": 1100000063100, - "category": "Grilles", - "position": 12, - "list_name": "Grilles", - "product_id": "49766", - "location_id": 1, - "bu_product_num": "49766" - }, - { - "mpn": "17020X10", - "sku": "1367585783058", - "name": "20\" x 10\" Stamped Face Return Air Grille - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "219506", - "pim_id": "1367585783058", - "list_id": 1100000063100, - "category": "Grilles", - "position": 13, - "list_name": "Grilles", - "product_id": "49881", - "location_id": 1, - "bu_product_num": "49881" - }, - { - "mpn": "17020X08", - "sku": "1367585783494", - "name": "20\" x 8\" Stamped Face Return Air Grille - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "210374", - "pim_id": "1367585783494", - "list_id": 1100000063100, - "category": "Grilles", - "position": 14, - "list_name": "Grilles", - "product_id": "210374A", - "location_id": 1, - "bu_product_num": "210374A" - }, - { - "mpn": "190RF12X12", - "sku": "1367585787042", - "name": "12\" x 12\" Stamped Face Return Air Filter Grille with Removable Face - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "168777", - "pim_id": "1367585787042", - "list_id": 1100000063100, - "category": "Grilles", - "position": 15, - "list_name": "Grilles", - "product_id": "49761", - "location_id": 1, - "bu_product_num": "49761" - }, - { - "mpn": "210VM14X04", - "sku": "1367585793228", - "name": "14\" x 4\" Bar Type Supply Sidewall/Ceiling Register - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "232771", - "pim_id": "1367585793228", - "list_id": 1100000063100, - "category": "Grilles", - "position": 16, - "list_name": "Grilles", - "product_id": "49907", - "location_id": 1, - "bu_product_num": "49907" - }, - { - "mpn": "17014X144", - "sku": "1367585783124", - "name": "14\" x 14\" Stamped Face Return Air Grille - White - 4 Holes", - "brand": "TRUaire", - "price": 0, - "erp_id": "168757", - "pim_id": "1367585783124", - "list_id": 1100000063100, - "category": "Grilles", - "position": 17, - "list_name": "Grilles", - "product_id": "49744", - "location_id": 1, - "bu_product_num": "49744" - }, - { - "mpn": "190RF20X30", - "sku": "1367585788366", - "name": "20\" x 30\" Stamped Face Return Air Filter Grille with Removable Face - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "168792", - "pim_id": "1367585788366", - "list_id": 1100000063100, - "category": "Grilles", - "position": 18, - "list_name": "Grilles", - "product_id": "49775", - "location_id": 1, - "bu_product_num": "49775" - }, - { - "mpn": "190RF16X25", - "sku": "1367585788996", - "name": "16\" x 25\" Stamped Face Return Air Filter Grille with Removable Face - White", - "brand": "TRUaire", - "price": 0, - "erp_id": "168786", - "pim_id": "1367585788996", - "list_id": 1100000063100, - "category": "Grilles", - "position": 19, - "list_name": "Grilles", - "product_id": "49769", - "location_id": 1, - "bu_product_num": "49769" - } - ], - "eventName": "productListView", - "eventType": "view", - "list_name": "Grilles", - "objectIds": [ - "1367585787601", - "1367585788656", - "1367585790735", - "1367585782036", - "1367585782285", - "1367585790111", - "1367585783304", - "1367585791531", - "1367585788307", - "1367585789457", - "1367585800344", - "1367585787467", - "1367585783058", - "1367585783494", - "1367585787042", - "1367585793228", - "1367585783124", - "1367585788366", - "1367585788996" - ], - "positions": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], - "userToken": "anonymous" - }, - "receivedAt": "2023-06-19T22:22:32.431Z", - "request_ip": "104.205.211.60", - "anonymousId": "7b701174-5998-480e-a4df-b322d0ec9d1c", - "integrations": { - "All": true - }, - "originalTimestamp": "2023-06-19T19:54:41.686Z" - }, - "destination": { - "secretConfig": {}, - "Config": { - "apiKey": "apiKey", - "applicationId": "appId", - "eventTypeSettings": [ - { - "from": "productClicked", - "to": "click" - }, - { - "from": "product list filtered", - "to": "click" - }, - { - "from": "Product List Viewed", - "to": "view" - }, - { - "from": "Order Completed", - "to": "conversion" - }, - { - "from": "Product Added", - "to": "click" - } - ], - "oneTrustCookieCategories": [], - "eventDelivery": false, - "eventDeliveryTS": 1687213909459 - }, - "liveEventsConfig": { - "eventDelivery": false, - "eventDeliveryTS": 1687213909459 - }, - "id": "destId", - "workspaceId": "wspId", - "DestinationDefinition": { - "Config": { - "destConfig": { - "defaultConfig": [ - "apiKey", - "applicationId", - "eventTypeSettings", - "oneTrustCookieCategories" - ] - }, - "secretKeys": ["apiKey", "applicationId"], - "excludeKeys": [], - "includeKeys": ["oneTrustCookieCategories"], - "transformAt": "router", - "cdkV2Enabled": true, - "transformAtV1": "router", - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "supportedMessageTypes": ["track"], - "saveDestinationResponse": true - }, - "configSchema": {}, - "responseRules": {}, - "options": null, - "id": "1xrHTzX8VrnvL6FTGOrBBgT687S", - "name": "ALGOLIA", - "displayName": "Algolia", - "category": null, - "createdAt": "2021-09-08T13:04:58.041Z", - "updatedAt": "2023-06-13T13:18:08.335Z" - }, - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true, - "name": "my_algolia", - "enabled": true, - "deleted": false, - "createdAt": "2023-05-26T14:18:01.205Z", - "updatedAt": "2023-06-19T22:31:49.460Z", - "revisionId": "revisionId1", - "secretVersion": 7 - }, - "metadata": { - "sourceId": "srcId", - "workspaceId": "wspId", - "destinationId": "destId", - "jobId": 12 - } - } - ] -] diff --git a/test/__tests__/data/algolia_router_output.json b/test/__tests__/data/algolia_router_output.json deleted file mode 100644 index 95f0bcb8f9..0000000000 --- a/test/__tests__/data/algolia_router_output.json +++ /dev/null @@ -1,288 +0,0 @@ -[ - [ - { - "metadata": [ - { - "jobId": 3 - } - ], - "batched": false, - "statusCode": 400, - "error": "Missing required value from \"properties.index\"", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "applicationId": "O2YARRI15I", - "eventTypeSettings": [ - { - "from": "product clicked", - "to": "cLick " - } - ] - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://insights.algolia.io/1/events", - "headers": { - "X-Algolia-Application-Id": "appId", - "X-Algolia-API-Key": "apiKey" - }, - "params": {}, - "body": { - "JSON": { - "events": [ - { - "index": "products", - "userToken": "test-user-id1", - "queryID": "43b15df305339e827f0ac0bdc5ebcaa7", - "eventName": "product list viewed", - "eventType": "view", - "objectIDs": ["ecommerce-sample-data-919", "9780439784542"] - }, - { - "index": "products", - "userToken": "test-user-id1", - "filters": ["field1:hello", "val1:val2"], - "eventName": "product clicked", - "eventType": "click" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - }, - { - "jobId": 2 - } - ], - "batched": true, - "statusCode": 200, - "destination": { - "ID": "1zzHtStW2ZPlullmz6L7DGnmk9V", - "Name": "algolia-dev", - "DestinationDefinition": { - "ID": "1zgVZhcj1Tij4qlKg7B1Jp16IrH", - "Name": "ALGOLIA", - "DisplayName": "Algolia", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "applicationId", "eventTypeSettings"] - }, - "excludeKeys": [], - "includeKeys": [], - "saveDestinationResponse": true, - "secretKeys": ["apiKey", "applicationId"], - "supportedMessageTypes": ["track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "apiKey", - "applicationId": "appId", - "eventTypeSettings": [ - { - "from": "product clicked", - "to": "click" - }, - { - "from": "product list viewed", - "to": "view" - } - ] - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } - ], - { - "message": "Invalid event array", - "statusCode": 400 - }, - { - "message": "Invalid event array", - "statusCode": 400 - }, - [ - { - "batched": true, - "batchedRequest": { - "body": { - "FORM": {}, - "JSON": { - "events": [ - { - "eventName": "product list viewed", - "eventType": "view", - "index": "ecm_stg_product", - "objectIDs": [ - "1367585787601", - "1367585788656", - "1367585790735", - "1367585782036", - "1367585782285", - "1367585790111", - "1367585783304", - "1367585791531", - "1367585788307", - "1367585789457", - "1367585800344", - "1367585787467", - "1367585783058", - "1367585783494", - "1367585787042", - "1367585793228", - "1367585783124", - "1367585788366", - "1367585788996" - ], - "queryID": "eafb6ef1081263626abce46671147dc0", - "userToken": "anonymous" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://insights.algolia.io/1/events", - "files": {}, - "headers": { - "X-Algolia-API-Key": "apiKey", - "X-Algolia-Application-Id": "appId" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - }, - "destination": { - "Config": { - "apiKey": "apiKey", - "applicationId": "appId", - "eventDelivery": false, - "eventDeliveryTS": 1687213909459, - "eventTypeSettings": [ - { - "from": "productClicked", - "to": "click" - }, - { - "from": "product list filtered", - "to": "click" - }, - { - "from": "Product List Viewed", - "to": "view" - }, - { - "from": "Order Completed", - "to": "conversion" - }, - { - "from": "Product Added", - "to": "click" - } - ], - "oneTrustCookieCategories": [] - }, - "DestinationDefinition": { - "Config": { - "cdkV2Enabled": true, - "destConfig": { - "defaultConfig": [ - "apiKey", - "applicationId", - "eventTypeSettings", - "oneTrustCookieCategories" - ] - }, - "excludeKeys": [], - "includeKeys": ["oneTrustCookieCategories"], - "saveDestinationResponse": true, - "secretKeys": ["apiKey", "applicationId"], - "supportedMessageTypes": ["track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "category": null, - "configSchema": {}, - "createdAt": "2021-09-08T13:04:58.041Z", - "displayName": "Algolia", - "id": "1xrHTzX8VrnvL6FTGOrBBgT687S", - "name": "ALGOLIA", - "options": null, - "responseRules": {}, - "updatedAt": "2023-06-13T13:18:08.335Z" - }, - "createdAt": "2023-05-26T14:18:01.205Z", - "deleted": false, - "enabled": true, - "id": "destId", - "isConnectionEnabled": true, - "isProcessorEnabled": true, - "liveEventsConfig": { - "eventDelivery": false, - "eventDeliveryTS": 1687213909459 - }, - "name": "my_algolia", - "revisionId": "revisionId1", - "secretConfig": {}, - "secretVersion": 7, - "transformations": [], - "updatedAt": "2023-06-19T22:31:49.460Z", - "workspaceId": "wspId" - }, - "metadata": [ - { - "sourceId": "srcId", - "workspaceId": "wspId", - "destinationId": "destId", - "jobId": 12 - } - ], - "statusCode": 200 - } - ] -] diff --git a/test/__tests__/data/appcues_input.json b/test/__tests__/data/appcues_input.json deleted file mode 100644 index 0ea31075e4..0000000000 --- a/test/__tests__/data/appcues_input.json +++ /dev/null @@ -1,750 +0,0 @@ -[ - { - "message": { - "anonymousId": "33787665-4168-4acc-8df7-17ba79325332", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "campaign": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/rudder-sdk-js/tests/html/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:4321/rudder-sdk-js/tests/html/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "6a5f38c0-4e75-4268-a066-2b73fbcad01f", - "originalTimestamp": "2021-01-04T08:25:04.780Z", - "receivedAt": "2021-01-04T13:55:04.799+05:30", - "request_ip": "[::1]", - "rudderId": "79881a62-980a-4d76-89ca-7099440f8c13", - "sentAt": "2021-01-04T08:25:04.781Z", - "timestamp": "2021-01-04T13:55:04.798+05:30", - "type": "identify", - "userId": "onlyUserId" - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "message": { - "anonymousId": "33787665-4168-4acc-8df7-17ba79325332", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "campaign": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/rudder-sdk-js/tests/html/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:4321/rudder-sdk-js/tests/html/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "first name": "John", - "last name": "Abraham" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "57494c6a-3c62-4b30-83aa-6e821d37ac75", - "originalTimestamp": "2021-01-04T08:25:04.786Z", - "receivedAt": "2021-01-04T13:55:04.799+05:30", - "request_ip": "[::1]", - "rudderId": "ed2ed08a-3cd9-4b2c-9b04-7e3d3501fab7", - "sentAt": "2021-01-04T08:25:04.787Z", - "timestamp": "2021-01-04T13:55:04.798+05:30", - "type": "identify", - "userId": "userIdWithProperties" - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "message": { - "anonymousId": "59f2911c-f050-497d-9f80-e1696a3c56aa", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "campaign": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/rudder-sdk-js/tests/html/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:4321/rudder-sdk-js/tests/html/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" - }, - "event": "eventWithoutProperties", - "integrations": { - "All": true - }, - "messageId": "045f5107-6036-4557-ae17-6ddf5ee57eb6", - "originalTimestamp": "2021-01-04T08:33:07.004Z", - "properties": {}, - "receivedAt": "2021-01-04T14:03:07.009+05:30", - "request_ip": "[::1]", - "rudderId": "9b6b8204-292c-493b-9c08-2c3ec0ade688", - "sentAt": "2021-01-04T08:33:07.005Z", - "timestamp": "2021-01-04T14:03:07.008+05:30", - "type": "track", - "userId": "sampleId" - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "message": { - "anonymousId": "59f2911c-f050-497d-9f80-e1696a3c56aa", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "campaign": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/rudder-sdk-js/tests/html/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:4321/rudder-sdk-js/tests/html/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" - }, - "event": "eventWithProperties", - "integrations": { - "All": true - }, - "messageId": "4b99c45d-8591-473c-b79d-abd466f6f4d5", - "originalTimestamp": "2021-01-04T08:33:07.006Z", - "properties": { - "category": "blah" - }, - "receivedAt": "2021-01-04T14:03:07.026+05:30", - "request_ip": "[::1]", - "rudderId": "9b6b8204-292c-493b-9c08-2c3ec0ade688", - "sentAt": "2021-01-04T08:33:07.006Z", - "timestamp": "2021-01-04T14:03:07.026+05:30", - "type": "track", - "userId": "sampleId" - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "message": { - "anonymousId": "a4a6304a-df41-4ca9-b2b7-4b0009dfddaa", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "campaign": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/rudder-sdk-js/tests/html/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:4321/rudder-sdk-js/tests/html/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "75a9e08b-955a-4dc7-8a39-3f6fba9d7497", - "originalTimestamp": "2021-01-04T08:43:05.783Z", - "properties": { - "path": "/rudder-sdk-js/tests/html/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:4321/rudder-sdk-js/tests/html/script-test.html" - }, - "receivedAt": "2021-01-04T14:13:05.800+05:30", - "request_ip": "[::1]", - "rudderId": "2d03081c-8053-4cce-9abf-bb024f747900", - "sentAt": "2021-01-04T08:43:05.783Z", - "timestamp": "2021-01-04T14:13:05.799+05:30", - "type": "page", - "userId": "sampleId" - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "message": { - "anonymousId": "a4a6304a-df41-4ca9-b2b7-4b0009dfddaa", - "category": "page category", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "campaign": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing", - "referrer": "", - "search": "", - "title": "", - "url": "https://pagecall.com/testing" - }, - "screen": { - "density": 2 - }, - "traits": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "397fdf96-daee-46c8-ac38-5d717cd8cabd", - "name": "page name", - "originalTimestamp": "2021-01-04T08:43:05.784Z", - "properties": { - "category": "page category", - "name": "page name", - "path": "/testing", - "referrer": "", - "search": "", - "title": "", - "url": "https://pagecall.com/testing" - }, - "receivedAt": "2021-01-04T14:13:05.801+05:30", - "request_ip": "[::1]", - "rudderId": "2d03081c-8053-4cce-9abf-bb024f747900", - "sentAt": "2021-01-04T08:43:05.784Z", - "timestamp": "2021-01-04T14:13:05.801+05:30", - "type": "page", - "userId": "sampleId" - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "message": { - "anonymousId": "a4a6304a-df41-4ca9-b2b7-4b0009dfddaa", - "category": "page category", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "campaign": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing", - "referrer": "", - "search": "" - }, - "screen": { - "density": 2 - }, - "traits": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "397fdf96-daee-46c8-ac38-5d717cd8cabd", - "name": "page name", - "originalTimestamp": "2021-01-04T08:43:05.784Z", - "properties": { - "category": "page category", - "name": "page name", - "path": "/testing", - "referrer": "", - "search": "", - "title": "properties title", - "url": "https://pagecall.com/properties_url" - }, - "receivedAt": "2021-01-04T14:13:05.801+05:30", - "request_ip": "[::1]", - "rudderId": "2d03081c-8053-4cce-9abf-bb024f747900", - "sentAt": "2021-01-04T08:43:05.784Z", - "timestamp": "2021-01-04T14:13:05.801+05:30", - "type": "page", - "userId": "sampleId" - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "message": { - "anonymousId": "a4a6304a-df41-4ca9-b2b7-4b0009dfddaa", - "category": "page category", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "campaign": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/testing", - "referrer": "", - "search": "", - "title": "context title", - "url": "https://pagecall.com/context_url" - }, - "screen": { - "density": 2 - }, - "traits": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "397fdf96-daee-46c8-ac38-5d717cd8cabd", - "name": "page name", - "originalTimestamp": "2021-01-04T08:43:05.784Z", - "properties": { - "category": "page category", - "name": "page name", - "path": "/testing", - "referrer": "", - "search": "" - }, - "receivedAt": "2021-01-04T14:13:05.801+05:30", - "request_ip": "[::1]", - "rudderId": "2d03081c-8053-4cce-9abf-bb024f747900", - "sentAt": "2021-01-04T08:43:05.784Z", - "timestamp": "2021-01-04T14:13:05.801+05:30", - "type": "page", - "userId": "sampleId" - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "AppcuesIntegration", - "namespace": "com.Appcues", - "version": "1.0" - }, - "device": { - "id": "5094f5704b9cf2b3", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.1-beta.1" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "os": { - "name": "Android", - "version": "8.1.0" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5094f5704b9cf2b3" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "MainActivity", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "MainActivity", - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "screen", - "userId": "sampleId", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "AppcuesIntegration", - "namespace": "com.Appcues", - "version": "1.0" - }, - "device": { - "id": "5094f5704b9cf2b3", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.1-beta.1" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "os": { - "name": "Android", - "version": "8.1.0" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5094f5704b9cf2b3" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "MainActivity", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "MainActivity", - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "screen", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "message": { - "anonymousId": "5094f5704b9cf2b3", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "AppcuesIntegration", - "namespace": "com.Appcues", - "version": "1.0" - }, - "device": { - "id": "5094f5704b9cf2b3", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "1.0.1-beta.1" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "os": { - "name": "Android", - "version": "8.1.0" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5094f5704b9cf2b3" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 8.1.0; Android SDK built for x86 Build/OSM1.180201.007)" - }, - "event": "MainActivity", - "integrations": { - "All": true - }, - "messageId": "id1", - "properties": { - "name": "MainActivity", - "automatic": true - }, - "originalTimestamp": "2020-03-12T09:05:03.421Z", - "type": "", - "userId": "sampleId", - "sentAt": "2020-03-12T09:05:13.042Z" - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.5" - }, - "traits": { - "name": "Shehan Study", - "category": "SampleIdentify", - "email": "test@rudderstack.com", - "plan": "Open source", - "logins": 5, - "createdAt": 1599264000 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.5" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 0.8999999761581421 - }, - "campaign": { - "source": "google", - "medium": "medium", - "term": "keyword", - "content": "some content", - "name": "some campaign", - "test": "other value" - }, - "page": { - "path": "/html/sajal.html", - "referrer": "", - "search": "?utm_source=google&utm_medium=medium&utm_term=keyword&utm_content=some%20content&utm_campaign=some%20campaign&utm_test=other%20value", - "title": "", - "url": "http://localhost:9116/html/sajal.html?utm_source=google&utm_medium=medium&utm_term=keyword&utm_content=some%20content&utm_campaign=some%20campaign&utm_test=other%20value" - } - }, - "type": "group", - "messageId": "e5034df0-a404-47b4-a463-76df99934fea", - "originalTimestamp": "2020-10-20T07:54:58.983Z", - "anonymousId": "my-anonymous-id-new", - "userId": "sampleusrRudder3", - "integrations": { - "All": true - }, - "groupId": "Sample_groupId23", - "traits": { - "KEY_3": { - "CHILD_KEY_92": "value_95", - "CHILD_KEY_102": "value_103" - }, - "KEY_2": { - "CHILD_KEY_92": "value_95", - "CHILD_KEY_102": "value_103" - }, - "name_trait": "Company", - "value_trait": "Comapny-ABC" - }, - "sentAt": "2020-10-20T07:54:58.983Z" - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - } -] diff --git a/test/__tests__/data/appcues_output.json b/test/__tests__/data/appcues_output.json deleted file mode 100644 index c8356726a2..0000000000 --- a/test/__tests__/data/appcues_output.json +++ /dev/null @@ -1,320 +0,0 @@ -[ - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "request_id": "6a5f38c0-4e75-4268-a066-2b73fbcad01f", - "profile_update": {} - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.appcues.com/v1/accounts/86086/users/onlyUserId/activity" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "request_id": "57494c6a-3c62-4b30-83aa-6e821d37ac75", - "profile_update": { - "last name": "Abraham", - "first name": "John" - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.appcues.com/v1/accounts/86086/users/userIdWithProperties/activity" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "eventWithoutProperties", - "timestamp": 1609749187, - "attributes": {} - } - ], - "request_id": "045f5107-6036-4557-ae17-6ddf5ee57eb6" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.appcues.com/v1/accounts/86086/users/sampleId/activity" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "eventWithProperties", - "timestamp": 1609749187, - "attributes": { - "category": "blah" - } - } - ], - "request_id": "4b99c45d-8591-473c-b79d-abd466f6f4d5" - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.appcues.com/v1/accounts/86086/users/sampleId/activity" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "Visited a Page", - "context": { - "url": "http://localhost:4321/rudder-sdk-js/tests/html/script-test.html" - }, - "timestamp": 1609749785, - "attributes": { - "url": "http://localhost:4321/rudder-sdk-js/tests/html/script-test.html", - "path": "/rudder-sdk-js/tests/html/script-test.html", - "_identity": { - "userId": "sampleId" - } - } - } - ], - "request_id": "75a9e08b-955a-4dc7-8a39-3f6fba9d7497", - "profile_update": { - "_appcuesId": "86086", - "_updatedAt": "2021-01-04T14:13:05.799+05:30", - "_userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36", - "_currentPageUrl": "http://localhost:4321/rudder-sdk-js/tests/html/script-test.html", - "_lastBrowserLanguage": "en-GB", - "userId": "sampleId" - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.appcues.com/v1/accounts/86086/users/sampleId/activity" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "events": [ - { - "name": "Visited a Page", - "context": { - "url": "https://pagecall.com/testing" - }, - "timestamp": 1609749785, - "attributes": { - "url": "https://pagecall.com/testing", - "name": "page name", - "path": "/testing", - "category": "page category", - "_identity": { - "userId": "sampleId" - } - } - } - ], - "request_id": "397fdf96-daee-46c8-ac38-5d717cd8cabd", - "profile_update": { - "_appcuesId": "86086", - "_updatedAt": "2021-01-04T14:13:05.801+05:30", - "_userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36", - "_currentPageUrl": "https://pagecall.com/testing", - "_lastBrowserLanguage": "en-GB", - "userId": "sampleId" - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.appcues.com/v1/accounts/86086/users/sampleId/activity" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.appcues.com/v1/accounts/86086/users/sampleId/activity", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "request_id": "397fdf96-daee-46c8-ac38-5d717cd8cabd", - "profile_update": { - "userId": "sampleId", - "_lastBrowserLanguage": "en-GB", - "_updatedAt": "2021-01-04T14:13:05.801+05:30", - "_userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36", - "_currentPageTitle": "properties title", - "_currentPageUrl": "https://pagecall.com/properties_url", - "_appcuesId": "86086" - }, - "events": [ - { - "timestamp": 1609749785, - "attributes": { - "category": "page category", - "name": "page name", - "path": "/testing", - "title": "properties title", - "url": "https://pagecall.com/properties_url", - "_identity": { - "userId": "sampleId" - } - }, - "name": "Visited a Page", - "context": { - "url": "https://pagecall.com/properties_url" - } - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.appcues.com/v1/accounts/86086/users/sampleId/activity", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "request_id": "397fdf96-daee-46c8-ac38-5d717cd8cabd", - "profile_update": { - "userId": "sampleId", - "_lastBrowserLanguage": "en-GB", - "_updatedAt": "2021-01-04T14:13:05.801+05:30", - "_userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36", - "_currentPageTitle": "context title", - "_currentPageUrl": "https://pagecall.com/context_url", - "_appcuesId": "86086" - }, - "events": [ - { - "timestamp": 1609749785, - "attributes": { - "category": "page category", - "name": "page name", - "path": "/testing", - "_identity": { - "userId": "sampleId" - } - }, - "name": "Visited a Page", - "context": { - "url": "https://pagecall.com/context_url" - } - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.appcues.com/v1/accounts/86086/users/sampleId/activity", - "headers": { - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "request_id": "id1", - "events": [ - { - "name": "Viewed a Screen", - "timestamp": 1584003903, - "attributes": { - "name": "MainActivity", - "automatic": true - } - } - ] - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "User id is absent. Aborting event as userId is mandatory for Appcues" - }, - { - "statusCode": 400, - "error": "Message Type is not present. Aborting message." - }, - { - "statusCode": 400, - "error": "Message type is not supported" - } -] diff --git a/test/__tests__/data/appcues_router_input.json b/test/__tests__/data/appcues_router_input.json deleted file mode 100644 index 345266defe..0000000000 --- a/test/__tests__/data/appcues_router_input.json +++ /dev/null @@ -1,119 +0,0 @@ -[ - { - "message": { - "anonymousId": "33787665-4168-4acc-8df7-17ba79325332", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "campaign": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/rudder-sdk-js/tests/html/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:4321/rudder-sdk-js/tests/html/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "6a5f38c0-4e75-4268-a066-2b73fbcad01f", - "originalTimestamp": "2021-01-04T08:25:04.780Z", - "receivedAt": "2021-01-04T13:55:04.799+05:30", - "request_ip": "[::1]", - "rudderId": "79881a62-980a-4d76-89ca-7099440f8c13", - "sentAt": "2021-01-04T08:25:04.781Z", - "timestamp": "2021-01-04T13:55:04.798+05:30", - "type": "identify", - "userId": "onlyUserId" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "message": { - "anonymousId": "33787665-4168-4acc-8df7-17ba79325332", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.9" - }, - "campaign": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.9" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/rudder-sdk-js/tests/html/script-test.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost:4321/rudder-sdk-js/tests/html/script-test.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "first name": "John", - "last name": "Abraham" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "57494c6a-3c62-4b30-83aa-6e821d37ac75", - "originalTimestamp": "2021-01-04T08:25:04.786Z", - "receivedAt": "2021-01-04T13:55:04.799+05:30", - "request_ip": "[::1]", - "rudderId": "ed2ed08a-3cd9-4b2c-9b04-7e3d3501fab7", - "sentAt": "2021-01-04T08:25:04.787Z", - "timestamp": "2021-01-04T13:55:04.798+05:30", - "type": "identify", - "userId": "userIdWithProperties" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - } -] diff --git a/test/__tests__/data/appcues_router_output.json b/test/__tests__/data/appcues_router_output.json deleted file mode 100644 index b6e853d493..0000000000 --- a/test/__tests__/data/appcues_router_output.json +++ /dev/null @@ -1,75 +0,0 @@ -[ - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "request_id": "6a5f38c0-4e75-4268-a066-2b73fbcad01f", - "profile_update": {} - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.appcues.com/v1/accounts/86086/users/onlyUserId/activity" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {}, - "JSON": { - "request_id": "57494c6a-3c62-4b30-83aa-6e821d37ac75", - "profile_update": { - "last name": "Abraham", - "first name": "John" - } - } - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json" - }, - "version": "1", - "endpoint": "https://api.appcues.com/v1/accounts/86086/users/userIdWithProperties/activity" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "accountId": "86086", - "useNativeSDK": false - } - } - } -] diff --git a/test/__tests__/data/attentive_tag_input.json b/test/__tests__/data/attentive_tag_input.json deleted file mode 100644 index 3ed57d1445..0000000000 --- a/test/__tests__/data/attentive_tag_input.json +++ /dev/null @@ -1,1062 +0,0 @@ -[ - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "locale": "en-GB", - "traits": { - "email": "a@gmail.com", - "phone": "+16405273911", - "customIdentifiers": [ - { - "name": "string", - "value": "string" - } - ] - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", - "receivedAt": "2019-10-14T09:03:17.562Z", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "241654" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "224" - }, - { - "type": "klaviyoId", - "id": "132" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product,id": "r494", - "quantity": "34", - "variant": "f" - }, - "event": "Order Shipped", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:17.562Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "phone": "+16465453911" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36" - }, - "integrations": { - "All": true, - "attentive_tag": { - "signUpSourceId": "241654", - "identifyOperation": "unsubscribe" - } - }, - "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "241654" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Order Completed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": 1 - }, - { - "type": "shopifyId", - "id": 1 - }, - { - "type": "klaviyoId", - "id": 1 - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Product List Viewed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Product Viewed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "224" - }, - { - "type": "klaviyoId", - "id": "132" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34" - }, - "event": "Order Shipped", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": 1 - }, - { - "type": "shopifyId", - "id": 1 - }, - { - "type": "klaviyoId", - "id": 1 - } - ] - }, - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Order Completed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "test0@gmail.com", - "phone": "+16465453911" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36" - }, - "integrations": { - "All": true, - "attentive_tag": { - "signUpSourceId": "241654", - "identifyOperation": "subscribe" - } - }, - "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "241654" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Product Viewed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Product Viewed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Product Viewed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "phone": "+16465053911" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - }, - "externalId": [ - { - "type": "clientUserId", - "id": "144" - }, - { - "type": "shopifyId", - "id": "143" - }, - { - "type": "klaviyoId", - "id": "142" - } - ] - }, - "type": "track", - "properties": { - "price": "12", - "curre,ncy": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Order Shipped", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - }, - { - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "test0@gmail.com", - "phone": "+16465453911" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36" - }, - "integrations": { - "All": true, - "attentive_tag": { - "signUpSourceId": "241654" - } - }, - "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "type": "identify" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "241654" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "id": "72e528f869711c3d", - "manufacturer": "Google", - "model": "sdk_gphone_x86", - "name": "generic_x86_arm", - "token": "some_device_token", - "type": "android" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34", - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "variant": "green", - "price": "19", - "quantity": "2", - "currency": "USD" - } - ] - }, - "event": "Product Viewed", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "240654" - } - } - } -] diff --git a/test/__tests__/data/attentive_tag_output.json b/test/__tests__/data/attentive_tag_output.json deleted file mode 100644 index 83f0d4f101..0000000000 --- a/test/__tests__/data/attentive_tag_output.json +++ /dev/null @@ -1,368 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/subscriptions", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "phone": "+16405273911", - "email": "a@gmail.com" - }, - "signUpSourceId": "241654", - "externalIdentifiers": { - "customIdentifiers": [ - { - "name": "string", - "value": "string" - } - ] - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "[Attentive Tag]:The event name contains characters which is not allowed" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/subscriptions/unsubscribe", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "phone": "+16465453911" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/events/ecommerce/purchase", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "email": "test@rudderstack.com", - "externalIdentifiers": { - "clientUserId": "144", - "shopifyId": "143", - "klaviyoId": "142" - } - }, - "occuredAt": "2019-10-14T09:03:17.562Z", - "items": [ - { - "productId": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "productVariantId": "green", - "quantity": "2", - "price": [ - { - "value": 19, - "currency": "USD" - } - ] - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "[Attentive Tag] :: Event name is not present" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/events/ecommerce/product-view", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "phone": "+16465053911", - "email": "test@rudderstack.com", - "externalIdentifiers": { - "clientUserId": "144", - "shopifyId": "143", - "klaviyoId": "142" - } - }, - "occuredAt": "2019-10-14T09:03:17.562Z", - "items": [ - { - "productId": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "productVariantId": "green", - "quantity": "2", - "price": [ - { - "value": 19, - "currency": "USD" - } - ] - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/events/ecommerce/product-view", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "phone": "+16465053911", - "email": "test@rudderstack.com", - "externalIdentifiers": { - "clientUserId": "144", - "shopifyId": "143", - "klaviyoId": "142" - } - }, - "occuredAt": "2019-10-14T09:03:17.562Z", - "items": [ - { - "productId": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "productVariantId": "green", - "quantity": "2", - "price": [ - { - "value": 19, - "currency": "USD" - } - ] - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/events/custom", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "phone": "+16465053911", - "email": "test@rudderstack.com", - "externalIdentifiers": { - "clientUserId": "144", - "shopifyId": "224", - "klaviyoId": "132" - } - }, - "occuredAt": "2019-10-14T09:03:17.562Z", - "properties": { - "price": "12", - "currency": "USD", - "product_id": "r494", - "quantity": "34" - }, - "type": "Order Shipped" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "Message Type is not present. Aborting message." - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/subscriptions", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "phone": "+16465453911", - "email": "test0@gmail.com" - }, - "signUpSourceId": "241654" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/events/ecommerce/product-view", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "externalIdentifiers": { - "clientUserId": "144", - "shopifyId": "143", - "klaviyoId": "142" - } - }, - "occuredAt": "2019-10-14T09:03:17.562Z", - "items": [ - { - "productId": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "productVariantId": "green", - "quantity": "2", - "price": [ - { - "value": 19, - "currency": "USD" - } - ] - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "Missing required value from \"product_id\"" - }, - { - "statusCode": 400, - "error": "Missing required value from \"variant\"" - }, - { - "statusCode": 400, - "error": "[Attentive Tag]:The event name contains characters which is not allowed" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/subscriptions", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "phone": "+16465453911", - "email": "test0@gmail.com" - }, - "signUpSourceId": "241654" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/events/ecommerce/product-view", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": {}, - "occuredAt": "2019-10-14T09:03:17.562Z", - "items": [ - { - "productId": "507f1f77bcf86cd799439011", - "name": "MOBILE", - "productVariantId": "green", - "quantity": "2", - "price": [ - { - "value": 19, - "currency": "USD" - } - ] - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } -] diff --git a/test/__tests__/data/attentive_tag_router_input.json b/test/__tests__/data/attentive_tag_router_input.json deleted file mode 100644 index 6c5567b79b..0000000000 --- a/test/__tests__/data/attentive_tag_router_input.json +++ /dev/null @@ -1,57 +0,0 @@ -[ - { - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "241654" - } - }, - "metadata": { - "jobId": 1 - }, - "message": { - "anonymousId": "4eb021e9-a2af-4926-ae82-fe996d12f3c5", - "channel": "web", - "context": { - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "traits": { - "company": { - "id": "abc123" - }, - "createdAt": "Thu Mar 24 2016 17:46:45 GMT+0000 (UTC)", - "email": "test0@gmail.com", - "phone": "+16465453911" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36", - "externalId": [ - { - "type": "clientUsrId", - "id": 1 - }, - { - "type": "shopifyId", - "id": 1 - }, - { - "type": "klaviyoId", - "id": 1 - } - ] - }, - "integrations": { - "All": true, - "attentive_tag": { - "signUpSourceId": "241654", - "identifyOperation": "unsubscribe" - } - }, - "messageId": "e108eb05-f6cd-4624-ba8c-568f2e2b3f92", - "receivedAt": "2020-10-16T13:56:14.945+05:30", - "type": "identify" - } - } -] diff --git a/test/__tests__/data/attentive_tag_router_output.json b/test/__tests__/data/attentive_tag_router_output.json deleted file mode 100644 index 0c853e82bf..0000000000 --- a/test/__tests__/data/attentive_tag_router_output.json +++ /dev/null @@ -1,40 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.attentivemobile.com/v1/subscriptions/unsubscribe", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user": { - "phone": "+16465453911", - "email": "test0@gmail.com" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "apiKey": "dummyApiKey", - "signUpSourceId": "241654" - } - } - } -] diff --git a/test/__tests__/data/autopilot_cdk_output.json b/test/__tests__/data/autopilot_cdk_output.json deleted file mode 100644 index 302872c18a..0000000000 --- a/test/__tests__/data/autopilot_cdk_output.json +++ /dev/null @@ -1,108 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.autopilothq.com/v1/contact", - "headers": { - "autopilotapikey": "dummyApiKey", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "contact": { - "Email": "testmp@rudderstack.com", - "FirstName": "Test Kafka", - "custom": { - "age": 23 - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.autopilothq.com/v1/trigger/00XX/contact/testmp@rudderstack.com", - "headers": { - "autopilotapikey": "dummyApiKey", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "property": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd" - }, - { - "statusCode": 400, - "error": "message type page is not supported" - }, - { - "statusCode": 400, - "error": "Email is required for track calls" - }, - { - "statusCode": 400, - "error": "message Type is not present. Aborting message." - }, - { - "statusCode": 400, - "error": "message type group is not supported" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.autopilothq.com/v1/contact", - "headers": { - "autopilotapikey": "dummyApiKey", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "contact": { - "Email": "abc@rudderstack.com", - "FirstName": "Anuraj" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd" - }, - { - "statusCode": 400, - "error": "message Type is not present. Aborting message." - }, - { - "statusCode": 400, - "error": "message type group is not supported" - }, - { - "statusCode": 400, - "error": "message type Tals is not supported" - } -] diff --git a/test/__tests__/data/autopilot_input.json b/test/__tests__/data/autopilot_input.json deleted file mode 100644 index d442de2e6d..0000000000 --- a/test/__tests__/data/autopilot_input.json +++ /dev/null @@ -1,796 +0,0 @@ -[ - { - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "cdkEnabled": true, - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index4.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index4.html" - }, - "screen": { - "density": 2 - }, - - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "fad9b3fb-5778-4db3-9fb6-7168b554191f", - "originalTimestamp": "2020-04-17T14:42:44.722Z", - "receivedAt": "2020-04-17T20:12:44.758+05:30", - "request_ip": "[::1]:53513", - "sentAt": "2020-04-17T14:42:44.722Z", - "traits": { - "age": 23, - "email": "testmp@rudderstack.com", - "firstname": "Test Kafka" - }, - "timestamp": "2020-04-17T20:12:44.758+05:30", - "type": "identify", - "userId": "user12345" - } - }, - { - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "cdkEnabled": true, - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index4.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index4.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "testmp@rudderstack.com", - "firstname": "Test Kafka" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "event": "test track with property", - "integrations": { - "All": true - }, - "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "properties": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - }, - "receivedAt": "2020-04-17T20:12:44.758+05:30", - "request_ip": "[::1]:53512", - "sentAt": "2020-04-17T14:42:44.725Z", - "timestamp": "2020-04-17T20:12:44.757+05:30", - "type": "track", - "userId": "user12345" - } - }, - { - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "cdkEnabled": true, - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index4.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index4.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "testmp@rudderstack.com", - "firstname": "Test Kafka" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "event": "test track with property", - "integrations": { - "All": true - }, - "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "properties": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - }, - "receivedAt": "2020-04-17T20:12:44.758+05:30", - "request_ip": "[::1]:53512", - "sentAt": "2020-04-17T14:42:44.725Z", - "timestamp": "2020-04-17T20:12:44.757+05:30", - "type": "page", - "userId": "user12345" - } - }, - { - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "cdkEnabled": true, - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index4.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index4.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "firstname": "Test Kafka" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "event": "test track with property", - "integrations": { - "All": true - }, - "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "properties": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - }, - "receivedAt": "2020-04-17T20:12:44.758+05:30", - "request_ip": "[::1]:53512", - "sentAt": "2020-04-17T14:42:44.725Z", - "timestamp": "2020-04-17T20:12:44.757+05:30", - "type": "track", - "userId": "user12345" - } - }, - { - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "cdkEnabled": true, - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index4.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index4.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "firstname": "Test Kafka" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "event": "test track with property", - "integrations": { - "All": true - }, - "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "properties": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - }, - "receivedAt": "2020-04-17T20:12:44.758+05:30", - "request_ip": "[::1]:53512", - "sentAt": "2020-04-17T14:42:44.725Z", - "timestamp": "2020-04-17T20:12:44.757+05:30", - "userId": "user12345" - } - }, - { - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "cdkEnabled": true, - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index4.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index4.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "testmp@rudderstack.com", - "firstname": "Test Kafka" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "event": "test track with property", - "integrations": { - "All": true - }, - "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "properties": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - }, - "receivedAt": "2020-04-17T20:12:44.758+05:30", - "request_ip": "[::1]:53512", - "sentAt": "2020-04-17T14:42:44.725Z", - "timestamp": "2020-04-17T20:12:44.757+05:30", - "type": "group", - "userId": "user12345" - } - }, - { - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "cdkEnabled": true, - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index4.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index4.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "abc@rudderstack.com", - "firstname": "Anuraj" - }, - - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "integrations": { - "All": true - }, - "originalTimestamp": "2020-04-17T14:42:44.722Z", - "receivedAt": "2020-04-17T20:12:44.758+05:30", - "request_ip": "[::1]:53513", - "sentAt": "2020-04-17T14:42:44.722Z", - "timestamp": "2020-04-17T20:12:44.758+05:30", - "type": "identify", - "userId": "user12345" - } - }, - { - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "cdkEnabled": true, - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index4.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index4.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "testmp@rudderstack.com", - "firstname": "Test Kafka" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "event": "test track with property", - "integrations": { - "All": true - }, - "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "properties": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - }, - "receivedAt": "2020-04-17T20:12:44.758+05:30", - "request_ip": "[::1]:53512", - "sentAt": "2020-04-17T14:42:44.725Z", - "timestamp": "2020-04-17T20:12:44.757+05:30", - "userId": "user12345" - } - }, - { - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "cdkEnabled": true, - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index4.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index4.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "abc@rudderstack.com", - "firstname": "Anuraj" - }, - - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "integrations": { - "All": true - }, - "originalTimestamp": "2020-04-17T14:42:44.722Z", - "receivedAt": "2020-04-17T20:12:44.758+05:30", - "request_ip": "[::1]:53513", - "sentAt": "2020-04-17T14:42:44.722Z", - "timestamp": "2020-04-17T20:12:44.758+05:30", - "type": "group", - "userId": "user12345" - } - }, - { - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "cdkEnabled": true, - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index4.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index4.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "abc@rudderstack.com", - "firstname": "Anuraj" - }, - - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "integrations": { - "All": true - }, - "originalTimestamp": "2020-04-17T14:42:44.722Z", - "receivedAt": "2020-04-17T20:12:44.758+05:30", - "request_ip": "[::1]:53513", - "sentAt": "2020-04-17T14:42:44.722Z", - "timestamp": "2020-04-17T20:12:44.758+05:30", - "type": "Tals", - "userId": "user12345" - } - } -] diff --git a/test/__tests__/data/autopilot_output.json b/test/__tests__/data/autopilot_output.json deleted file mode 100644 index 62d3ae6509..0000000000 --- a/test/__tests__/data/autopilot_output.json +++ /dev/null @@ -1,108 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.autopilothq.com/v1/contact", - "headers": { - "autopilotapikey": "dummyApiKey", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "contact": { - "Email": "testmp@rudderstack.com", - "FirstName": "Test Kafka", - "custom": { - "age": 23 - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.autopilothq.com/v1/trigger/00XX/contact/testmp@rudderstack.com", - "headers": { - "autopilotapikey": "dummyApiKey", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "property": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd" - }, - { - "statusCode": 400, - "error": "message type \"page\" not supported for \"autopilot\"" - }, - { - "statusCode": 400, - "error": "Email is required for track calls" - }, - { - "statusCode": 400, - "error": "\"type\" is a required field and it must be a string" - }, - { - "statusCode": 400, - "error": "message type \"group\" not supported for \"autopilot\"" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.autopilothq.com/v1/contact", - "headers": { - "autopilotapikey": "dummyApiKey", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "contact": { - "Email": "abc@rudderstack.com", - "FirstName": "Anuraj" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd" - }, - { - "statusCode": 400, - "error": "\"type\" is a required field and it must be a string" - }, - { - "statusCode": 400, - "error": "message type \"group\" not supported for \"autopilot\"" - }, - { - "statusCode": 400, - "error": "message type \"Tals\" not supported for \"autopilot\"" - } -] diff --git a/test/__tests__/data/autopilot_router_input.json b/test/__tests__/data/autopilot_router_input.json deleted file mode 100644 index 9a05da11a6..0000000000 --- a/test/__tests__/data/autopilot_router_input.json +++ /dev/null @@ -1,165 +0,0 @@ -[ - { - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "metadata": { - "jobId": 1 - }, - "message": { - "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index4.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index4.html" - }, - "screen": { - "density": 2 - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "fad9b3fb-5778-4db3-9fb6-7168b554191f", - "originalTimestamp": "2020-04-17T14:42:44.722Z", - "receivedAt": "2020-04-17T20:12:44.758+05:30", - "request_ip": "[::1]:53513", - "sentAt": "2020-04-17T14:42:44.722Z", - "traits": { - "age": 23, - "email": "testmp@rudderstack.com", - "firstname": "Test Kafka" - }, - "timestamp": "2020-04-17T20:12:44.758+05:30", - "type": "identify", - "userId": "user12345" - } - }, - { - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "metadata": { - "jobId": 2 - }, - "message": { - "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1-rc.2" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1-rc.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index4.html", - "referrer": "", - "search": "", - "title": "", - "url": "http://localhost/tests/html/index4.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "testmp@rudderstack.com", - "firstname": "Test Kafka" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "event": "test track with property", - "integrations": { - "All": true - }, - "messageId": "37b75e61-9bd2-4fb8-91ed-e3a064905f3a", - "originalTimestamp": "2020-04-17T14:42:44.724Z", - "properties": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - }, - "receivedAt": "2020-04-17T20:12:44.758+05:30", - "request_ip": "[::1]:53512", - "sentAt": "2020-04-17T14:42:44.725Z", - "timestamp": "2020-04-17T20:12:44.757+05:30", - "type": "track", - "userId": "user12345" - } - } -] diff --git a/test/__tests__/data/autopilot_router_output.json b/test/__tests__/data/autopilot_router_output.json deleted file mode 100644 index 2c33131d08..0000000000 --- a/test/__tests__/data/autopilot_router_output.json +++ /dev/null @@ -1,125 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.autopilothq.com/v1/contact", - "headers": { - "autopilotapikey": "dummyApiKey", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "contact": { - "Email": "testmp@rudderstack.com", - "FirstName": "Test Kafka", - "custom": { - "age": 23 - } - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.autopilothq.com/v1/trigger/00XX/contact/testmp@rudderstack.com", - "headers": { - "autopilotapikey": "dummyApiKey", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "property": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "1afjtc6chkhdeKsXYrNFOzR5D9v", - "Name": "Autopilot", - "DestinationDefinition": { - "ID": "1afjX4MlAucK57Q0ctTVlD27Tvo", - "Name": "AUTOPILOT", - "DisplayName": "Autopilot", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": { - "apiKey": "dummyApiKey", - "customMappings": [ - { - "from": "0001", - "to": "Signup" - } - ], - "triggerId": "00XX" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/azure_event_hub_input.json b/test/__tests__/data/azure_event_hub_input.json deleted file mode 100644 index cc2ae736d6..0000000000 --- a/test/__tests__/data/azure_event_hub_input.json +++ /dev/null @@ -1,396 +0,0 @@ -[ - { - "destination": { - "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "Name": "Azure Event Hub", - "DestinationDefinition": { - "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", - "Name": "AZURE_EVENT_HUB", - "DisplayName": "Azure Event Hub", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": null, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "event": "Purchase", - "integrations": { - "All": true - }, - "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", - "originalTimestamp": "2020-05-21T10:23:15.984Z", - "properties": { - "currency": "USD", - "revenue": 100 - }, - "receivedAt": "2020-05-21T15:53:16.013+05:30", - "request_ip": "[::1]:59371", - "sentAt": "2020-05-21T10:23:15.985Z", - "timestamp": "2020-05-21T15:53:16.012+05:30", - "type": "track", - "userId": "user-12345" - }, - "metadata": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "destinationType": "AZURE_EVENT_HUB", - "jobId": 46, - "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", - "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" - } - }, - { - "destination": { - "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "Name": "Azure Event Hub", - "DestinationDefinition": { - "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", - "Name": "AZURE_EVENT_HUB", - "DisplayName": "Azure Event Hub", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": null, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", - "originalTimestamp": "2020-05-21T10:23:15.975Z", - "properties": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:58616", - "sentAt": "2020-05-21T10:23:15.975Z", - "timestamp": "2020-05-21T15:53:16.014+05:30", - "type": "page", - "userId": "user-12345" - }, - "metadata": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "destinationType": "AZURE_EVENT_HUB", - "jobId": 47, - "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", - "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" - } - }, - { - "destination": { - "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "Name": "Azure Event Hub", - "DestinationDefinition": { - "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", - "Name": "AZURE_EVENT_HUB", - "DisplayName": "Azure Event Hub", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": null, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", - "originalTimestamp": "2020-05-21T10:23:15.979Z", - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:59372", - "sentAt": "2020-05-21T10:23:15.979Z", - "timestamp": "2020-05-21T15:53:16.014+05:30", - "type": "identify", - "userId": "user-12345" - }, - "metadata": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "destinationType": "AZURE_EVENT_HUB", - "jobId": 48, - "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", - "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" - } - }, - { - "destination": { - "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "Name": "Azure Event Hub", - "DestinationDefinition": { - "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", - "Name": "AZURE_EVENT_HUB", - "DisplayName": "Azure Event Hub", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": null, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "event": "test track without property", - "integrations": { - "All": true - }, - "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", - "originalTimestamp": "2020-05-21T10:23:15.981Z", - "properties": {}, - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:59374", - "sentAt": "2020-05-21T10:23:15.981Z", - "timestamp": "2020-05-21T15:53:16.014+05:30", - "type": "track", - "userId": "user-12345" - }, - "metadata": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "destinationType": "AZURE_EVENT_HUB", - "jobId": 49, - "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", - "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" - } - }, - { - "destination": { - "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "Name": "Azure Event Hub", - "DestinationDefinition": { - "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", - "Name": "AZURE_EVENT_HUB", - "DisplayName": "Azure Event Hub", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": null, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "event": "test track with property", - "integrations": { - "All": true - }, - "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", - "originalTimestamp": "2020-05-21T10:23:15.982Z", - "properties": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - }, - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:59373", - "sentAt": "2020-05-21T10:23:15.983Z", - "timestamp": "2020-05-21T15:53:16.013+05:30", - "type": "track", - "userId": "user-12345" - }, - "metadata": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "destinationType": "AZURE_EVENT_HUB", - "jobId": 50, - "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", - "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" - } - } -] diff --git a/test/__tests__/data/azure_event_hub_output.json b/test/__tests__/data/azure_event_hub_output.json deleted file mode 100644 index 7bac8eca74..0000000000 --- a/test/__tests__/data/azure_event_hub_output.json +++ /dev/null @@ -1,276 +0,0 @@ -[ - { - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "event": "Purchase", - "integrations": { - "All": true - }, - "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", - "originalTimestamp": "2020-05-21T10:23:15.984Z", - "properties": { - "currency": "USD", - "revenue": 100 - }, - "receivedAt": "2020-05-21T15:53:16.013+05:30", - "request_ip": "[::1]:59371", - "sentAt": "2020-05-21T10:23:15.985Z", - "timestamp": "2020-05-21T15:53:16.012+05:30", - "type": "track", - "userId": "user-12345" - }, - "userId": "user-12345" - }, - { - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", - "originalTimestamp": "2020-05-21T10:23:15.975Z", - "properties": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:58616", - "sentAt": "2020-05-21T10:23:15.975Z", - "timestamp": "2020-05-21T15:53:16.014+05:30", - "type": "page", - "userId": "user-12345" - }, - "userId": "user-12345" - }, - { - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", - "originalTimestamp": "2020-05-21T10:23:15.979Z", - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:59372", - "sentAt": "2020-05-21T10:23:15.979Z", - "timestamp": "2020-05-21T15:53:16.014+05:30", - "type": "identify", - "userId": "user-12345" - }, - "userId": "user-12345" - }, - { - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "event": "test track without property", - "integrations": { - "All": true - }, - "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", - "originalTimestamp": "2020-05-21T10:23:15.981Z", - "properties": {}, - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:59374", - "sentAt": "2020-05-21T10:23:15.981Z", - "timestamp": "2020-05-21T15:53:16.014+05:30", - "type": "track", - "userId": "user-12345" - }, - "userId": "user-12345" - }, - { - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "event": "test track with property", - "integrations": { - "All": true - }, - "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", - "originalTimestamp": "2020-05-21T10:23:15.982Z", - "properties": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - }, - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:59373", - "sentAt": "2020-05-21T10:23:15.983Z", - "timestamp": "2020-05-21T15:53:16.013+05:30", - "type": "track", - "userId": "user-12345" - }, - "userId": "user-12345" - } -] diff --git a/test/__tests__/data/blueshift_input.json b/test/__tests__/data/blueshift_input.json deleted file mode 100644 index 25b643cf53..0000000000 --- a/test/__tests__/data/blueshift_input.json +++ /dev/null @@ -1,1120 +0,0 @@ -[ - { - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "dataCenter": "standard" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.5" - }, - "traits": { - "name": "hardik", - "email": "hardik@rudderstack.com", - "cookie": "1234abcd-efghklkj-1234kfjadslk-34iu123", - "industry": "Education", - "employees": 399, - "plan": "enterprise", - "total billed": 830 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.5" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - } - }, - "type": "group", - "messageId": "e5034df0-a404-47b4-a463-76df99934fea", - "anonymousId": "my-anonymous-id-new", - "userId": "sampleusrRudder7", - "traits": { - "groupType": "company", - "name_trait": "Company", - "value_trait": "Comapny-ABC" - } - } - }, - { - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", - "dataCenter": "standard" - } - }, - "message": { - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.5" - }, - "traits": { - "name": "hardik", - "email": "hardik@rudderstack.com", - "cookie": "1234abcd-efghklkj-1234kfjadslk-34iu123", - "industry": "Education", - "employees": 399, - "plan": "enterprise", - "total billed": 830 - } - }, - "type": "group", - "userId": "rudderstack8", - "groupId": "35838" - } - }, - { - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", - "dataCenter": "standard" - } - }, - "message": { - "context": { - "ip": "14.5.67.21", - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "Android", - "attTrackingStatus": 3 - }, - "os": { - "name": "Android", - "version": "9" - }, - "network": { - "bluetooth": false, - "carrier": "Android", - "cellular": true, - "wifi": true - }, - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 789223, - "latitude": "37.7672319", - "longitude": "-122.4021353", - "state": "WB", - "street": "rajnagar" - } - }, - "properties": { - "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123" - }, - "messageId": "34abcd-efghijkj-1234kf", - "type": "track", - "event": "identify", - "userId": "sampleusrRudder7" - } - }, - { - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", - "dataCenter": "standard" - } - }, - "message": { - "type": "track", - "event": "Product Viewed", - "properties": { - "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123", - "checkout_id": "C324532", - "order_id": "T1230", - "value": 15.98, - "revenue": 16.98, - "shipping": 3.0, - "coupon": "FY21", - "currency": "INR", - "products": [ - { - "product_id": "product-mixedfruit-jam", - "sku": "sku-1", - "category": "Food", - "name": "Food/Drink", - "brand": "Sample", - "variant": "None", - "price": 10.0, - "quantity": 2, - "currency": "INR", - "position": 1, - "value": 6.0, - "typeOfProduct": "Food", - "url": "https://www.example.com/product/bacon-jam", - "image_url": "https://www.example.com/product/bacon-jam.jpg" - } - ] - }, - "context": { - "app": { - "build": "1", - "name": "RudderAndroidClient", - "namespace": "com.rudderstack.demo.android", - "version": "1.0" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "0.1.4" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "campaign": { - "source": "google", - "medium": "medium", - "term": "keyword", - "content": "some content", - "name": "some campaign" - }, - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Mumbai", - "traits": { - "anonymousId": "7e32188a4dab669f" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - } - }, - "messageId": "34abcd-efghijkj-1234kf", - "userId": "sampleRudderstack9" - }, - { - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", - "dataCenter": "eu" - } - }, - "message": { - "type": "track", - "event": "Products Searched", - "properties": { - "description": "Sneaker purchase", - "brand": "Victory Sneakers", - "colors": ["red", "blue"], - "items": [ - { - "text": "New Line Sneakers", - "price": "$ 79.95" - }, - { - "text": "Old Line Sneakers", - "price": "$ 79.95" - }, - { - "text": "Blue Line Sneakers", - "price": "$ 79.95" - } - ], - "name": "Hugh Manbeing", - "userLocation": { - "state": "CO", - "zip": "80202" - } - }, - "context": { - "app": { - "build": "1", - "name": "RudderAndroidClient", - "namespace": "com.rudderstack.demo.android", - "version": "1.0" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "0.1.4" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "campaign": { - "source": "google", - "medium": "medium", - "term": "keyword", - "content": "some content", - "name": "some campaign" - }, - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Mumbai", - "traits": { - "anonymousId": "7e32188a4dab669f" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - } - }, - "messageId": "34abcd-efghijkj-1234kf", - "userId": "sampleRudderstack9" - }, - { - "destination": { - "Config": { - "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", - "dataCenter": "standard" - } - }, - "message": { - "type": "track", - "event": "Product_purchased", - "properties": { - "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123" - }, - "messageId": "34abcd-efghijkj-1234kf", - "context": { - "ip": "14.5.67.21", - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "Android", - "attTrackingStatus": 3 - }, - "os": { - "name": "Android", - "version": "9" - }, - "network": { - "bluetooth": false, - "carrier": "Android", - "cellular": true, - "wifi": true - }, - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 789223, - "latitude": "37.7672319", - "longitude": "-122.4021353", - "state": "WB", - "street": "rajnagar" - } - }, - "userId": "sampleRudderstack9" - } - }, - { - "destination": { - "Config": { - "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", - "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", - "dataCenter": "standard" - } - }, - "message": { - "type": "identify", - "event": "Product_purchased", - "properties": { - "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123" - }, - "messageId": "34abcd-efghijkj-1234kf", - "context": { - "ip": "14.5.67.21", - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "Android", - "attTrackingStatus": 3 - }, - "os": { - "name": "Android", - "version": "9" - }, - "network": { - "bluetooth": false, - "carrier": "Android", - "cellular": true, - "wifi": true - }, - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 789223, - "latitude": "37.7672319", - "longitude": "-122.4021353", - "state": "WB", - "street": "rajnagar" - } - }, - "userId": "sampleRudderstack9" - } - }, - { - "destination": { - "Config": { - "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", - "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", - "dataCenter": "standard" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "anon_id", - "type": "identify", - "traits": { - "email": "chandan@companyname.com", - "userId": "rudder123", - "anonymousId": "anon_id", - "name": "James Doe", - "phone": "92374162212", - "gender": "M", - "firstname": "James", - "lastname": "Doe", - "employed": true, - "birthday": "1614775793", - "education": "Science", - "graduate": true, - "married": true, - "customerType": "Prime", - "msg_push": true, - "msgSms": true, - "msgemail": true, - "msgwhatsapp": false, - "custom_tags": ["Test_User", "Interested_User", "DIY_Hobby"], - "custom_mappings": { - "Office": "Trastkiv", - "Country": "Russia" - }, - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 789223, - "state": "WB", - "street": "" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", - "dataCenter": "eu" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "anon_id", - "type": "identify", - "traits": { - "email": "chandan@companyname.com", - "userId": "rudder123", - "anonymousId": "anon_id", - "name": "James Doe", - "phone": "92374162212", - "gender": "M", - "firstname": "James", - "lastname": "Doe", - "employed": true, - "birthday": "1614775793", - "education": "Science", - "graduate": true, - "married": true, - "customerType": "Prime", - "msg_push": true, - "msgSms": true, - "msgemail": true, - "msgwhatsapp": false, - "custom_tags": ["Test_User", "Interested_User", "DIY_Hobby"], - "custom_mappings": { - "Office": "Trastkiv", - "Country": "Russia" - }, - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 789223, - "state": "WB", - "street": "" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - }, - { - "destination": { - "Config": { - "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", - "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", - "dataCenter": "eu" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "ip": "0.0.0.0" - }, - "type": "identify", - "traits": { - "email": "chandan@companyname.com", - "userId": "rudder123", - "anonymousId": "anon_id", - "name": "James Doe", - "phone": "92374162212", - "gender": "M", - "firstname": "James", - "lastname": "Doe" - } - } - }, - { - "destination": { - "Config": { - "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", - "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", - "dataCenter": "eu" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "ip": "0.0.0.0" - }, - "traits": { - "email": "chandan@companyname.com", - "userId": "rudder123", - "anonymousId": "anon_id", - "name": "James Doe", - "phone": "92374162212", - "gender": "M", - "firstname": "James", - "lastname": "Doe" - } - } - }, - { - "destination": { - "Config": { - "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", - "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", - "dataCenter": "eu" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "ip": "0.0.0.0" - }, - "type": "page", - "traits": { - "email": "chandan@companyname.com", - "userId": "rudder123", - "anonymousId": "anon_id", - "name": "James Doe", - "phone": "92374162212", - "gender": "M", - "firstname": "James", - "lastname": "Doe" - } - } - }, - { - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", - "dataCenter": "eu" - } - }, - "message": { - "type": "track", - "event": "Order Completed", - "properties": { - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "Games,Gifts,Entertainment,Toys", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg" - }, - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "quantity": "2", - "position": "1", - "category": "Games,Gifts,Entertainment,Toys", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg" - } - ] - }, - "context": { - "app": { - "build": "1", - "name": "RudderAndroidClient", - "namespace": "com.rudderstack.demo.android", - "version": "1.0" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "0.1.4" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "campaign": { - "source": "google", - "medium": "medium", - "term": "keyword", - "content": "some content", - "name": "some campaign" - }, - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Mumbai", - "traits": { - "anonymousId": "7e32188a4dab669f" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "userId": "sampleRudderstack11" - } - }, - { - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", - "dataCenter": "eu" - } - }, - "message": { - "context": { - "ip": "14.5.67.21", - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "Android", - "attTrackingStatus": 3 - }, - "os": { - "name": "Android", - "version": "9" - }, - "network": { - "bluetooth": false, - "carrier": "Android", - "cellular": true, - "wifi": true - }, - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 789223, - "latitude": "37.7672319", - "longitude": "-122.4021353", - "state": "WB", - "street": "rajnagar" - } - }, - "properties": { - "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123" - }, - "messageId": "34abcd-efghijkj-1234kf", - "type": "track", - "event": "Custom Events", - "userId": "sampleusrRudder7" - } - }, - { - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", - "dataCenter": "eu" - } - }, - "message": { - "type": "track", - "event": "Order 9Completed", - "properties": { - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "Games,Gifts,Entertainment,Toys", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg" - }, - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "quantity": "2", - "position": "1", - "category": "Games,Gifts,Entertainment,Toys", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg" - } - ] - }, - "context": { - "app": { - "build": "1", - "name": "RudderAndroidClient", - "namespace": "com.rudderstack.demo.android", - "version": "1.0" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "0.1.4" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "campaign": { - "source": "google", - "medium": "medium", - "term": "keyword", - "content": "some content", - "name": "some campaign" - }, - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Mumbai", - "traits": { - "anonymousId": "7e32188a4dab669f" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "userId": "sampleRudderstack11" - } - }, - { - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", - "dataCenter": "eu" - } - }, - "message": { - "type": "track", - "event": "Order.Completed", - "properties": { - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "Games,Gifts,Entertainment,Toys", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg" - }, - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "quantity": "2", - "position": "1", - "category": "Games,Gifts,Entertainment,Toys", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg" - } - ] - }, - "context": { - "app": { - "build": "1", - "name": "RudderAndroidClient", - "namespace": "com.rudderstack.demo.android", - "version": "1.0" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "0.1.4" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "campaign": { - "source": "google", - "medium": "medium", - "term": "keyword", - "content": "some content", - "name": "some campaign" - }, - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Mumbai", - "traits": { - "anonymousId": "7e32188a4dab669f" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "userId": "sampleRudderstack11" - } - }, - { - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", - "dataCenter": "standard" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1", - "name": "RudderAndroidClient", - "namespace": "com.rudderstack.demo.android", - "version": "1.0" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "0.1.4" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "campaign": { - "source": "google", - "medium": "medium", - "term": "keyword", - "content": "some content", - "name": "some campaign" - }, - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Mumbai", - "traits": { - "anonymousId": "7e32188a4dab669f" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "type": "group", - "messageId": "e5034jh0-a404-47b4-a463-76df99934kl2", - "userId": "sampleusrRudder1", - "groupId": "group22222", - "traits": { - "name": "hardik", - "email": "hardik@rudderstack.com", - "cookie": "1234abcd-efghklkj-1234kfjadslk-34iu123", - "industry": "Education", - "employees": 399, - "plan": "enterprise", - "total billed": 830, - "gender": "male" - } - } - }, - { - "destination": { - "Config": { - "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", - "dataCenter": "eu" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1", - "name": "RudderAndroidClient", - "namespace": "com.rudderstack.demo.android", - "version": "1.0" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android" - }, - "library": { - "name": "com.rudderstack.android.sdk.core", - "version": "0.1.4" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "campaign": { - "source": "google", - "medium": "medium", - "term": "keyword", - "content": "some content", - "name": "some campaign" - }, - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Mumbai", - "traits": { - "anonymousId": "7e32188a4dab669f" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "type": "group", - "messageId": "e5034jh0-a404-47b4-a463-76df99934kl2", - "userId": "sampleusrRudder1", - "groupId": "group22222", - "traits": { - "name": "hardik", - "email": "hardik@rudderstack.com", - "cookie": "1234abcd-efghklkj-1234kfjadslk-34iu123", - "industry": "Education", - "employees": 399, - "plan": "enterprise", - "total billed": 830, - "gender": "male" - } - } - } -] diff --git a/test/__tests__/data/blueshift_output.json b/test/__tests__/data/blueshift_output.json deleted file mode 100644 index 189ad02aa3..0000000000 --- a/test/__tests__/data/blueshift_output.json +++ /dev/null @@ -1,438 +0,0 @@ -[ - { - "statusCode": 400, - "error": "Missing required value from \"groupId\"", - "statTags": { - "destination": "blueshift", - "stage": "transform", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getblueshift.com/api/v1/event", - "headers": { - "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "group_id": "35838", - "customer_id": "rudderstack8", - "email": "hardik@rudderstack.com", - "event": "identify" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "ip": "14.5.67.21", - "event": "identify", - "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123", - "os_name": "Android", - "latitude": "37.7672319", - "device_id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "longitude": "-122.4021353", - "event_uuid": "34abcd-efghijkj-1234kf", - "customer_id": "sampleusrRudder7", - "device_idfa": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "device_idfv": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "device_type": "Android", - "network_carrier": "Android", - "device_manufacturer": "Google" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=" - }, - "version": "1", - "endpoint": "https://api.getblueshift.com/api/v1/event" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getblueshift.com/api/v1/event", - "headers": { - "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "view", - "device_type": "android", - "device_id": "7e32188a4dab669f", - "device_idfv": "7e32188a4dab669f", - "device_manufacturer": "Google", - "os_name": "Android", - "network_carrier": "Android", - "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123", - "checkout_id": "C324532", - "order_id": "T1230", - "value": 15.98, - "revenue": 16.98, - "shipping": 3, - "coupon": "FY21", - "currency": "INR", - "products": [ - { - "product_id": "product-mixedfruit-jam", - "sku": "sku-1", - "category": "Food", - "name": "Food/Drink", - "brand": "Sample", - "variant": "None", - "price": 10, - "quantity": 2, - "currency": "INR", - "position": 1, - "value": 6, - "typeOfProduct": "Food", - "url": "https://www.example.com/product/bacon-jam", - "image_url": "https://www.example.com/product/bacon-jam.jpg" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.eu.getblueshift.com/api/v1/event", - "headers": { - "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "search", - "device_type": "android", - "device_id": "7e32188a4dab669f", - "device_idfv": "7e32188a4dab669f", - "device_manufacturer": "Google", - "os_name": "Android", - "network_carrier": "Android", - "description": "Sneaker purchase", - "brand": "Victory Sneakers", - "colors": ["red", "blue"], - "items": [ - { - "text": "New Line Sneakers", - "price": "$ 79.95" - }, - { - "text": "Old Line Sneakers", - "price": "$ 79.95" - }, - { - "text": "Blue Line Sneakers", - "price": "$ 79.95" - } - ], - "name": "Hugh Manbeing", - "userLocation": { - "state": "CO", - "zip": "80202" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "[BLUESHIFT] event Api Keys required for Authentication.", - "statTags": { - "destination": "blueshift", - "stage": "transform", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "Missing required value from \"email\"", - "statTags": { - "destination": "blueshift", - "stage": "transform", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getblueshift.com/api/v1/customers", - "headers": { - "Authorization": "Basic YjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q5MjBlYzFlMmU=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "email": "chandan@companyname.com", - "customer_id": "rudder123", - "phone_number": "92374162212", - "firstname": "James", - "lastname": "Doe", - "gender": "M", - "userId": "rudder123", - "anonymousId": "anon_id", - "name": "James Doe", - "employed": true, - "birthday": "1614775793", - "education": "Science", - "graduate": true, - "married": true, - "customerType": "Prime", - "msg_push": true, - "msgSms": true, - "msgemail": true, - "msgwhatsapp": false, - "custom_tags": ["Test_User", "Interested_User", "DIY_Hobby"], - "custom_mappings": { - "Office": "Trastkiv", - "Country": "Russia" - }, - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 789223, - "state": "WB", - "street": "" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "[BLUESHIFT] User API Key required for Authentication.", - "statTags": { - "destination": "blueshift", - "stage": "transform", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.eu.getblueshift.com/api/v1/customers", - "headers": { - "Authorization": "Basic YjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q5MjBlYzFlMmU=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "email": "chandan@companyname.com", - "customer_id": "rudder123", - "phone_number": "92374162212", - "firstname": "James", - "lastname": "Doe", - "gender": "M", - "userId": "rudder123", - "anonymousId": "anon_id", - "name": "James Doe" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "Message Type is not present. Aborting message.", - "statTags": { - "destination": "blueshift", - "stage": "transform", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "Message type page not supported", - "statTags": { - "destination": "blueshift", - "stage": "transform", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.eu.getblueshift.com/api/v1/event", - "headers": { - "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "customer_id": "sampleRudderstack11", - "event": "purchase", - "device_type": "android", - "device_id": "7e32188a4dab669f", - "device_idfv": "7e32188a4dab669f", - "device_manufacturer": "Google", - "os_name": "Android", - "network_carrier": "Android", - "total": 1000, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "position": "1", - "category": "Games,Gifts,Entertainment,Toys", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg" - }, - { - "product_id": "507f1f77bcf86cd799439011", - "sku": "45790-32", - "name": "Monopoly: 3rd Edition", - "price": "19", - "quantity": "2", - "position": "1", - "category": "Games,Gifts,Entertainment,Toys", - "url": "https://www.example.com/product/path", - "image_url": "https://www.example.com/product/path.jpg" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.eu.getblueshift.com/api/v1/event", - "headers": { - "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "customer_id": "sampleusrRudder7", - "event": "Custom_Events", - "device_type": "Android", - "device_id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "device_idfa": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "device_idfv": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "device_manufacturer": "Google", - "os_name": "Android", - "network_carrier": "Android", - "ip": "14.5.67.21", - "latitude": "37.7672319", - "longitude": "-122.4021353", - "event_uuid": "34abcd-efghijkj-1234kf", - "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "[Blueshift] Event shouldn't contain period(.), numeric value and contains not more than 64 characters", - "statTags": { - "destination": "blueshift", - "stage": "transform", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "[Blueshift] Event shouldn't contain period(.), numeric value and contains not more than 64 characters", - "statTags": { - "destination": "blueshift", - "stage": "transform", - "scope": "exception" - } - }, - { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "group_id": "group22222", - "customer_id": "sampleusrRudder1", - "email": "hardik@rudderstack.com", - "device_type": "android", - "device_id": "7e32188a4dab669f", - "device_idfv": "7e32188a4dab669f", - "device_manufacturer": "Google", - "os_name": "Android", - "network_carrier": "Android", - "event_uuid": "e5034jh0-a404-47b4-a463-76df99934kl2", - "cookie": "1234abcd-efghklkj-1234kfjadslk-34iu123", - "event": "identify", - "name": "hardik", - "industry": "Education", - "employees": 399, - "plan": "enterprise", - "total billed": 830, - "gender": "male" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=" - }, - "version": "1", - "endpoint": "https://api.getblueshift.com/api/v1/event" - }, - { - "statusCode": 400, - "error": "[BLUESHIFT] event API Key required for Authentication.", - "statTags": { - "destination": "blueshift", - "stage": "transform", - "scope": "exception" - } - } -] diff --git a/test/__tests__/data/blueshift_router_input.json b/test/__tests__/data/blueshift_router_input.json deleted file mode 100644 index 5401275771..0000000000 --- a/test/__tests__/data/blueshift_router_input.json +++ /dev/null @@ -1,167 +0,0 @@ -[ - { - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", - "datacenterEU": false - } - }, - "metadata": { - "jobId": 1 - }, - "message": { - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.5" - }, - "traits": { - "name": "hardik", - "email": "hardik@rudderstack.com", - "cookie": "1234abcd-efghklkj-1234kfjadslk-34iu123", - "industry": "Education", - "employees": 399, - "plan": "enterprise", - "total billed": 830 - } - }, - "type": "group", - "userId": "rudderstack8", - "groupId": "35838" - } - }, - { - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", - "datacenterEU": false - } - }, - "metadata": { - "jobId": 2 - }, - "message": { - "context": { - "ip": "14.5.67.21", - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "Android", - "attTrackingStatus": 3 - }, - "os": { - "name": "Android", - "version": "9" - }, - "network": { - "bluetooth": false, - "carrier": "Android", - "cellular": true, - "wifi": true - }, - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 789223, - "latitude": "37.7672319", - "longitude": "-122.4021353", - "state": "WB", - "street": "rajnagar" - } - }, - "properties": { - "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123" - }, - "messageId": "34abcd-efghijkj-1234kf", - "type": "track", - "event": "identify", - "userId": "sampleusrRudder7" - } - }, - { - "destination": { - "Config": { - "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", - "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", - "datacenterEU": false - } - }, - "metadata": { - "jobId": 3 - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "anon_id", - "type": "identify", - "traits": { - "email": "chandan@companyname.com", - "userId": "rudder123", - "anonymousId": "anon_id", - "name": "James Doe", - "phone": "92374162212", - "gender": "M", - "firstname": "James", - "lastname": "Doe", - "employed": true, - "birthday": "1614775793", - "education": "Science", - "graduate": true, - "married": true, - "customerType": "Prime", - "msg_push": true, - "msgSms": true, - "msgemail": true, - "msgwhatsapp": false, - "custom_tags": ["Test_User", "Interested_User", "DIY_Hobby"], - "custom_mappings": { - "Office": "Trastkiv", - "Country": "Russia" - }, - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 789223, - "state": "WB", - "street": "" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - } - } -] diff --git a/test/__tests__/data/blueshift_router_output.json b/test/__tests__/data/blueshift_router_output.json deleted file mode 100644 index 669f5014a5..0000000000 --- a/test/__tests__/data/blueshift_router_output.json +++ /dev/null @@ -1,156 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getblueshift.com/api/v1/event", - "headers": { - "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "group_id": "35838", - "customer_id": "rudderstack8", - "email": "hardik@rudderstack.com", - "event": "identify" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", - "datacenterEU": false - } - } - }, - { - "batchedRequest": { - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "ip": "14.5.67.21", - "event": "identify", - "cookie": "1234abcd-efghijkj-1234kfjadslk-34iu123", - "os_name": "Android", - "latitude": "37.7672319", - "device_id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "longitude": "-122.4021353", - "event_uuid": "34abcd-efghijkj-1234kf", - "customer_id": "sampleusrRudder7", - "device_idfa": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "device_idfv": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "device_type": "Android", - "network_carrier": "Android", - "device_manufacturer": "Google" - }, - "JSON_ARRAY": {} - }, - "type": "REST", - "files": {}, - "method": "POST", - "params": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Basic ZWZlYjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q2MjBlYzE=" - }, - "version": "1", - "endpoint": "https://api.getblueshift.com/api/v1/event" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "eventApiKey": "efeb4a29aba5e75d99c8a18acd620ec1", - "usersApiKey": "b4a29aba5e75duic8a18acd920ec1e2e", - "datacenterEU": false - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.getblueshift.com/api/v1/customers", - "headers": { - "Authorization": "Basic YjRhMjlhYmE1ZTc1ZDk5YzhhMThhY2Q5MjBlYzFlMmU=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "email": "chandan@companyname.com", - "customer_id": "rudder123", - "phone_number": "92374162212", - "firstname": "James", - "lastname": "Doe", - "gender": "M", - "userId": "rudder123", - "anonymousId": "anon_id", - "name": "James Doe", - "employed": true, - "birthday": "1614775793", - "education": "Science", - "graduate": true, - "married": true, - "customerType": "Prime", - "msg_push": true, - "msgSms": true, - "msgemail": true, - "msgwhatsapp": false, - "custom_tags": ["Test_User", "Interested_User", "DIY_Hobby"], - "custom_mappings": { - "Office": "Trastkiv", - "Country": "Russia" - }, - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 789223, - "state": "WB", - "street": "" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 3 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "eventApiKey": "a5e75d99c8a18acb4a29abd920ec1e2e", - "usersApiKey": "b4a29aba5e75d99c8a18acd920ec1e2e", - "datacenterEU": false - } - } - } -] diff --git a/test/__tests__/data/branch_input.json b/test/__tests__/data/branch_input.json deleted file mode 100644 index 8e8d2bba5f..0000000000 --- a/test/__tests__/data/branch_input.json +++ /dev/null @@ -1,806 +0,0 @@ -[ - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "ios", - "attTrackingStatus": 3 - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "event": "product added", - "integrations": { - "All": true - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "properties": { - "name": "sampath" - }, - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "track", - "userId": "sampath" - } - }, - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "Android", - "attTrackingStatus": 2 - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 2 - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "identify", - "userId": "sampath" - } - }, - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "page", - "userId": "sampath" - } - }, - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "attTrackingStatus": 3 - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "watchos" - }, - "screen": { - "density": 2 - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "event": "product added", - "integrations": { - "All": true - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "properties": { - "name": "sampath" - }, - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "track", - "userId": "sampath" - } - }, - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "attTrackingStatus": 3 - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "ipados" - }, - "screen": { - "density": 2 - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "event": "product added", - "integrations": { - "All": true - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "properties": { - "name": "sampath" - }, - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "track", - "userId": "sampath" - } - }, - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "attTrackingStatus": 3 - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "tvos" - }, - "screen": { - "density": 2 - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "event": "product added", - "integrations": { - "All": true - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "properties": { - "name": "sampath" - }, - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "track", - "userId": "sampath" - } - }, - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "ios", - "attTrackingStatus": 3 - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2 - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "event": "product added", - "integrations": { - "All": true - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "track", - "userId": "sampath" - } - }, - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "ios", - "attTrackingStatus": 3 - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "screen": { - "density": 2 - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "event": "product added", - "integrations": { - "All": true - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "track", - "userId": "sampath" - } - }, - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "ios", - "attTrackingStatus": 3 - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "event": "product added", - "integrations": { - "All": true - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "track", - "userId": "sampath" - } - }, - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "ios", - "attTrackingStatus": 3 - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "track", - "userId": "sampath" - } - }, - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "Android", - "attTrackingStatus": 2, - "brand": "testBrand" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 2, - "height": 1794, - "width": 1080 - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "identify", - "userId": "sampath" - } - }, - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "type": "ios", - "attTrackingStatus": 2, - "brand": "testBrand" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "14.4.1" - }, - "screen": { - "density": 2, - "height": 1794, - "width": 1080 - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "identify", - "userId": "sampath" - } - } -] diff --git a/test/__tests__/data/branch_output.json b/test/__tests__/data/branch_output.json deleted file mode 100644 index 8a57bf99d5..0000000000 --- a/test/__tests__/data/branch_output.json +++ /dev/null @@ -1,385 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.branch.io/v2/event/standard", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "branch_key": "", - "name": "ADD_TO_CART", - "content_items": [ - { - "$product_name": "sampath" - } - ], - "user_data": { - "os": "iOS", - "os_version": "14.4.1", - "app_version": "1.0.0", - "screen_dpi": 2, - "developer_identity": "sampath", - "idfa": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "idfv": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "limit_ad_tracking": false, - "model": "AOSP on IA Emulator", - "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.branch.io/v2/event/custom", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "branch_key": "", - "name": "sampath", - "custom_data": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "content_items": [{}], - "user_data": { - "os": "Android", - "os_version": "9", - "app_version": "1.0.0", - "screen_dpi": 2, - "developer_identity": "sampath", - "android_id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "aaid": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "limit_ad_tracking": true, - "model": "AOSP on IA Emulator", - "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { "statusCode": 400, "error": "Message type is not supported" }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.branch.io/v2/event/standard", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "content_items": [ - { - "$product_name": "sampath" - } - ], - "user_data": { - "os": "watchos", - "app_version": "1.0.0", - "screen_dpi": 2, - "developer_identity": "sampath", - "idfa": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "idfv": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "limit_ad_tracking": false, - "model": "AOSP on IA Emulator", - "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "name": "ADD_TO_CART", - - "branch_key": "" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.branch.io/v2/event/standard", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "content_items": [ - { - "$product_name": "sampath" - } - ], - "user_data": { - "os": "ipados", - "app_version": "1.0.0", - "screen_dpi": 2, - "developer_identity": "sampath", - "idfa": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "idfv": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "limit_ad_tracking": false, - "model": "AOSP on IA Emulator", - "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "name": "ADD_TO_CART", - "branch_key": "" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.branch.io/v2/event/standard", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "content_items": [ - { - "$product_name": "sampath" - } - ], - "user_data": { - "os": "tvos", - "app_version": "1.0.0", - "screen_dpi": 2, - "developer_identity": "sampath", - "idfa": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "idfv": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "limit_ad_tracking": false, - "model": "AOSP on IA Emulator", - "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "name": "ADD_TO_CART", - "branch_key": "" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.branch.io/v2/event/standard", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_data": { - "os": "iOS", - "os_version": "14.4.1", - "app_version": "1.0.0", - "screen_dpi": 2, - "developer_identity": "sampath", - "idfa": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "idfv": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "limit_ad_tracking": false, - "model": "AOSP on IA Emulator", - "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "name": "ADD_TO_CART", - "branch_key": "" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.branch.io/v2/event/standard", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_data": { - "app_version": "1.0.0", - "screen_dpi": 2, - "developer_identity": "sampath", - "limit_ad_tracking": false, - "model": "AOSP on IA Emulator", - "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "name": "ADD_TO_CART", - "branch_key": "" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.branch.io/v2/event/standard", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "user_data": { - "os": "iOS", - "os_version": "14.4.1", - "developer_identity": "sampath", - "idfa": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "idfv": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "limit_ad_tracking": false, - "model": "AOSP on IA Emulator", - "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "name": "ADD_TO_CART", - "branch_key": "" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "statusCode": 400, - "error": "Event name is required", - "statTags": { - "destination": "branch", - "stage": "transform", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.branch.io/v2/event/custom", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "custom_data": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "content_items": [{}], - "user_data": { - "os": "Android", - "os_version": "9", - "app_version": "1.0.0", - "model": "AOSP on IA Emulator", - "brand": "testBrand", - "screen_dpi": 2, - "screen_height": 1794, - "screen_width": 1080, - "developer_identity": "sampath", - "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36", - "android_id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "aaid": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "limit_ad_tracking": true - }, - "name": "sampath", - "branch_key": "" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.branch.io/v2/event/custom", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "custom_data": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "content_items": [{}], - "user_data": { - "os": "iOS", - "os_version": "14.4.1", - "app_version": "1.0.0", - "model": "AOSP on IA Emulator", - "brand": "testBrand", - "screen_dpi": 2, - "screen_height": 1794, - "screen_width": 1080, - "developer_identity": "sampath", - "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36", - "idfa": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "idfv": "3f034872-5e28-45a1-9eda-ce22a3e36d1a", - "limit_ad_tracking": true - }, - "name": "sampath", - "branch_key": "" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - } -] diff --git a/test/__tests__/data/branch_router_input.json b/test/__tests__/data/branch_router_input.json deleted file mode 100644 index 85991e0843..0000000000 --- a/test/__tests__/data/branch_router_input.json +++ /dev/null @@ -1,128 +0,0 @@ -[ - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "metadata": { - "jobId": 1 - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "event": "product added", - "integrations": { - "All": true - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "properties": { - "name": "sampath" - }, - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "track", - "userId": "sampath" - } - }, - { - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - }, - "metadata": { - "jobId": 2 - }, - "message": { - "anonymousId": "sampath", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "iOS", - "version": "" - }, - "screen": { - "density": 2 - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "integrations": { - "All": true - }, - "traits": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "identify", - "userId": "sampath" - } - } -] diff --git a/test/__tests__/data/branch_router_output.json b/test/__tests__/data/branch_router_output.json deleted file mode 100644 index a792b17d05..0000000000 --- a/test/__tests__/data/branch_router_output.json +++ /dev/null @@ -1,120 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.branch.io/v2/event/standard", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "branch_key": "", - "name": "ADD_TO_CART", - "content_items": [ - { - "$product_name": "sampath" - } - ], - "user_data": { - "os": "iOS", - "os_version": "", - "app_version": "1.0.0", - "screen_dpi": 2, - "developer_identity": "sampath", - "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api2.branch.io/v2/event/custom", - "headers": { - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "branch_key": "", - "name": "sampath", - "custom_data": { - "anonymousId": "sampath", - "email": "sampath@gmail.com" - }, - "content_items": [{}], - "user_data": { - "os": "iOS", - "os_version": "", - "app_version": "1.0.0", - "screen_dpi": 2, - "developer_identity": "sampath", - "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - } - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "sampath" - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "branchKey": "", - "useNativeSDK": false - }, - "DestinationDefinition": { - "DisplayName": "Branch Metrics", - "ID": "1WTpBSTiL3iAUHUdW7rHT4sawgU", - "Name": "BRANCH" - }, - "Enabled": true, - "ID": "1WTpIHpH7NTBgjeiUPW1kCUgZGI", - "Name": "branch test", - "Transformations": [] - } - } -] diff --git a/test/__tests__/data/campaign_manager.json b/test/__tests__/data/campaign_manager.json deleted file mode 100644 index a16cbada81..0000000000 --- a/test/__tests__/data/campaign_manager.json +++ /dev/null @@ -1,653 +0,0 @@ -[ - { - "description": "Track - batch insert Call", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "id": "0572f78fa49c648e", - "name": "generic_x86_arm", - "type": "Android", - "model": "AOSP on IA Emulator", - "manufacturer": "Google", - "adTrackingEnabled": true, - "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" - }, - "traits": { - "email": "alex@example.com", - "phone": "+1-202-555-0146", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "England", - "countryCode": "GB", - "postalCode": "EC3M", - "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "originalTimestamp": "2022-11-17T00:22:02.903+05:30", - "properties": { - "profileId": "34245", - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "floodlightActivityId": "456543345245", - "value": "756", - "encryptedUserIdCandidates": ["dfghjbnm"], - "quantity": "455678", - "encryptionSource": "AD_SERVING", - "encryptionEntityId": "3564523", - "encryptionEntityType": "DCM_ACCOUNT", - "requestType": "batchinsert" - }, - "type": "track", - "event": "event test", - "anonymousId": "randomId", - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "metadata": { - "secret": { - "access_token": "dummyApiToken", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "profileId": "5343234", - "treatmentForUnderage": false, - "limitAdTracking": false, - "childDirectedTreatment": false, - "nonPersonalizedAd": false, - "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/34245/conversions/batchinsert", - "headers": { - "Authorization": "Bearer dummyApiToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "kind": "dfareporting#conversionsBatchInsertRequest", - "encryptionInfo": { - "kind": "dfareporting#encryptionInfo", - "encryptionSource": "AD_SERVING", - "encryptionEntityId": "3564523", - "encryptionEntityType": "DCM_ACCOUNT" - }, - "conversions": [ - { - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "timestampMicros": "1668624722903000", - "floodlightActivityId": "456543345245", - "quantity": "455678", - "value": 756, - "encryptedUserIdCandidates": ["dfghjbnm"], - "limitAdTracking": false, - "childDirectedTreatment": false, - "treatmentForUnderage": false, - "nonPersonalizedAd": false - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track - batch update Call", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "id": "0572f78fa49c648e", - "name": "generic_x86_arm", - "type": "Android", - "model": "AOSP on IA Emulator", - "manufacturer": "Google", - "adTrackingEnabled": true, - "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" - }, - "traits": { - "email": "alex@example.com", - "phone": "+1-202-555-0146", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "England", - "countryCode": "GB", - "postalCode": "EC3M", - "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "originalTimestamp": "2021-01-04T08:25:04.780Z", - "properties": { - "profileId": "34245", - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "floodlightActivityId": "456543345245", - "value": "756", - "quantity": "455678", - "gclid": "string", - "encryptionSource": "AD_SERVING", - "encryptionEntityId": "3564523", - "encryptionEntityType": "DCM_ACCOUNT", - "requestType": "batchupdate" - }, - "type": "track", - "event": "event test", - "anonymousId": "randomId", - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "metadata": { - "secret": { - "access_token": "dummyApiToken", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "profileId": "5343234", - "treatmentForUnderage": false, - "limitAdTracking": false, - "childDirectedTreatment": false, - "nonPersonalizedAd": false, - "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/34245/conversions/batchupdate", - "headers": { - "Authorization": "Bearer dummyApiToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "kind": "dfareporting#conversionsBatchUpdateRequest", - "conversions": [ - { - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "timestampMicros": "1609748704780000", - "floodlightActivityId": "456543345245", - "quantity": "455678", - "value": 756, - "gclid": "string", - "treatmentForUnderage": false, - "nonPersonalizedAd": false - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track - batch insert Call failure", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "id": "0572f78fa49c648e", - "name": "generic_x86_arm", - "type": "Android", - "model": "AOSP on IA Emulator", - "manufacturer": "Google", - "adTrackingEnabled": true, - "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" - }, - "traits": { - "email": "alex@example.com", - "phone": "+1-202-555-0146", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "England", - "countryCode": "GB", - "postalCode": "EC3M", - "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "originalTimestamp": "2022-11-17T00:22:02.903+05:30", - "properties": { - "profileId": "34245", - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "floodlightActivityId": "456543345245", - "mobileDeviceId": "string", - "value": "756", - "encryptedUserIdCandidates": ["dfghjbnm"], - "quantity": "455678", - "gclid": "string", - "matchId": "string", - "dclid": "string", - "impressionId": "string", - "requestType": "batchinsert" - }, - "type": "track", - "event": "event test", - "anonymousId": "randomId", - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "metadata": { - "secret": { - "access_token": "dummyApiToken", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "profileId": "5343234", - "treatmentForUnderage": false, - "limitAdTracking": false, - "childDirectedTreatment": false, - "nonPersonalizedAd": false, - "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" - } - } - }, - "output": { - "statusCode": 400, - "error": "[CAMPAIGN MANAGER (DCM)]: If encryptedUserId or encryptedUserIdCandidates is used, provide proper values for properties.encryptionEntityType , properties.encryptionSource and properties.encryptionEntityId", - "statTags": { - "destination": "campaign_manager", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Track - batch insert Call failure none of gclid, matcId are present", - "input": { - "message": { - "channel": "sources", - "originalTimestamp": "2022-11-17T00:22:02.903+05:30", - "properties": { - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "floodlightActivityId": "456543345245", - "value": "756", - "quantity": "455678", - "requestType": "batchinsert" - }, - "type": "track", - "event": "event test", - "anonymousId": "randomId", - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "metadata": { - "secret": { - "access_token": "dummyApiToken", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "profileId": "5343234", - "treatmentForUnderage": false, - "limitAdTracking": false, - "childDirectedTreatment": false, - "nonPersonalizedAd": false, - "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" - } - } - }, - "output": { - "statusCode": 400, - "error": "[CAMPAIGN MANAGER (DCM)]: Atleast one of encryptedUserId,encryptedUserIdCandidates, matchId, mobileDeviceId, gclid, dclid, impressionId.", - "statTags": { - "destination": "campaign_manager", - "stage": "transform", - "scope": "exception" - } - } - }, - { - "description": "Track - batch insert Call with only matchId", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "id": "0572f78fa49c648e", - "name": "generic_x86_arm", - "type": "Android", - "model": "AOSP on IA Emulator", - "manufacturer": "Google", - "adTrackingEnabled": true, - "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" - }, - "traits": { - "email": "alex@example.com", - "phone": "+1-202-555-0146", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "England", - "countryCode": "GB", - "postalCode": "EC3M", - "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "originalTimestamp": "2022-11-17T00:22:02.903+05:30", - "properties": { - "profileId": "34245", - "floodlightConfigurationId": "213123123", - "ordinal": "1", - "floodlightActivityId": "456543345245", - "value": "756", - "quantity": "455678", - "encryptionSource": "AD_SERVING", - "encryptionEntityId": "3564523", - "encryptionEntityType": "DCM_ACCOUNT", - "requestType": "batchinsert", - "matchId": "123" - }, - "type": "track", - "event": "event test", - "anonymousId": "randomId", - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "metadata": { - "secret": { - "access_token": "dummyApiToken", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "profileId": "5343234", - "treatmentForUnderage": false, - "limitAdTracking": false, - "childDirectedTreatment": false, - "nonPersonalizedAd": false, - "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/34245/conversions/batchinsert", - "headers": { - "Authorization": "Bearer dummyApiToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "kind": "dfareporting#conversionsBatchInsertRequest", - "conversions": [ - { - "floodlightConfigurationId": "213123123", - "ordinal": "1", - "timestampMicros": "1668624722903000", - "floodlightActivityId": "456543345245", - "quantity": "455678", - "value": 756, - "limitAdTracking": false, - "childDirectedTreatment": false, - "treatmentForUnderage": false, - "nonPersonalizedAd": false, - "matchId": "123" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - }, - { - "description": "Track - batch insert Call timestamp in unix", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "id": "0572f78fa49c648e", - "name": "generic_x86_arm", - "type": "Android", - "model": "AOSP on IA Emulator", - "manufacturer": "Google", - "adTrackingEnabled": true, - "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" - }, - "traits": { - "email": "alex@example.com", - "phone": "+1-202-555-0146", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "England", - "countryCode": "GB", - "postalCode": "EC3M", - "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "originalTimestamp": "1668624722903333", - "properties": { - "profileId": "34245", - "floodlightConfigurationId": "213123123", - "ordinal": "1", - "floodlightActivityId": "456543345245", - "value": "756", - "quantity": "455678", - "encryptionSource": "AD_SERVING", - "encryptionEntityId": "3564523", - "encryptionEntityType": "DCM_ACCOUNT", - "requestType": "batchinsert", - "matchId": "123" - }, - "type": "track", - "event": "event test", - "anonymousId": "randomId", - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "metadata": { - "secret": { - "access_token": "dummyApiToken", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - } - }, - "destination": { - "Config": { - "profileId": "5343234", - "treatmentForUnderage": false, - "limitAdTracking": false, - "childDirectedTreatment": false, - "nonPersonalizedAd": false, - "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" - } - } - }, - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/34245/conversions/batchinsert", - "headers": { - "Authorization": "Bearer dummyApiToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "kind": "dfareporting#conversionsBatchInsertRequest", - "conversions": [ - { - "floodlightConfigurationId": "213123123", - "ordinal": "1", - "timestampMicros": "1668624722903333", - "floodlightActivityId": "456543345245", - "quantity": "455678", - "value": 756, - "limitAdTracking": false, - "childDirectedTreatment": false, - "treatmentForUnderage": false, - "nonPersonalizedAd": false, - "matchId": "123" - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - } -] diff --git a/test/__tests__/data/campaign_manager_router_input.json b/test/__tests__/data/campaign_manager_router_input.json deleted file mode 100644 index 83f2289431..0000000000 --- a/test/__tests__/data/campaign_manager_router_input.json +++ /dev/null @@ -1,276 +0,0 @@ -[ - { - "metadata": { - "secret": { - "access_token": "dummyApiToken", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - }, - "jobId": 1 - }, - "destination": { - "Config": { - "treatmentForUnderage": false, - "limitAdTracking": false, - "childDirectedTreatment": false, - "nonPersonalizedAd": false, - "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "id": "0572f78fa49c648e", - "name": "generic_x86_arm", - "type": "Android", - "model": "AOSP on IA Emulator", - "manufacturer": "Google", - "adTrackingEnabled": true, - "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" - }, - "traits": { - "email": "alex@example.com", - "phone": "+1-202-555-0146", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "England", - "countryCode": "GB", - "postalCode": "EC3M", - "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "event": "Promotion Clicked", - "type": "track", - "originalTimestamp": "2022-11-17T00:22:02.903+05:30", - "properties": { - "profileId": 437689, - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "quantity": "455678", - "floodlightActivityId": "456543345245", - "value": 7, - "encryptedUserIdCandidates": ["dfghjbnm"], - "limitAdTracking": true, - "childDirectedTreatment": true, - "encryptionSource": "AD_SERVING", - "encryptionEntityId": "3564523", - "encryptionEntityType": "DCM_ACCOUNT", - "requestType": "batchinsert" - }, - "type": "track", - "event": "event test", - "anonymousId": "randomId", - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2022-11-17T00:22:02.903+05:30" - } - }, - { - "metadata": { - "secret": { - "access_token": "dummyApiToken", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - }, - "jobId": 2 - }, - "destination": { - "Config": { - "treatmentForUnderage": false, - "limitAdTracking": false, - "childDirectedTreatment": false, - "nonPersonalizedAd": false, - "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "id": "0572f78fa49c648e", - "name": "generic_x86_arm", - "type": "Android", - "model": "AOSP on IA Emulator", - "manufacturer": "Google", - "adTrackingEnabled": true, - "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" - }, - "traits": { - "email": "alex@example.com", - "phone": "+1-202-555-0146", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "England", - "countryCode": "GB", - "postalCode": "EC3M", - "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "event": "Promotion Clicked", - "type": "track", - "originalTimestamp": "2022-11-17T00:22:02.903+05:30", - "properties": { - "profileId": 437689, - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "floodlightActivityId": "456543345245", - "quantity": "455678", - "value": 7, - "encryptedUserIdCandidates": ["dfghjbnm"], - "limitAdTracking": true, - "childDirectedTreatment": true, - "encryptionSource": "AD_SERVING", - "encryptionEntityId": "3564523", - "encryptionEntityType": "DCM_ACCOUNT", - "requestType": "batchupdate" - }, - "anonymousId": "randomId", - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2022-11-17T00:22:02.903+05:30" - } - }, - { - "metadata": { - "secret": { - "access_token": "dummyApiToken", - "refresh_token": "efgh5678", - "developer_token": "ijkl91011" - }, - "jobId": 3 - }, - "destination": { - "Config": { - "treatmentForUnderage": false, - "limitAdTracking": false, - "childDirectedTreatment": false, - "nonPersonalizedAd": false, - "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" - } - }, - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "id": "0572f78fa49c648e", - "name": "generic_x86_arm", - "type": "Android", - "model": "AOSP on IA Emulator", - "manufacturer": "Google", - "adTrackingEnabled": true, - "advertisingId": "44c97318-9040-4361-8bc7-4eb30f665ca8" - }, - "traits": { - "email": "alex@example.com", - "phone": "+1-202-555-0146", - "firstName": "John", - "lastName": "Gomes", - "city": "London", - "state": "England", - "countryCode": "GB", - "postalCode": "EC3M", - "streetAddress": "71 Cherry Court SOUTHAMPTON SO53 5PD UK" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "event": "Promotion Clicked", - "type": "track", - "originalTimestamp": "2022-11-17T00:22:02.903+05:30", - "properties": { - "profileId": 437689, - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "floodlightActivityId": "456543345245", - "mobileDeviceId": "string", - "value": 7, - "encryptedUserIdCandidates": ["dfghjbnm"], - "gclid": "string", - "matchId": "string", - "dclid": "string", - "quantity": "455678", - "impressionId": "string", - "limitAdTracking": true, - "childDirectedTreatment": true, - "encryptionInfo": { - "kind": "dfareporting#encryptionInfo", - "encryptionSource": "AD_SERVING", - "encryptionEntityId": "3564523", - "encryptionEntityType": "DCM_ACCOUNT" - }, - "requestType": "randomValue" - }, - "anonymousId": "randomId", - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2022-11-17T00:22:02.903+05:30" - } - } -] diff --git a/test/__tests__/data/campaign_manager_router_output.json b/test/__tests__/data/campaign_manager_router_output.json deleted file mode 100644 index 61c3438ab6..0000000000 --- a/test/__tests__/data/campaign_manager_router_output.json +++ /dev/null @@ -1,156 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437689/conversions/batchinsert", - "headers": { - "Authorization": "Bearer dummyApiToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "kind": "dfareporting#conversionsBatchInsertRequest", - "encryptionInfo": { - "kind": "dfareporting#encryptionInfo", - "encryptionSource": "AD_SERVING", - "encryptionEntityId": "3564523", - "encryptionEntityType": "DCM_ACCOUNT" - }, - "conversions": [ - { - "nonPersonalizedAd": false, - "treatmentForUnderage": false, - "timestampMicros": "1668624722903000", - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "quantity": "455678", - "floodlightActivityId": "456543345245", - "value": 7, - "encryptedUserIdCandidates": ["dfghjbnm"], - "limitAdTracking": true, - "childDirectedTreatment": true - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "secret": { - "access_token": "dummyApiToken", - "developer_token": "ijkl91011", - "refresh_token": "efgh5678" - }, - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "childDirectedTreatment": false, - "limitAdTracking": false, - "nonPersonalizedAd": false, - "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK", - "treatmentForUnderage": false - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/437689/conversions/batchupdate", - "headers": { - "Authorization": "Bearer dummyApiToken", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "kind": "dfareporting#conversionsBatchUpdateRequest", - "encryptionInfo": { - "kind": "dfareporting#encryptionInfo", - "encryptionSource": "AD_SERVING", - "encryptionEntityId": "3564523", - "encryptionEntityType": "DCM_ACCOUNT" - }, - "conversions": [ - { - "nonPersonalizedAd": false, - "treatmentForUnderage": false, - "timestampMicros": "1668624722903000", - "floodlightConfigurationId": "213123123", - "ordinal": "string", - "quantity": "455678", - "floodlightActivityId": "456543345245", - "value": 7, - "encryptedUserIdCandidates": ["dfghjbnm"] - } - ] - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "secret": { - "access_token": "dummyApiToken", - "developer_token": "ijkl91011", - "refresh_token": "efgh5678" - }, - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "childDirectedTreatment": false, - "limitAdTracking": false, - "nonPersonalizedAd": false, - "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK", - "treatmentForUnderage": false - } - } - }, - { - "destination": { - "Config": { - "treatmentForUnderage": false, - "limitAdTracking": false, - "childDirectedTreatment": false, - "nonPersonalizedAd": false, - "rudderAccountId": "2EOknn1JNH7WK1MfNku4fGYKkRK" - } - }, - "batched": false, - "error": "[CAMPAIGN MANAGER (DCM)]: properties.requestType must be one of batchinsert or batchupdate.", - "metadata": [ - { - "secret": { - "access_token": "dummyApiToken", - "developer_token": "ijkl91011", - "refresh_token": "efgh5678" - }, - "jobId": 3 - } - ], - "statusCode": 400, - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - } -] diff --git a/test/__tests__/data/candu_input.json b/test/__tests__/data/candu_input.json deleted file mode 100644 index cafe4bbb17..0000000000 --- a/test/__tests__/data/candu_input.json +++ /dev/null @@ -1,938 +0,0 @@ -[ - { - "destination": { - "ID": "23uZJcllEOBx8GbZ31qYzoML8Up", - "Name": "Candu local", - "DestinationDefinition": { - "ID": "23uYPwdkxT7pUNDAiCVNK3aU0sT", - "Name": "CANDU", - "DisplayName": "Candu", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "blackListedEvents", - "whiteListedEvents", - "oneTrustCookieCategories" - ], - "saveDestinationResponse": true, - "secretKeys": ["apiKey"], - "supportedMessageTypes": ["identify", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "FXLkLUEhGJyvmY4" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "userId": "user123456001", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.2.20", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "path": "/Testing/App_for_LaunchDarkly/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "" - }, - "locale": "en-US", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Pune", - "name": "First User", - "email": "firstUser@testmail.com", - "title": "VP", - "gender": "female" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.2.20" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - { - "destination": { - "ID": "23uZJcllEOBx8GbZ31qYzoML8Up", - "Name": "Candu local", - "DestinationDefinition": { - "ID": "23uYPwdkxT7pUNDAiCVNK3aU0sT", - "Name": "CANDU", - "DisplayName": "Candu", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "blackListedEvents", - "whiteListedEvents", - "oneTrustCookieCategories" - ], - "saveDestinationResponse": true, - "secretKeys": ["apiKey"], - "supportedMessageTypes": ["identify", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "FXLkLUEhGJyvmY4" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "type": "track", - "event": "testEventWithoutProp", - "sentAt": "2022-01-20T14:32:51.506Z", - "userId": "user123456001", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.2.20", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "path": "/Testing/App_for_LaunchDarkly/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "" - }, - "locale": "en-US", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Pune", - "name": "First User", - "email": "firstUser@testmail.com", - "title": "VP", - "gender": "female" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.2.20" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e", - "properties": {}, - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-01-20T14:32:51.506Z" - } - }, - { - "destination": { - "ID": "23uZJcllEOBx8GbZ31qYzoML8Up", - "Name": "Candu local", - "DestinationDefinition": { - "ID": "23uYPwdkxT7pUNDAiCVNK3aU0sT", - "Name": "CANDU", - "DisplayName": "Candu", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "blackListedEvents", - "whiteListedEvents", - "oneTrustCookieCategories" - ], - "saveDestinationResponse": true, - "secretKeys": ["apiKey"], - "supportedMessageTypes": ["identify", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "FXLkLUEhGJyvmY4" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "type": "track", - "sentAt": "2022-01-20T14:42:59.775Z", - "userId": "", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.2.20", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "path": "/Testing/App_for_LaunchDarkly/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "initial_referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "127.0.0.1:7307" - }, - "locale": "en-US", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.2.20" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" - }, - "rudderId": "1877191c-3537-46dc-a35a-e2a4d13ed3f7", - "messageId": "fea245ef-6150-42c4-84e0-51fa68e71a88", - "properties": {}, - "anonymousId": "d18df757-34aa-4f71-91a8-7f9ef2940963", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-01-20T14:42:25.343Z" - } - }, - { - "destination": { - "ID": "23uZJcllEOBx8GbZ31qYzoML8Up", - "Name": "Candu local", - "DestinationDefinition": { - "ID": "23uYPwdkxT7pUNDAiCVNK3aU0sT", - "Name": "CANDU", - "DisplayName": "Candu", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "blackListedEvents", - "whiteListedEvents", - "oneTrustCookieCategories" - ], - "saveDestinationResponse": true, - "secretKeys": ["apiKey"], - "supportedMessageTypes": ["identify", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "FXLkLUEhGJyvmY4" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "type": "page", - "sentAt": "2022-01-20T15:30:57.470Z", - "userId": "testUser1234", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.2.20", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "path": "/Testing/App_for_LaunchDarkly/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "initial_referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "127.0.0.1:7307" - }, - "locale": "en-US", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 632 - }, - "traits": {}, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.2.20" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" - }, - "rudderId": "aa193f3b-6d42-466f-a781-6a666cfe17c3", - "messageId": "bf869c14-5f96-4cbc-94b2-3de9252c216b", - "properties": { - "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "path": "/Testing/App_for_LaunchDarkly/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "initial_referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "127.0.0.1:7307" - }, - "anonymousId": "d18df757-34aa-4f71-91a8-7f9ef2940963", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-01-20T15:30:57.470Z" - } - }, - { - "destination": { - "ID": "23uZJcllEOBx8GbZ31qYzoML8Up", - "Name": "Candu local", - "DestinationDefinition": { - "ID": "23uYPwdkxT7pUNDAiCVNK3aU0sT", - "Name": "CANDU", - "DisplayName": "Candu", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "blackListedEvents", - "whiteListedEvents", - "oneTrustCookieCategories" - ], - "saveDestinationResponse": true, - "secretKeys": ["apiKey"], - "supportedMessageTypes": ["identify", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": " " - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "type": "track", - "event": "testEventWithoutProp", - "sentAt": "2022-01-20T14:32:51.506Z", - "userId": "user123456001", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.2.20", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "path": "/Testing/App_for_LaunchDarkly/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "" - }, - "locale": "en-US", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Pune", - "name": "First User", - "email": "firstUser@testmail.com", - "title": "VP", - "gender": "female" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.2.20" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e", - "properties": {}, - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-01-20T14:32:51.506Z" - } - }, - { - "destination": { - "ID": "23uZJcllEOBx8GbZ31qYzoML8Up", - "Name": "Candu local", - "DestinationDefinition": { - "ID": "23uYPwdkxT7pUNDAiCVNK3aU0sT", - "Name": "CANDU", - "DisplayName": "Candu", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "blackListedEvents", - "whiteListedEvents", - "oneTrustCookieCategories" - ], - "saveDestinationResponse": true, - "secretKeys": ["apiKey"], - "supportedMessageTypes": ["identify", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "FXLkLUEhGJyvmY4" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "event": "testEventWithoutProp", - "sentAt": "2022-01-20T14:32:51.506Z", - "userId": "user123456001", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.2.20", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "path": "/Testing/App_for_LaunchDarkly/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "" - }, - "locale": "en-US", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Pune", - "name": "First User", - "email": "firstUser@testmail.com", - "title": "VP", - "gender": "female" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.2.20" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e", - "properties": {}, - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-01-20T14:32:51.506Z" - } - }, - { - "destination": { - "ID": "23uZJcllEOBx8GbZ31qYzoML8Up", - "Name": "Candu local", - "DestinationDefinition": { - "ID": "23uYPwdkxT7pUNDAiCVNK3aU0sT", - "Name": "CANDU", - "DisplayName": "Candu", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "blackListedEvents", - "whiteListedEvents", - "oneTrustCookieCategories" - ], - "saveDestinationResponse": true, - "secretKeys": ["apiKey"], - "supportedMessageTypes": ["identify", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "FXLkLUEhGJyvmY4" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "type": "identify", - "sentAt": "2022-01-20T13:39:21.033Z", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.2.20", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "path": "/Testing/App_for_LaunchDarkly/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "" - }, - "locale": "en-US", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Pune", - "name": "First User", - "email": "firstUser@testmail.com", - "title": "VP", - "gender": "female", - "userId": 2399229 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.2.20" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-01-20T13:39:21.032Z" - } - }, - { - "destination": { - "ID": "23uZJcllEOBx8GbZ31qYzoML8Up", - "Name": "Candu local", - "DestinationDefinition": { - "ID": "23uYPwdkxT7pUNDAiCVNK3aU0sT", - "Name": "CANDU", - "DisplayName": "Candu", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "blackListedEvents", - "whiteListedEvents", - "oneTrustCookieCategories" - ], - "saveDestinationResponse": true, - "secretKeys": ["apiKey"], - "supportedMessageTypes": ["identify", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "FXLkLUEhGJyvmY4" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "type": "track", - "event": "testEventWithoutProp", - "sentAt": "2022-01-20T14:32:51.506Z", - "userId": "user123456001", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.2.20", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "path": "/Testing/App_for_LaunchDarkly/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "" - }, - "locale": "en-US", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Pune", - "name": "First User", - "email": "firstUser@testmail.com", - "title": "VP", - "gender": "female" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.2.20" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e", - "properties": ["1234", "5678", "91011"], - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-01-20T14:32:51.506Z" - } - }, - { - "destination": { - "ID": "23uZJcllEOBx8GbZ31qYzoML8Up", - "Name": "Candu local", - "DestinationDefinition": { - "ID": "23uYPwdkxT7pUNDAiCVNK3aU0sT", - "Name": "CANDU", - "DisplayName": "Candu", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "blackListedEvents", - "whiteListedEvents", - "oneTrustCookieCategories" - ], - "saveDestinationResponse": true, - "secretKeys": ["apiKey"], - "supportedMessageTypes": ["identify", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "FXLkLUEhGJyvmY4" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "type": "track", - "event": "testEventWithoutProp", - "sentAt": "2022-01-20T14:32:51.506Z", - "userId": "", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.2.20", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "path": "/Testing/App_for_LaunchDarkly/ourSdk.html", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html", - "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:7307", - "initial_referring_domain": "" - }, - "locale": "en-US", - "screen": { - "width": 1440, - "height": 900, - "density": 2, - "innerWidth": 536, - "innerHeight": 689 - }, - "traits": { - "city": "Pune", - "name": "First User", - "email": "firstUser@testmail.com", - "title": "VP", - "gender": "female" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.2.20" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36" - }, - "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647", - "messageId": "e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e", - "properties": [], - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "integrations": { - "All": true - }, - "originalTimestamp": "2022-01-20T14:32:51.506Z" - } - } -] diff --git a/test/__tests__/data/candu_output.json b/test/__tests__/data/candu_output.json deleted file mode 100644 index 5f6ee58825..0000000000 --- a/test/__tests__/data/candu_output.json +++ /dev/null @@ -1,209 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.candu.ai/api/eventWebhook", - "headers": { - "Authorization": "Basic RlhMa0xVRWhHSnl2bVk0", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "traits": { - "city": "Pune", - "name": "First User", - "email": "firstUser@testmail.com", - "title": "VP", - "gender": "female" - }, - "type": "identify", - "userId": "user123456001", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "context": { - "source": "RudderStack" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.candu.ai/api/eventWebhook", - "headers": { - "Authorization": "Basic RlhMa0xVRWhHSnl2bVk0", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "type": "track", - "event": "testEventWithoutProp", - "traits": { - "city": "Pune", - "name": "First User", - "email": "firstUser@testmail.com", - "title": "VP", - "gender": "female" - }, - "properties": {}, - "userId": "user123456001", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "messageId": "e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e", - "context": { - "source": "RudderStack" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "statusCode": 400, - "error": "Missing required value from \"event\"", - "statTags": { - "destination": "candu", - "stage": "transform", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "[CANDU]:: Message type page not supported.", - "statTags": { - "destination": "candu", - "stage": "transform", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "[CANDU]:: apiKey cannot be empty.", - "statTags": { - "destination": "candu", - "stage": "transform", - "scope": "exception" - } - }, - { - "statusCode": 400, - "error": "[CANDU]:: Message Type is not present. Aborting message.", - "statTags": { - "destination": "candu", - "stage": "transform", - "scope": "exception" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.candu.ai/api/eventWebhook", - "headers": { - "Authorization": "Basic RlhMa0xVRWhHSnl2bVk0", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "traits": { - "city": "Pune", - "name": "First User", - "email": "firstUser@testmail.com", - "title": "VP", - "gender": "female", - "userId": 2399229 - }, - "userId": "2399229", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04", - "type": "identify", - "context": { - "source": "RudderStack" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.candu.ai/api/eventWebhook", - "headers": { - "Authorization": "Basic RlhMa0xVRWhHSnl2bVk0", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "testEventWithoutProp", - "traits": { - "city": "Pune", - "name": "First User", - "email": "firstUser@testmail.com", - "title": "VP", - "gender": "female" - }, - "properties": ["1234", "5678", "91011"], - "userId": "user123456001", - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "messageId": "e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e", - "type": "track", - "context": { - "source": "RudderStack" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.candu.ai/api/eventWebhook", - "headers": { - "Authorization": "Basic RlhMa0xVRWhHSnl2bVk0", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "event": "testEventWithoutProp", - "traits": { - "city": "Pune", - "name": "First User", - "email": "firstUser@testmail.com", - "title": "VP", - "gender": "female" - }, - "properties": [], - "anonymousId": "bf412108-0357-4330-b119-7305e767823c", - "messageId": "e9f3dfb4-562c-48f4-b0cf-85782dfc9b1e", - "type": "track", - "context": { - "source": "RudderStack" - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } -] diff --git a/test/__tests__/data/candu_router_input.json b/test/__tests__/data/candu_router_input.json deleted file mode 100644 index 04eb516327..0000000000 --- a/test/__tests__/data/candu_router_input.json +++ /dev/null @@ -1,105 +0,0 @@ -[ - { - "destination": { - "ID": "23uZJcllEOBx8GbZ31qYzoML8Up", - "Name": "Candu local", - "DestinationDefinition": { - "ID": "23uYPwdkxT7pUNDAiCVNK3aU0sT", - "Name": "CANDU", - "DisplayName": "Candu", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "blackListedEvents", - "whiteListedEvents", - "oneTrustCookieCategories" - ], - "saveDestinationResponse": true, - "secretKeys": ["apiKey"], - "supportedMessageTypes": ["identify", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "FXLkLUEhGJyvmY4" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "metadata": { - "jobId": 1 - }, - "message": { - "anonymousId": "a1b2c3d4e5f6g7h8i9j10", - "channel": "mobile", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "device": { - "adTrackingEnabled": true, - "advertisingId": "", - "id": "", - "manufacturer": "Google", - "model": "AOSP on IA Emulator", - "name": "generic_x86_arm", - "attTrackingStatus": 3 - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "locale": "en-US", - "os": { - "name": "watchos" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "sampath@gmail.com", - "name": "Joker", - "Gender": "male", - "foo": { - "foo": "bar" - } - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" - }, - "event": "product added", - "integrations": { - "All": true - }, - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "originalTimestamp": "2020-01-17T04:53:51.185Z", - "receivedAt": "2020-01-17T10:23:52.688+05:30", - "request_ip": "[::1]:64059", - "sentAt": "2020-01-17T04:53:52.667Z", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "type": "identify", - "userId": "sampath" - } - } -] diff --git a/test/__tests__/data/candu_router_output.json b/test/__tests__/data/candu_router_output.json deleted file mode 100644 index ecabcbfa9a..0000000000 --- a/test/__tests__/data/candu_router_output.json +++ /dev/null @@ -1,82 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.candu.ai/api/eventWebhook", - "headers": { - "Authorization": "Basic RlhMa0xVRWhHSnl2bVk0", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "traits": { - "email": "sampath@gmail.com", - "name": "Joker", - "Gender": "male", - "foo": { "foo": "bar" } - }, - "type": "identify", - "userId": "sampath", - "anonymousId": "a1b2c3d4e5f6g7h8i9j10", - "timestamp": "2020-01-17T10:23:51.206+05:30", - "messageId": "ea5cfab2-3961-4d8a-8187-3d1858c90a9f", - "context": { "source": "RudderStack" } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "ID": "23uZJcllEOBx8GbZ31qYzoML8Up", - "Name": "Candu local", - "DestinationDefinition": { - "ID": "23uYPwdkxT7pUNDAiCVNK3aU0sT", - "Name": "CANDU", - "DisplayName": "Candu", - "Config": { - "destConfig": { "defaultConfig": ["apiKey"] }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "blackListedEvents", - "whiteListedEvents", - "oneTrustCookieCategories" - ], - "saveDestinationResponse": true, - "secretKeys": ["apiKey"], - "supportedMessageTypes": ["identify", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova" - ], - "transformAt": "router", - "transformAtV1": "router" - }, - "ResponseRules": {} - }, - "Config": { "apiKey": "FXLkLUEhGJyvmY4" }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - } -] diff --git a/test/__tests__/data/confluent_cloud_input.json b/test/__tests__/data/confluent_cloud_input.json deleted file mode 100644 index cc2ae736d6..0000000000 --- a/test/__tests__/data/confluent_cloud_input.json +++ /dev/null @@ -1,396 +0,0 @@ -[ - { - "destination": { - "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "Name": "Azure Event Hub", - "DestinationDefinition": { - "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", - "Name": "AZURE_EVENT_HUB", - "DisplayName": "Azure Event Hub", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": null, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "event": "Purchase", - "integrations": { - "All": true - }, - "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", - "originalTimestamp": "2020-05-21T10:23:15.984Z", - "properties": { - "currency": "USD", - "revenue": 100 - }, - "receivedAt": "2020-05-21T15:53:16.013+05:30", - "request_ip": "[::1]:59371", - "sentAt": "2020-05-21T10:23:15.985Z", - "timestamp": "2020-05-21T15:53:16.012+05:30", - "type": "track", - "userId": "user-12345" - }, - "metadata": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "destinationType": "AZURE_EVENT_HUB", - "jobId": 46, - "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", - "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" - } - }, - { - "destination": { - "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "Name": "Azure Event Hub", - "DestinationDefinition": { - "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", - "Name": "AZURE_EVENT_HUB", - "DisplayName": "Azure Event Hub", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": null, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", - "originalTimestamp": "2020-05-21T10:23:15.975Z", - "properties": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:58616", - "sentAt": "2020-05-21T10:23:15.975Z", - "timestamp": "2020-05-21T15:53:16.014+05:30", - "type": "page", - "userId": "user-12345" - }, - "metadata": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "destinationType": "AZURE_EVENT_HUB", - "jobId": 47, - "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", - "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" - } - }, - { - "destination": { - "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "Name": "Azure Event Hub", - "DestinationDefinition": { - "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", - "Name": "AZURE_EVENT_HUB", - "DisplayName": "Azure Event Hub", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": null, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", - "originalTimestamp": "2020-05-21T10:23:15.979Z", - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:59372", - "sentAt": "2020-05-21T10:23:15.979Z", - "timestamp": "2020-05-21T15:53:16.014+05:30", - "type": "identify", - "userId": "user-12345" - }, - "metadata": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "destinationType": "AZURE_EVENT_HUB", - "jobId": 48, - "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", - "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" - } - }, - { - "destination": { - "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "Name": "Azure Event Hub", - "DestinationDefinition": { - "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", - "Name": "AZURE_EVENT_HUB", - "DisplayName": "Azure Event Hub", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": null, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "event": "test track without property", - "integrations": { - "All": true - }, - "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", - "originalTimestamp": "2020-05-21T10:23:15.981Z", - "properties": {}, - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:59374", - "sentAt": "2020-05-21T10:23:15.981Z", - "timestamp": "2020-05-21T15:53:16.014+05:30", - "type": "track", - "userId": "user-12345" - }, - "metadata": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "destinationType": "AZURE_EVENT_HUB", - "jobId": 49, - "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", - "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" - } - }, - { - "destination": { - "ID": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "Name": "Azure Event Hub", - "DestinationDefinition": { - "ID": "1cCs4qQ72QY8vovP7BlJ47mkjBh", - "Name": "AZURE_EVENT_HUB", - "DisplayName": "Azure Event Hub", - "Config": { - "excludeKeys": [], - "includeKeys": [] - } - }, - "Config": null, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "event": "test track with property", - "integrations": { - "All": true - }, - "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", - "originalTimestamp": "2020-05-21T10:23:15.982Z", - "properties": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - }, - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:59373", - "sentAt": "2020-05-21T10:23:15.983Z", - "timestamp": "2020-05-21T15:53:16.013+05:30", - "type": "track", - "userId": "user-12345" - }, - "metadata": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "destinationId": "1cCz8hts5rp3YWglzhU1GPmVdjE", - "destinationType": "AZURE_EVENT_HUB", - "jobId": 50, - "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", - "sourceId": "1bqCEGibwCvR7F0acuLzbEMQYIC" - } - } -] diff --git a/test/__tests__/data/confluent_cloud_output.json b/test/__tests__/data/confluent_cloud_output.json deleted file mode 100644 index 7bac8eca74..0000000000 --- a/test/__tests__/data/confluent_cloud_output.json +++ /dev/null @@ -1,276 +0,0 @@ -[ - { - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "event": "Purchase", - "integrations": { - "All": true - }, - "messageId": "ce46866c-6f19-42f0-86cb-18c51863b817", - "originalTimestamp": "2020-05-21T10:23:15.984Z", - "properties": { - "currency": "USD", - "revenue": 100 - }, - "receivedAt": "2020-05-21T15:53:16.013+05:30", - "request_ip": "[::1]:59371", - "sentAt": "2020-05-21T10:23:15.985Z", - "timestamp": "2020-05-21T15:53:16.012+05:30", - "type": "track", - "userId": "user-12345" - }, - "userId": "user-12345" - }, - { - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "e02dafb0-9df8-4fa2-becd-f4d8617956a4", - "originalTimestamp": "2020-05-21T10:23:15.975Z", - "properties": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:58616", - "sentAt": "2020-05-21T10:23:15.975Z", - "timestamp": "2020-05-21T15:53:16.014+05:30", - "type": "page", - "userId": "user-12345" - }, - "userId": "user-12345" - }, - { - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "integrations": { - "All": true - }, - "messageId": "41b62b30-db5d-450c-98ed-cec14ead27cc", - "originalTimestamp": "2020-05-21T10:23:15.979Z", - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:59372", - "sentAt": "2020-05-21T10:23:15.979Z", - "timestamp": "2020-05-21T15:53:16.014+05:30", - "type": "identify", - "userId": "user-12345" - }, - "userId": "user-12345" - }, - { - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "event": "test track without property", - "integrations": { - "All": true - }, - "messageId": "c409577d-5dd4-430a-8965-a20aed7b9c9e", - "originalTimestamp": "2020-05-21T10:23:15.981Z", - "properties": {}, - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:59374", - "sentAt": "2020-05-21T10:23:15.981Z", - "timestamp": "2020-05-21T15:53:16.014+05:30", - "type": "track", - "userId": "user-12345" - }, - "userId": "user-12345" - }, - { - "message": { - "anonymousId": "d36981e7-6413-4862-9bb9-b8595fb3d0d4", - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.1" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.1" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "page": { - "path": "/tests/html/index7.html", - "referrer": "http://localhost:1111/tests/html/", - "search": "", - "title": "", - "url": "http://localhost:1111/tests/html/index7.html" - }, - "screen": { - "density": 2 - }, - "traits": { - "age": 23, - "email": "test@kinesis.com", - "firstname": "Test Kinesis" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" - }, - "event": "test track with property", - "integrations": { - "All": true - }, - "messageId": "f8b6e882-3186-446a-b589-51eba60930d7", - "originalTimestamp": "2020-05-21T10:23:15.982Z", - "properties": { - "test_prop_1": "test prop", - "test_prop_2": 1232 - }, - "receivedAt": "2020-05-21T15:53:16.014+05:30", - "request_ip": "[::1]:59373", - "sentAt": "2020-05-21T10:23:15.983Z", - "timestamp": "2020-05-21T15:53:16.013+05:30", - "type": "track", - "userId": "user-12345" - }, - "userId": "user-12345" - } -] diff --git a/test/__tests__/data/courier.json b/test/__tests__/data/courier.json deleted file mode 100644 index 36b4567d03..0000000000 --- a/test/__tests__/data/courier.json +++ /dev/null @@ -1,218 +0,0 @@ -[ - { - "description": "Invalid Configuration (missing api key)", - "input": { - "message": { - "type": "track", - "channel": "web", - "event": "Product Added", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - }, - "destination": { - "Config": {} - } - }, - "output": { - "error": "apiKey is required" - } - }, - { - "description": "Identify call", - "input": { - "message": { - "context": { - "ip": "8.8.8.8" - }, - "traits": { - "name": "Joe Doe", - "email": "joe@example.com", - "plan": "basic", - "age": 27 - }, - "type": "identify", - "userId": "userIdTest", - "originalTimestamp": "2022-10-17T15:53:10.566+05:30", - "messageId": "8d04cc30-fc15-49bd-901f-c5c3f72a7d82" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "context": { - "ip": "8.8.8.8" - }, - "traits": { - "name": "Joe Doe", - "email": "joe@example.com", - "plan": "basic", - "age": 27 - }, - "type": "identify", - "userId": "userIdTest", - "originalTimestamp": "2022-10-17T15:53:10.566+05:30", - "messageId": "8d04cc30-fc15-49bd-901f-c5c3f72a7d82" - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.courier.com/inbound/rudderstack", - "files": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Identify call with traits inside context but not at root level", - "input": { - "message": { - "context": { - "ip": "8.8.8.8", - "traits": { - "name": "Joe Doe", - "email": "joe@example.com", - "plan": "basic", - "age": 27 - } - }, - "type": "identify", - "userId": "userIdTest", - "originalTimestamp": "2022-10-17T15:53:10.566+05:30", - "messageId": "8d04cc30-fc15-49bd-901f-c5c3f72a7d82" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "context": { - "ip": "8.8.8.8", - "traits": { - "name": "Joe Doe", - "email": "joe@example.com", - "plan": "basic", - "age": 27 - } - }, - "traits": { - "name": "Joe Doe", - "email": "joe@example.com", - "plan": "basic", - "age": 27 - }, - "type": "identify", - "userId": "userIdTest", - "originalTimestamp": "2022-10-17T15:53:10.566+05:30", - "messageId": "8d04cc30-fc15-49bd-901f-c5c3f72a7d82" - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.courier.com/inbound/rudderstack", - "files": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - }, - { - "description": "Identify call without traits", - "input": { - "message": { - "context": { - "ip": "8.8.8.8" - }, - "type": "identify", - "userId": "userIdTest", - "originalTimestamp": "2022-10-17T15:53:10.566+05:30", - "messageId": "8d04cc30-fc15-49bd-901f-c5c3f72a7d82" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - } - }, - "output": { - "error": "traits is a required field for identify call" - } - }, - { - "description": "Track call", - "input": { - "message": { - "context": { - "ip": "8.8.8.8" - }, - "event": "trackTest", - "properties": { - "activity": "checkout" - }, - "userId": "userIdTest", - "type": "track", - "messageId": "3c0abc14-96a2-4aed-9dfc-ee463832cc24", - "originalTimestamp": "2022-10-17T15:32:44.202+05:30" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - } - }, - "output": { - "body": { - "FORM": {}, - "JSON": { - "context": { - "ip": "8.8.8.8" - }, - "event": "trackTest", - "properties": { - "activity": "checkout" - }, - "userId": "userIdTest", - "type": "track", - "messageId": "3c0abc14-96a2-4aed-9dfc-ee463832cc24", - "originalTimestamp": "2022-10-17T15:32:44.202+05:30" - }, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://api.courier.com/inbound/rudderstack", - "files": {}, - "headers": { - "Content-Type": "application/json", - "Authorization": "Bearer dummyApiKey" - }, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } - } -] diff --git a/test/__tests__/data/courier_router.json b/test/__tests__/data/courier_router.json deleted file mode 100644 index 882e9c92dd..0000000000 --- a/test/__tests__/data/courier_router.json +++ /dev/null @@ -1,136 +0,0 @@ -[ - { - "input": [ - { - "message": { - "type": "track", - "channel": "web", - "event": "Product Added", - "userId": "test123", - "properties": { - "price": 999, - "quantity": 1 - }, - "context": { - "traits": { - "firstName": "John", - "age": 27 - } - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "metadata": { - "jobId": 1 - } - }, - { - "message": { - "type": "track", - "channel": "web", - "event": "Product Added", - "properties": {}, - "context": {}, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - }, - "destination": { - "Config": { - "sdkKey": "test-sdk-key", - "trackKnownUsers": false, - "nonInteraction": false, - "listen": false, - "trackCategorizedPages": true, - "trackNamedPages": true - } - }, - "metadata": { - "jobId": 2 - } - } - ], - "output": [ - { - "batched": false, - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://api.courier.com/inbound/rudderstack", - "headers": { - "Authorization": "Bearer dummyApiKey", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "type": "track", - "channel": "web", - "event": "Product Added", - "userId": "test123", - "properties": { - "price": 999, - "quantity": 1 - }, - "context": { - "traits": { - "firstName": "John", - "age": 27 - } - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {} - }, - "destination": { - "Config": { - "apiKey": "dummyApiKey" - } - }, - "metadata": [ - { - "jobId": 1 - } - ], - "statusCode": 200 - }, - { - "batched": false, - "error": "apiKey is required", - "metadata": [ - { - "jobId": 2 - } - ], - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration" - }, - "statusCode": 400, - "destination": { - "Config": { - "sdkKey": "test-sdk-key", - "trackKnownUsers": false, - "nonInteraction": false, - "listen": false, - "trackCategorizedPages": true, - "trackNamedPages": true - } - } - } - ] - } -] diff --git a/test/__tests__/data/criteo_audience.json b/test/__tests__/data/criteo_audience.json deleted file mode 100644 index fb2cb5eed8..0000000000 --- a/test/__tests__/data/criteo_audience.json +++ /dev/null @@ -1,1307 +0,0 @@ -[ - { - "description": "Adding email audienceType with batching", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "madid": "sample_madid", - "email": "alex@email.com" - }, - { - "madid": "sample_madid_1", - "email": "amy@email.com" - }, - { - "madid": "sample_madid_2", - "email": "van@email.com" - }, - { - "madid": "sample_madid", - "email": "alex@email.com" - }, - { - "madid": "sample_madid_1", - "email": "amy@email.com" - }, - { - "madid": "sample_madid_2", - "email": "van@email.com" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34894", - "audienceType": "email" - }, - "ID": "sample_destinationId" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34894/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "add", - "identifierType": "email", - "identifiers": [ - "alex@email.com", - "amy@email.com", - "van@email.com", - "alex@email.com", - "amy@email.com" - ], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34894/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "add", - "identifierType": "email", - "identifiers": [ - "van@email.com" - ], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Adding and removing madid audienceType with batching", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "madid": "sample_madid" - }, - { - "madid": "sample_madid_1" - }, - { - "madid": "sample_madid_2" - }, - { - "madid": "sample_madid_10" - }, - { - "madid": "sample_madid_13" - }, - { - "madid": "sample_madid_11" - }, - { - "madid": "sample_madid_12" - } - ], - "remove": [ - { - "madid": "sample_madid_3" - }, - { - "madid": "sample_madid_4" - }, - { - "madid": "sample_madid_5" - }, - { - "madid": "sample_madid_6" - }, - { - "madid": "sample_madid_7" - }, - { - "madid": "sample_madid_8" - }, - { - "madid": "sample_madid_9" - } - ] - } - }, - "context": { - "ip": "14.5.67.21" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "madid" - }, - "ID": "sample_destinationId" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "add", - "identifierType": "madid", - "identifiers": [ - "sample_madid", - "sample_madid_1", - "sample_madid_2", - "sample_madid_10", - "sample_madid_13" - ], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "add", - "identifierType": "madid", - "identifiers": [ - "sample_madid_11", - "sample_madid_12" - ], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "remove", - "identifierType": "madid", - "identifiers": [ - "sample_madid_3", - "sample_madid_4", - "sample_madid_5", - "sample_madid_6", - "sample_madid_7" - ], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "remove", - "identifierType": "madid", - "identifiers": [ - "sample_madid_8", - "sample_madid_9" - ], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Adding email audienceType", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_1", - "email": "amy@email.com", - "identityLink": "yahoo.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_2", - "email": "van@email.com", - "identityLink": "abc.com", - "gum": "sdjfds" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34894", - "audienceType": "email" - }, - "ID": "sample_destinationId" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34894/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "add", - "identifierType": "email", - "identifiers": [ - "alex@email.com", - "amy@email.com", - "van@email.com" - ], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Adding madid audienceType", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_1", - "email": "amy@email.com", - "identityLink": "yahoo.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_2", - "email": "van@email.com", - "identityLink": "abc.com", - "gum": "sdjfds" - } - ] - } - }, - "context": { - "ip": "14.5.67.21" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34895", - "audienceType": "madid" - }, - "ID": "sample_destinationId" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34895/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "add", - "identifierType": "madid", - "identifiers": [ - "sample_madid", - "sample_madid_1", - "sample_madid_2" - ], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Adding and removing madid audienceType", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_1", - "email": "amy@email.com", - "identityLink": "yahoo.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_2", - "email": "van@email.com", - "identityLink": "abc.com", - "gum": "sdjfds" - } - ], - "remove": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sdjfds" - } - ] - } - }, - "context": { - "ip": "14.5.67.21" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "madid" - }, - "ID": "sample_destinationId" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "add", - "identifierType": "madid", - "identifiers": [ - "sample_madid", - "sample_madid_1", - "sample_madid_2" - ], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "remove", - "identifierType": "madid", - "identifiers": [ - "sample_madid" - ], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Adding and removing identityLink audienceType", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_1", - "email": "amy@email.com", - "identityLink": "yahoo.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_2", - "email": "van@email.com", - "identityLink": "abc.com", - "gum": "sdjfds" - } - ], - "remove": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sdjfds" - } - ] - } - }, - "context": { - "ip": "14.5.67.21" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "identityLink" - }, - "ID": "sample_destinationId" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "add", - "identifierType": "identityLink", - "identifiers": [ - "text.com", - "yahoo.com", - "abc.com" - ], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "remove", - "identifierType": "identityLink", - "identifiers": [ - "text.com" - ], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Adding and removing gum audienceType", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sample_gum1" - }, - { - "madid": "sample_madid_1", - "email": "amy@email.com", - "identityLink": "yahoo.com", - "gum": "sample_gum2" - }, - { - "madid": "sample_madid_2", - "email": "van@email.com", - "identityLink": "abc.com", - "gum": "sample_gum3" - } - ], - "remove": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sample_gum3" - } - ] - } - }, - "context": { - "ip": "14.5.67.21" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "gum", - "gumCallerId": "329739" - }, - "ID": "sample_destinationId" - } - }, - "output": [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "add", - "identifierType": "gum", - "identifiers": [ - "sample_gum1", - "sample_gum2", - "sample_gum3" - ], - "internalIdentifiers": false, - "gumCallerId": "329739" - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "remove", - "identifierType": "gum", - "identifiers": [ - "sample_gum3" - ], - "internalIdentifiers": false, - "gumCallerId": "329739" - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ] - }, - { - "description": "Unsupported message type", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "message": { - "userId": "user 1", - "type": "identify", - "properties": { - "listData": { - "add": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_1", - "email": "amy@email.com", - "identityLink": "yahoo.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_2", - "email": "van@email.com", - "identityLink": "abc.com", - "gum": "sdjfds" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "email" - }, - "ID": "sample_destinationId" - } - }, - "output": { - "error": "Event type identify is not supported" - } - }, - { - "description": "Properties is not present in the message", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "email" - }, - "ID": "sample_destinationId" - }, - "message": { - "type": "audiencelist", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "1.12.3" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "traits": { - "brand": "John Players", - "price": "15000", - "firstName": "Test", - "email": "test@rudderstack.com", - "userId": "user@27" - }, - "locale": "en-US", - "device": { - "token": "token", - "id": "id", - "type": "ios" - }, - "screen": { - "density": 2 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.11" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0" - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - "output": { - "error": "Message properties is not present. Aborting message." - } - }, - { - "description": "Payload without listData", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "email" - }, - "ID": "sample_destinationId" - }, - "message": { - "event": "add_to_Cart", - "type": "track", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "brand": "Zara", - "price": "12000" - }, - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "locale": "en-US", - "screen": { - "density": 2 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.11" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0" - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - "output": { - "error": "listData is not present inside properties. Aborting message." - } - }, - { - "description": "Response is empty", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": {} - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "email" - }, - "ID": "sample_destinationId" - } - }, - "output": { - "error": "Payload could not be populated" - } - }, - { - "description": "Message type not given", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "email" - }, - "ID": "sample_destinationId" - }, - "message": { - "event": "add_to_Cart", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "channel": "web", - "properties": { - "brand": "Zara", - "price": "12000" - }, - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "locale": "en-US", - "screen": { - "density": 2 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.11" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0" - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - "output": { - "error": "Message Type is not present. Aborting message." - } - }, - { - "description": "Gum caller ID is not present", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "destination": { - "Config": { - "audienceId": "34893", - "audienceType": "gum" - }, - "ID": "sample_destinationId" - }, - "message": { - "event": "add_to_Cart", - "sentAt": "2021-01-03T17:02:53.195Z", - "userId": "user@27", - "type": "audiencelist", - "channel": "web", - "properties": { - "listData": { - "add": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sample_gum1" - }, - { - "madid": "sample_madid_1", - "email": "amy@email.com", - "identityLink": "yahoo.com", - "gum": "sample_gum2" - }, - { - "madid": "sample_madid_2", - "email": "van@email.com", - "identityLink": "abc.com", - "gum": "sample_gum3" - } - ] - }, - "brand": "Zara", - "price": "12000" - }, - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "build": "1.0.0", - "version": "1.1.11", - "namespace": "com.rudderlabs.javascript" - }, - "locale": "en-US", - "screen": { - "density": 2 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.11" - }, - "campaign": {}, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0" - }, - "rudderId": "8f8fa6b5-8e24-489c-8e22-61f23f2e364f", - "messageId": "2116ef8c-efc3-4ca4-851b-02ee60dad6ff", - "anonymousId": "97c46c81-3140-456d-b2a9-690d70aaca35", - "originalTimestamp": "2021-01-03T17:02:53.193Z" - } - }, - "output": { - "error": "gumCallerId is required for audience type gum" - } - }, - { - "description": "reuqired properties in listData are not present", - "input": { - "metadata": { - "secret": { - "accessToken": "success_access_token" - } - }, - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_1", - "email": "amy@email.com", - "identityLink": "yahoo.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_2", - "identityLink": "abc.com", - "gum": "sdjfds" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - }, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34894", - "audienceType": "email" - }, - "ID": "sample_destinationId" - } - }, - "output": { - "error": "Required property for email type audience is not available in an object" - } - } -] \ No newline at end of file diff --git a/test/__tests__/data/criteo_audience_router_input.json b/test/__tests__/data/criteo_audience_router_input.json deleted file mode 100644 index 25607ca936..0000000000 --- a/test/__tests__/data/criteo_audience_router_input.json +++ /dev/null @@ -1,111 +0,0 @@ -[ - { - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "email" - }, - "ID": "iwehr83843" - }, - "metadata": { - "secret": { - "accessToken": "success_access_token" - }, - "jobId": 1 - }, - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_1", - "email": "amy@email.com", - "identityLink": "yahoo.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_2", - "email": "van@email.com", - "identityLink": "abc.com", - "gum": "sdjfds" - } - ] - } - }, - "context": { - "ip": "14.5.67.21", - "library": { - "name": "http" - } - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - }, - { - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "madid" - }, - "ID": "iwehr83843" - }, - "metadata": { - "secret": { - "accessToken": "success_access_token" - }, - "jobId": 2 - }, - "message": { - "userId": "user 1", - "type": "audiencelist", - "properties": { - "listData": { - "add": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_1", - "email": "amy@email.com", - "identityLink": "yahoo.com", - "gum": "sdjfds" - }, - { - "madid": "sample_madid_2", - "email": "van@email.com", - "identityLink": "abc.com", - "gum": "sdjfds" - } - ], - "remove": [ - { - "madid": "sample_madid", - "email": "alex@email.com", - "identityLink": "text.com", - "gum": "sdjfds" - } - ] - } - }, - "context": { - "ip": "14.5.67.21" - }, - "timestamp": "2020-02-02T00:23:09.544Z" - } - } -] diff --git a/test/__tests__/data/criteo_audience_router_output.json b/test/__tests__/data/criteo_audience_router_output.json deleted file mode 100644 index 6c38b7460b..0000000000 --- a/test/__tests__/data/criteo_audience_router_output.json +++ /dev/null @@ -1,135 +0,0 @@ -[ - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "add", - "identifierType": "email", - "identifiers": ["alex@email.com", "amy@email.com", "van@email.com"], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "jobId": 1, - "secret": { - "accessToken": "success_access_token" - } - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "email" - }, - "ID": "iwehr83843" - } - }, - { - "batchedRequest": [ - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "add", - "identifierType": "madid", - "identifiers": ["sample_madid", "sample_madid_1", "sample_madid_2"], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "PATCH", - "endpoint": "https://api.criteo.com/2022-10/audiences/34893/contactlist", - "headers": { - "Authorization": "Bearer success_access_token", - "Content-Type": "application/json", - "Accept": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "type": "ContactlistAmendment", - "attributes": { - "operation": "remove", - "identifierType": "madid", - "identifiers": ["sample_madid"], - "internalIdentifiers": false - } - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {} - } - ], - "metadata": [ - { - "jobId": 2, - "secret": { - "accessToken": "success_access_token" - } - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "clientId": "abcdef8-f49-4cd6-b4c5-958b3d66d431", - "clientSecret": "sjhdkhfrz6yc9LrRRIPimE9h53jADLccXTykHCcA6eEoFR4rXQg", - "audienceId": "34893", - "audienceType": "madid" - }, - "ID": "iwehr83843" - } - } -] diff --git a/test/__tests__/data/customerio_input.json b/test/__tests__/data/customerio_input.json deleted file mode 100644 index f1f2774163..0000000000 --- a/test/__tests__/data/customerio_input.json +++ /dev/null @@ -1,4964 +0,0 @@ -[ - { - "message": { - "type": "track", - "event": { - "Phone": "123456677", - "Lead ID": "abc", - "Lead URL": "https://simplisafe.com/admin/store/leads/19635101/view", - "firstName": "david tenenbaum", - "Pro Install": "Yes", - "Property Type": "Home", - "Last Lead Source": "uyfasauya ", - "Saved System URL": "ihguwivkbjc" - }, - "userId": "", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "version": "x.x.x", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "path": "/rudderstack-sample-site/", - "title": "Keyboard Site", - "search": "", - "referrer": "$direct", - "initial_referrer": "$direct", - "referring_domain": "", - "initial_referring_domain": "" - }, - "locale": "en-US", - "screen": { - "width": 1512, - "height": 982, - "density": 2, - "innerWidth": 347, - "innerHeight": 778 - }, - "traits": { - "name": "john ", - "lead_id": "abc", - "firstName": "doe " - }, - "campaign": {}, - "sessionId": 123456 - }, - "rudderId": "rudder_id", - "timestamp": "2022-12-03T18:37:57.755Z", - "properties": {}, - "receivedAt": "2022-12-03T18:37:57.758Z", - "request_ip": "62.59.170.125", - "anonymousId": "149a7c9f-0778-45f6-b071-d92523cc8738", - "originalTimestamp": "2022-12-03T18:37:57.614Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "type": "identify", - "userId": "cio_1234", - "integrations": { - "All": true - }, - "traits": { - "email": "updated_email@example.com", - "id": "updated-id-value" - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "ip": "0.0.0.0", - "age": 26 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "user_properties": { - "prop1": "val1", - "prop2": "val2" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "traits": { - "anonymousId": "anon-id", - "email": "test@gmail.com", - "dot.name": "Arnab Pal", - "address": { - "city": "NY", - "country": "USA", - "postalCode": 712136, - "state": "CA", - "street": "" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "ip": "0.0.0.0", - "age": 26 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "user_properties": { - "prop1": "val1", - "prop2": "val2" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "traits": { - "anonymousId": "anon-id", - "email": "test@gmail.com", - "dot.name": "Arnab Pal", - "address": { - "city": "NY", - "country": "USA", - "postalCode": 712136, - "state": "CA", - "street": "" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "123456", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "ip": "0.0.0.0", - "age": 26 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "user_properties": { - "prop1": "val1", - "prop2": "val2" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "integrations": { - "All": true - }, - "traits": { - "anonymousId": "anon-id", - "dot.name": "Arnab Pal", - "address": { - "city": "NY", - "country": "USA", - "postalCode": 712136, - "state": "CA", - "street": "" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "ip": "0.0.0.0", - "age": 26 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "user_properties": { - "prop1": "val1", - "prop2": "val2" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "integrations": { - "All": true - }, - "traits": { - "anonymousId": "anon-id", - "email": "test@gmail.com", - "dot.name": "Arnab Pal", - "address": { - "city": "NY", - "country": "USA", - "postalCode": 712136, - "state": "CA", - "street": "" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "12345", - "properties": { - "path": "/test", - "referrer": "Rudder", - "search": "abc", - "title": "Test Page", - "url": "www.rudderlabs.com" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "12345", - "event": "test track event", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "", - "event": "test track event", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "", - "event": "test track event", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "anonymousId": "7e32188a4dab669f", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "RudderAndroidClient", - "namespace": "com.torpedolabs.wynn.wscci.dev", - "version": "1.0" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android", - "token": "abcxyz" - }, - "library": { - "name": "com.rudderlabs.android.sdk.core", - "version": "0.1.4" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "7e32188a4dab669f" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "event": "Application Installed", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "review_id": "some_review_id", - "product_id": "some_product_id_a", - "rating": 2.0, - "review_body": "Some Review Body" - }, - "userId": "12345", - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "anonymousId": "7e32188a4dab669f", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "RudderAndroidClient", - "namespace": "com.torpedolabs.wynn.wscci.dev", - "version": "1.0" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android", - "token": "abcxyz" - }, - "library": { - "name": "com.rudderlabs.android.sdk.core", - "version": "0.1.4" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "7e32188a4dab669f" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "event": "Application Uninstalled", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "review_id": "some_review_id", - "product_id": "some_product_id_a", - "rating": 2.0, - "review_body": "Some Review Body" - }, - "userId": "12345", - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "somel" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "12345", - "event": "Application Uninstalled", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "somel" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Uninstalled", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "somel" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Uninstalled", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "somel" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Installed", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "somel" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Installed", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "somel" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Installed", - "userId": "12345", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Installed", - "userId": "12345", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Opened", - "userId": "12345", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "sample_device_token" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Opened", - "userId": "12345", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "sample_device_token" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Uninstalled", - "userId": "12345", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "ip": "0.0.0.0", - "age": 26 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "user_properties": { - "prop1": "val1", - "prop2": "val2" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "traits": { - "anonymousId": "anon-id", - "email": "test@gmail.com", - "address": { - "city": "NY", - "country": "USA", - "postalCode": 712136, - "state": "CA", - "street": "" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "12345", - "properties": { - "path": "/test", - "referrer": "Rudder", - "search": "abc", - "title": "Test Page", - "url": "www.rudderlabs.com" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "12345", - "event": "test track event", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "", - "event": "test track event", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "", - "event": "test track event", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "anonymousId": "7e32188a4dab669f", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "RudderAndroidClient", - "namespace": "com.torpedolabs.wynn.wscci.dev", - "version": "1.0" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android", - "token": "abcxyz" - }, - "library": { - "name": "com.rudderlabs.android.sdk.core", - "version": "0.1.4" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "7e32188a4dab669f" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "event": "Application Installed", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "review_id": "some_review_id", - "product_id": "some_product_id_a", - "rating": 2.0, - "review_body": "Some Review Body" - }, - "userId": "12345", - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "anonymousId": "7e32188a4dab669f", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "RudderAndroidClient", - "namespace": "com.torpedolabs.wynn.wscci.dev", - "version": "1.0" - }, - "device": { - "id": "7e32188a4dab669f", - "manufacturer": "Google", - "model": "Android SDK built for x86", - "name": "generic_x86", - "type": "android", - "token": "abcxyz" - }, - "library": { - "name": "com.rudderlabs.android.sdk.core", - "version": "0.1.4" - }, - "locale": "en-US", - "network": { - "carrier": "Android", - "bluetooth": false, - "cellular": true, - "wifi": true - }, - "os": { - "name": "Android", - "version": "9" - }, - "screen": { - "density": 420, - "height": 1794, - "width": 1080 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "7e32188a4dab669f" - }, - "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)" - }, - "event": "Application Uninstalled", - "integrations": { - "All": true - }, - "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383", - "properties": { - "review_id": "some_review_id", - "product_id": "some_product_id_a", - "rating": 2.0, - "review_body": "Some Review Body" - }, - "userId": "12345", - "originalTimestamp": "2020-01-09T10:01:53.558Z", - "type": "track", - "sentAt": "2020-01-09T10:02:03.257Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "somel" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "12345", - "event": "Application Uninstalled", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "somel" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Uninstalled", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "somel" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Installed", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "somel" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Installed", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "somel" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Installed", - "userId": "12345", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Installed", - "userId": "12345", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Opened", - "userId": "12345", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "sample_device_token" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Opened", - "userId": "12345", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "mobile", - "context": { - "device": { - "name": "test android", - "id": "sample_device_id", - "model": "some_model_device", - "type": "mobile", - "token": "sample_device_token" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "Application Uninstalled", - "userId": "12345", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "https://www.stoodi.com.br/exershgcios/upe/2019/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-seculo-xvi/", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "https://www.stoodi.com.br/exershgcios/upe/2019/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-seculo-xvi/", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "screen", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "https://www.stoodi.com.br/exercicios/upe/2016/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-seculo-xvi/", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "screen", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-10-14T11:15:18.300Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "event": "https://www.stoodi.com.br/exercicios/upe/2016/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-seculo-xvi/", - "properties": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "anonymousId": "dummy-100-anon", - "channel": "mobile", - "context": { - "app": { - "build": "173", - "name": "MyWallSt Debug", - "namespace": "com.rubicoin.Invest", - "version": "6.2" - }, - "device": { - "attTrackingStatus": 0, - "id": "6fdb629d-4f18-4f3e-943a-3f6f482b331e", - "manufacturer": "Apple", - "model": "iPhone", - "name": "Ales' iPhone", - "type": "iOS" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.0.19" - }, - "locale": "en-DE", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "14.8" - }, - "screen": { - "density": 3, - "height": 375, - "width": 812 - }, - "timezone": "Europe/Prague", - "traits": { - "anonymousId": "6fdb629d-4f18-4f3e-943a-3f6f482b331e", - "userId": "6a540d50-c4dc-4694-beca-d16de113a1c4-1618384106.8700438" - } - }, - "event": "Home: Viewed", - "integrations": { - "All": true - }, - "messageId": "1632314412-e724167f-13bd-455b-943d-dd765a7810fe", - "originalTimestamp": "2021-09-22T12:40:12.220Z", - "properties": {}, - "rudderId": "782cdb50-e2b9-45fc-9d22-07fe792dcfba", - "sentAt": "2021-09-22T12:40:14.453Z", - "type": "track", - "userId": "dummy-user-id-100" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "abc", - "apiKey": "xyz" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "ip": "0.0.0.0", - "age": 26 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "dummy-100-anon", - "userId": "dummy-user-id-100", - "integrations": { - "All": true - }, - "traits": { - "email": "test@gmail.com", - "address": { - "city": "NY", - "country": "USA", - "postalCode": 712136, - "state": "CA", - "street": "" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "datacenter": "EU", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "sources", - "context": { - "externalId": [ - { - "id": "xaviercharles@hotmail.com", - "identifierType": "email", - "type": "CUSTOMERIO-customers" - } - ], - "mappedToDestination": "true", - "sources": { - "batch_id": "3d6f7aa8-9b70-4759-970d-212e6714ad22", - "job_id": "1zDgnw7ZmHWR7gtY4niHYysL3zS/Syncher", - "job_run_id": "c5shebbh9jqg10k8d21g", - "task_id": "tt_10_rows", - "task_run_id": "c5shebbh9jqg10k8d220", - "version": "release.v1.6.8" - } - }, - "messageId": "d82a45e1-5a27-4c1d-af89-83bdbc6139d0", - "originalTimestamp": "2021-10-27T09:09:56.673Z", - "receivedAt": "2021-10-27T09:09:56.187Z", - "recordId": "3", - "request_ip": "10.1.85.177", - "rudderId": "5b19a81b-df60-4ccd-abf0-fcfe2b7db054", - "sentAt": "2021-10-27T09:09:56.673Z", - "timestamp": "2021-10-27T09:09:56.186Z", - "traits": { - "last_name": "xavier", - "first_name": "charles" - }, - "type": "identify", - "userId": "xaviercharles@hotmail.com" - }, - "destination": { - "ID": "1zgXcyv272oZA8HWqe7zInhJjPL", - "Name": "ere", - "DestinationDefinition": { - "ID": "1iVQr671C0E8MVpzvCEegsLM2J5", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU"], - "web": ["useNativeSDK"] - }, - "excludeKeys": [], - "includeKeys": ["apiKey", "siteID", "datacenterEU"], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative" - ], - "supportsVisualMapper": true, - "transformAt": "processor" - }, - "ResponseRules": null - }, - "Config": { - "apiKey": "a292d85ac36de15fc219", - "datacenter": "US", - "siteID": "eead090ab9e2e35004dc" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "channel": "sources", - "context": { - "externalId": [ - { - "id": "xaviercharles", - "identifierType": "id", - "type": "CUSTOMERIO-customers" - } - ], - "mappedToDestination": "true", - "sources": { - "batch_id": "3d6f7aa8-9b70-4759-970d-212e6714ad22", - "job_id": "1zDgnw7ZmHWR7gtY4niHYysL3zS/Syncher", - "job_run_id": "c5shebbh9jqg10k8d21g", - "task_id": "tt_10_rows", - "task_run_id": "c5shebbh9jqg10k8d220", - "version": "release.v1.6.8" - } - }, - "messageId": "d82a45e1-5a27-4c1d-af89-83bdbc6139d0", - "originalTimestamp": "2021-10-27T09:09:56.673Z", - "receivedAt": "2021-10-27T09:09:56.187Z", - "recordId": "3", - "request_ip": "10.1.85.177", - "rudderId": "5b19a81b-df60-4ccd-abf0-fcfe2b7db054", - "sentAt": "2021-10-27T09:09:56.673Z", - "traits": { - "last_name": "xavier", - "first_name": "charles" - }, - "type": "identify", - "userId": "xaviercharles" - }, - "destination": { - "ID": "1zgXcyv272oZA8HWqe7zInhJjPL", - "Name": "ere", - "DestinationDefinition": { - "ID": "1iVQr671C0E8MVpzvCEegsLM2J5", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU"], - "web": ["useNativeSDK"] - }, - "excludeKeys": [], - "includeKeys": ["apiKey", "siteID", "datacenterEU"], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative" - ], - "supportsVisualMapper": true, - "transformAt": "processor" - }, - "ResponseRules": null - }, - "Config": { - "apiKey": "a292d85ac36de15fc219", - "datacenter": "US", - "siteID": "eead090ab9e2e35004dc" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - }, - "libraries": [], - "request": { - "query": {} - } - }, - { - "message": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "zx_userid_missing", - "namespace": "org.reactjs.native.example.zx-userid-missing", - "version": "1.0" - }, - "device": { - "attTrackingStatus": 0, - "id": "5d727a3e-a72b-4d00-8078-669c1494791d", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPhone 13", - "token": "deviceToken", - "type": "iOS" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.3.1" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "15.2" - }, - "screen": { - "density": 3, - "height": 390, - "width": 844 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "email": "sofia@gmail.com", - "login_status": "Authenticated", - "name": "Sofia", - "phone_verified": 1, - "selected_city": "", - "selected_lat": 0, - "selected_long": 0, - "selected_neighborhood": "", - "selected_number": "", - "selected_postal_code": "", - "selected_state": "", - "selected_street": "", - "signed_up_for_newsletters": 0, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - } - }, - "event": "Application Opened", - "integrations": { - "All": true - }, - "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", - "timestamp": "2022-01-10T10:00:26.513Z", - "properties": { - "from_background": false - }, - "receivedAt": "2022-01-10T20:35:30.556+05:30", - "request_ip": "[::1]", - "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", - "sentAt": "2022-01-10T10:00:26.982Z", - "type": "track", - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "DESAU SAI", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "DESU SAI" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "zx_userid_missing", - "namespace": "org.reactjs.native.example.zx-userid-missing", - "version": "1.0" - }, - "device": { - "attTrackingStatus": 0, - "id": "5d727a3e-a72b-4d00-8078-669c1494791d", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPhone 13", - "type": "iOS" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.3.1" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "15.2" - }, - "screen": { - "density": 3, - "height": 390, - "width": 844 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "email": "sofia@gmail.com", - "login_status": "Authenticated", - "name": "Sofia", - "phone_verified": 1, - "selected_city": "", - "selected_lat": 0, - "selected_long": 0, - "selected_neighborhood": "", - "selected_number": "", - "selected_postal_code": "", - "selected_state": "", - "selected_street": "", - "signed_up_for_newsletters": 0, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - } - }, - "event": "Application Opened", - "integrations": { - "All": true - }, - "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", - "originalTimestamp": "2022-01-10T10:00:26.513Z", - "properties": { - "from_background": false - }, - "receivedAt": "2022-01-10T20:39:04.424+05:30", - "request_ip": "[::1]", - "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", - "sentAt": "2022-01-10T10:00:26.982Z", - "timestamp": "2022-01-10T20:39:03.955+05:30", - "type": "track", - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "DESAU SAI", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "DESU SAI" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "zx_userid_missing", - "namespace": "org.reactjs.native.example.zx-userid-missing", - "version": "1.0" - }, - "device": { - "attTrackingStatus": 0, - "id": "5d727a3e-a72b-4d00-8078-669c1494791d", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPhone 13", - "token": "deviceToken", - "type": "iOS" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.3.1" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "15.2" - }, - "screen": { - "density": 3, - "height": 390, - "width": 844 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "email": "sofia@gmail.com", - "login_status": "Authenticated", - "name": "Sofia", - "phone_verified": 1, - "selected_city": "", - "selected_lat": 0, - "selected_long": 0, - "selected_neighborhood": "", - "selected_number": "", - "selected_postal_code": "", - "selected_state": "", - "selected_street": "", - "signed_up_for_newsletters": 0 - } - }, - "event": "Application Opened", - "integrations": { - "All": true - }, - "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", - "originalTimestamp": "2022-01-10T10:00:26.513Z", - "properties": { - "from_background": false - }, - "receivedAt": "2022-01-10T20:41:30.970+05:30", - "request_ip": "[::1]", - "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", - "sentAt": "2022-01-10T10:00:26.982Z", - "type": "track", - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "DESAU SAI", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "DESU SAI" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "zx_userid_missing", - "namespace": "org.reactjs.native.example.zx-userid-missing", - "version": "1.0" - }, - "device": { - "attTrackingStatus": 0, - "id": "5d727a3e-a72b-4d00-8078-669c1494791d", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPhone 13", - "token": "deviceToken", - "type": "iOS" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.3.1" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "15.2" - }, - "screen": { - "density": 3, - "height": 390, - "width": 844 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "email": "sofia@gmail.com", - "login_status": "Authenticated", - "name": "Sofia", - "phone_verified": 1, - "selected_city": "", - "selected_lat": 0, - "selected_long": 0, - "selected_neighborhood": "", - "selected_number": "", - "selected_postal_code": "", - "selected_state": "", - "selected_street": "", - "signed_up_for_newsletters": 0, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - } - }, - "event": "Application Opened", - "integrations": { - "All": true - }, - "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", - "originalTimestamp": "2022-01-10T10:00:26.513Z", - "properties": { - "from_background": false - }, - "receivedAt": "2022-01-10T20:44:52.784+05:30", - "request_ip": "[::1]", - "rudderId": "0aef312c-0dc0-4a49-b613-4f33fb4e9b46", - "sentAt": "2022-01-10T10:00:26.982Z", - "type": "track" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "DESAU SAI", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "DESU SAI" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "zx_userid_missing", - "namespace": "org.reactjs.native.example.zx-userid-missing", - "version": "1.0" - }, - "device": { - "attTrackingStatus": 0, - "id": "5d727a3e-a72b-4d00-8078-669c1494791d", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPhone 13", - "token": "deviceToken", - "type": "iOS" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.3.1" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "15.2" - }, - "screen": { - "density": 3, - "height": 390, - "width": 844 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "email": "sofia@gmail.com", - "login_status": "Authenticated", - "name": "Sofia", - "phone_verified": 1, - "selected_city": "", - "selected_lat": 0, - "selected_long": 0, - "selected_neighborhood": "", - "selected_number": "", - "selected_postal_code": "", - "selected_state": "", - "selected_street": "", - "signed_up_for_newsletters": 0, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - } - }, - "event": "Application Opened", - "integrations": { - "All": true - }, - "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", - "timestamp": "2022-01-10T10:00:26.513Z", - "receivedAt": "2022-01-10T20:47:36.180+05:30", - "request_ip": "[::1]", - "rudderId": "0aef312c-0dc0-4a49-b613-4f33fb4e9b46", - "sentAt": "2022-01-10T10:00:26.982Z", - "type": "track" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "DESAU SAI", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "DESU SAI" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "zx_userid_missing", - "namespace": "org.reactjs.native.example.zx-userid-missing", - "version": "1.0" - }, - "device": { - "attTrackingStatus": 0, - "id": "5d727a3e-a72b-4d00-8078-669c1494791d", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPhone 13", - "token": "deviceToken", - "type": "iOS" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.3.1" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "15.2" - }, - "screen": { - "density": 3, - "height": 390, - "width": 844 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "email": "sofia@gmail.com", - "login_status": "Authenticated", - "name": "Sofia", - "phone_verified": 1, - "selected_city": "", - "selected_lat": 0, - "selected_long": 0, - "selected_neighborhood": "", - "selected_number": "", - "selected_postal_code": "", - "selected_state": "", - "selected_street": "", - "signed_up_for_newsletters": 0, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - } - }, - "event": "device_token_registered", - "integrations": { - "All": true - }, - "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", - "originalTimestamp": "2022-01-10T10:00:26.513Z", - "properties": { - "from_background": false - }, - "receivedAt": "2022-01-10T20:49:05.795+05:30", - "request_ip": "[::1]", - "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", - "sentAt": "2022-01-10T10:00:26.982Z", - "type": "track", - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "DESAU SAI", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "DESU SAI" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "zx_userid_missing", - "namespace": "org.reactjs.native.example.zx-userid-missing", - "version": "1.0" - }, - "device": { - "attTrackingStatus": 0, - "id": "5d727a3e-a72b-4d00-8078-669c1494791d", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPhone 13", - "type": "iOS" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.3.1" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "15.2" - }, - "screen": { - "density": 3, - "height": 390, - "width": 844 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "email": "sofia@gmail.com", - "login_status": "Authenticated", - "name": "Sofia", - "phone_verified": 1, - "selected_city": "", - "selected_lat": 0, - "selected_long": 0, - "selected_neighborhood": "", - "selected_number": "", - "selected_postal_code": "", - "selected_state": "", - "selected_street": "", - "signed_up_for_newsletters": 0, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - } - }, - "event": "device_token_registered", - "integrations": { - "All": true - }, - "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", - "originalTimestamp": "2022-01-10T10:00:26.513Z", - "properties": { - "from_background": false - }, - "receivedAt": "2022-01-10T20:50:17.090+05:30", - "request_ip": "[::1]", - "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", - "sentAt": "2022-01-10T10:00:26.982Z", - "timestamp": "2022-01-10T20:50:16.621+05:30", - "type": "track", - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "DESAU SAI", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "DESU SAI" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "zx_userid_missing", - "namespace": "org.reactjs.native.example.zx-userid-missing", - "version": "1.0" - }, - "device": { - "attTrackingStatus": 0, - "id": "5d727a3e-a72b-4d00-8078-669c1494791d", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPhone 13", - "token": "deviceToken", - "type": "iOS" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.3.1" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "15.2" - }, - "screen": { - "density": 3, - "height": 390, - "width": 844 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "email": "sofia@gmail.com", - "login_status": "Authenticated", - "name": "Sofia", - "phone_verified": 1, - "selected_city": "", - "selected_lat": 0, - "selected_long": 0, - "selected_neighborhood": "", - "selected_number": "", - "selected_postal_code": "", - "selected_state": "", - "selected_street": "", - "signed_up_for_newsletters": 0 - } - }, - "event": "device_token_registered", - "integrations": { - "All": true - }, - "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", - "originalTimestamp": "2022-01-10T10:00:26.513Z", - "properties": { - "from_background": false - }, - "receivedAt": "2022-01-10T20:52:19.147+05:30", - "request_ip": "[::1]", - "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", - "sentAt": "2022-01-10T10:00:26.982Z", - "timestamp": "2022-01-10T20:52:18.678+05:30", - "type": "track", - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "DESAU SAI", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "DESU SAI" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "zx_userid_missing", - "namespace": "org.reactjs.native.example.zx-userid-missing", - "version": "1.0" - }, - "device": { - "attTrackingStatus": 0, - "id": "5d727a3e-a72b-4d00-8078-669c1494791d", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPhone 13", - "token": "deviceToken", - "type": "iOS" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.3.1" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "15.2" - }, - "screen": { - "density": 3, - "height": 390, - "width": 844 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "email": "sofia@gmail.com", - "login_status": "Authenticated", - "name": "Sofia", - "phone_verified": 1, - "selected_city": "", - "selected_lat": 0, - "selected_long": 0, - "selected_neighborhood": "", - "selected_number": "", - "selected_postal_code": "", - "selected_state": "", - "selected_street": "", - "signed_up_for_newsletters": 0, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - } - }, - "event": "device_token_registered", - "integrations": { - "All": true - }, - "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", - "originalTimestamp": "2022-01-10T10:00:26.513Z", - "properties": { - "from_background": false - }, - "receivedAt": "2022-01-10T20:53:43.680+05:30", - "request_ip": "[::1]", - "rudderId": "0aef312c-0dc0-4a49-b613-4f33fb4e9b46", - "sentAt": "2022-01-10T10:00:26.982Z", - "type": "track" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "DESAU SAI", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "DESU SAI" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "zx_userid_missing", - "namespace": "org.reactjs.native.example.zx-userid-missing", - "version": "1.0" - }, - "device": { - "attTrackingStatus": 0, - "id": "5d727a3e-a72b-4d00-8078-669c1494791d", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPhone 13", - "token": "deviceToken", - "type": "iOS" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.3.1" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "15.2" - }, - "screen": { - "density": 3, - "height": 390, - "width": 844 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "email": "sofia@gmail.com", - "login_status": "Authenticated", - "name": "Sofia", - "phone_verified": 1, - "selected_city": "", - "selected_lat": 0, - "selected_long": 0, - "selected_neighborhood": "", - "selected_number": "", - "selected_postal_code": "", - "selected_state": "", - "selected_street": "", - "signed_up_for_newsletters": 0, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - } - }, - "event": "device_token_registered", - "integrations": { - "All": true - }, - "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", - "originalTimestamp": "2022-01-10T10:00:26.513Z", - "receivedAt": "2022-01-10T20:55:03.845+05:30", - "request_ip": "[::1]", - "rudderId": "0aef312c-0dc0-4a49-b613-4f33fb4e9b46", - "sentAt": "2022-01-10T10:00:26.982Z", - "type": "track" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "DESAU SAI", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "DESU SAI" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "description": "check for ipados apple family and default it to ios", - "message": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "channel": "mobile", - "context": { - "app": { - "build": "1", - "name": "zx_userid_missing", - "namespace": "org.reactjs.native.example.zx-userid-missing", - "version": "1.0" - }, - "device": { - "attTrackingStatus": 0, - "id": "5d727a3e-a72b-4d00-8078-669c1494791d", - "manufacturer": "Apple", - "model": "iPhone", - "name": "iPhone 13", - "token": "deviceToken", - "type": "ipados" - }, - "library": { - "name": "rudder-ios-library", - "version": "1.3.1" - }, - "locale": "en-US", - "network": { - "bluetooth": false, - "carrier": "unavailable", - "cellular": false, - "wifi": true - }, - "os": { - "name": "iOS", - "version": "15.2" - }, - "screen": { - "density": 3, - "height": 390, - "width": 844 - }, - "timezone": "Asia/Kolkata", - "traits": { - "anonymousId": "5d727a3e-a72b-4d00-8078-669c1494791d", - "email": "sofia@gmail.com", - "login_status": "Authenticated", - "name": "Sofia", - "phone_verified": 1, - "selected_city": "", - "selected_lat": 0, - "selected_long": 0, - "selected_neighborhood": "", - "selected_number": "", - "selected_postal_code": "", - "selected_state": "", - "selected_street": "", - "signed_up_for_newsletters": 0 - } - }, - "event": "Application Opened", - "integrations": { - "All": true - }, - "messageId": "1641808826-28d23237-f4f0-4f65-baa2-99141e422a8f", - "originalTimestamp": "2022-01-10T10:00:26.513Z", - "properties": { - "from_background": false - }, - "receivedAt": "2022-01-10T20:41:30.970+05:30", - "request_ip": "[::1]", - "rudderId": "423cdf83-0448-4a99-b14d-36fcc63e6ea0", - "sentAt": "2022-01-10T10:00:26.982Z", - "type": "track", - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "DESAU SAI", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "DESU SAI" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "description": "successful group call with identify action", - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.0-beta.2" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.0-beta.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "groupId": "group@1", - "integrations": { - "All": true - }, - "traits": { - "domainNames": "rudderstack.com", - "email": "help@rudderstack.com", - "name": "rudderstack", - "action": "identify" - }, - "type": "group", - "userId": "user@1" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "ef32c3f60fb98f39ef35", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "c0efdbd20b9fbe24a7e2" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "description": "successful group call with delete action", - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.0-beta.2" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.0-beta.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "groupId": "group@1", - "integrations": { - "All": true - }, - "traits": { - "domainNames": "rudderstack.com", - "email": "help@rudderstack.com", - "name": "rudderstack", - "action": "delete" - }, - "type": "group", - "userId": "user@1" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "ef32c3f60fb98f39ef35", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "c0efdbd20b9fbe24a7e2" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "description": "successful group call with add_relationships action", - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.0-beta.2" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.0-beta.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "test@rudderstack.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "groupId": "group@1", - "integrations": { - "All": true - }, - "traits": { - "domainNames": "rudderstack.com", - "email": "help@rudderstack.com", - "name": "rudderstack", - "action": "add_relationships" - }, - "type": "group", - "userId": "user@1" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "ef32c3f60fb98f39ef35", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "c0efdbd20b9fbe24a7e2" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "description": "successful group call with delete_relationships action", - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.0-beta.2" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.0-beta.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "traits": { - "email": "test@rudderstack.com" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "groupId": "group@1", - "integrations": { - "All": true - }, - "traits": { - "domainNames": "rudderstack.com", - "email": "help@rudderstack.com", - "name": "rudderstack", - "action": "delete_relationships" - }, - "type": "group", - "userId": "user@1" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "ef32c3f60fb98f39ef35", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "c0efdbd20b9fbe24a7e2" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "description": "successful group call with userId and groupId as an integer", - "message": { - "type": "group", - "header": { - "content-type": "application/json; charset=utf-8" - }, - "sentAt": "2023-03-28T09:36:49.882Z", - "traits": { - "city": "Frankfurt", - "name": "rudder test", - "state": "Hessen", - "isFake": true, - "address": "Solmsstraße 83", - "country": "DE", - "website": "http://www.rudderstack.com", - "industry": "Waste and recycling", - "postcode": "60486", - "whiteLabel": "rudderlabs", - "maxNbJobBoards": 2, - "organisationId": 306, - "pricingPackage": "packageExpert", - "dateProTrialEnd": "2022-08-31T00:00:00+00:00", - "isProTrialActive": true, - "datetimeRegistration": "2020-07-01T10:23:41+00:00", - "isPersonnelServiceProvider": false - }, - "userId": 432, - "channel": "server", - "context": { - "library": { - "name": "rudder-analytics-php", - "version": "2.0.1", - "consumer": "LibCurl" - } - }, - "groupId": 306, - "rudderId": "f5b46a12-2dab-4e24-a127-7316eed414fc", - "messageId": "7032394c-e813-4737-bf52-622dbcefe849", - "receivedAt": "2023-03-28T09:36:48.296Z", - "request_ip": "18.195.235.225", - "originalTimestamp": "2023-03-28T09:36:49.882Z" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "ef32c3f60fb98f39ef35", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "c0efdbd20b9fbe24a7e2" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "description": "successful group call with userId in email format ", - "message": { - "type": "group", - "header": { - "content-type": "application/json; charset=utf-8" - }, - "sentAt": "2023-03-28T09:36:49.882Z", - "traits": { - "city": "Frankfurt", - "name": "rudder test", - "state": "Hessen", - "isFake": true, - "address": "Solmsstraße 83", - "country": "DE", - "website": "http://www.rudderstack.com", - "industry": "Waste and recycling", - "postcode": "60486", - "whiteLabel": "rudderlabs", - "maxNbJobBoards": 2, - "organisationId": 306, - "pricingPackage": "packageExpert", - "dateProTrialEnd": "2022-08-31T00:00:00+00:00", - "isProTrialActive": true, - "datetimeRegistration": "2020-07-01T10:23:41+00:00", - "isPersonnelServiceProvider": false - }, - "userId": "abc@xyz.com", - "channel": "server", - "context": { - "library": { - "name": "rudder-analytics-php", - "version": "2.0.1", - "consumer": "LibCurl" - } - }, - "groupId": 306, - "rudderId": "f5b46a12-2dab-4e24-a127-7316eed414fc", - "messageId": "7032394c-e813-4737-bf52-622dbcefe849", - "receivedAt": "2023-03-28T09:36:48.296Z", - "request_ip": "18.195.235.225", - "originalTimestamp": "2023-03-28T09:36:49.882Z" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "ef32c3f60fb98f39ef35", - "datacenter": "US", - "deviceTokenEventName": "device_token_registered", - "siteID": "c0efdbd20b9fbe24a7e2" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "description": "successful group call with eu as data center", - "message": { - "type": "group", - "header": { - "content-type": "application/json; charset=utf-8" - }, - "sentAt": "2023-03-28T09:36:49.882Z", - "traits": { - "city": "Frankfurt", - "name": "rudder test", - "state": "Hessen", - "isFake": true, - "address": "Solmsstraße 83", - "country": "DE", - "website": "http://www.rudderstack.com", - "industry": "Waste and recycling", - "postcode": "60486", - "whiteLabel": "rudderlabs", - "maxNbJobBoards": 2, - "organisationId": 306, - "pricingPackage": "packageExpert", - "dateProTrialEnd": "2022-08-31T00:00:00+00:00", - "isProTrialActive": true, - "datetimeRegistration": "2020-07-01T10:23:41+00:00", - "isPersonnelServiceProvider": false - }, - "userId": 432, - "channel": "server", - "context": { - "library": { - "name": "rudder-analytics-php", - "version": "2.0.1", - "consumer": "LibCurl" - } - }, - "groupId": 306, - "rudderId": "f5b46a12-2dab-4e24-a127-7316eed414fc", - "messageId": "7032394c-e813-4737-bf52-622dbcefe849", - "receivedAt": "2023-03-28T09:36:48.296Z", - "request_ip": "18.195.235.225", - "originalTimestamp": "2023-03-28T09:36:49.882Z" - }, - "destination": { - "ID": "23Mi76khsFhY7bh9ZyRcvR3pHDt", - "Name": "Customer IO Dev", - "DestinationDefinition": { - "ID": "23MgSlHXsPLsiH7SbW7IzCP32fn", - "Name": "CUSTOMERIO", - "DisplayName": "Customer IO", - "Config": { - "destConfig": { - "defaultConfig": ["apiKey", "siteID", "datacenterEU", "deviceTokenEventName"], - "web": ["useNativeSDK", "blackListedEvents", "whiteListedEvents"] - }, - "excludeKeys": [], - "includeKeys": [ - "apiKey", - "siteID", - "datacenterEU", - "blackListedEvents", - "whiteListedEvents" - ], - "saveDestinationResponse": true, - "secretKeys": [], - "supportedMessageTypes": ["identify", "page", "screen", "track"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "warehouse", - "reactnative", - "flutter", - "cordova" - ], - "supportsVisualMapper": true, - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "apiKey": "ef32c3f60fb98f39ef35", - "datacenter": "EU", - "deviceTokenEventName": "device_token_registered", - "siteID": "c0efdbd20b9fbe24a7e2" - }, - "Enabled": true, - "Transformations": [], - "IsProcessorEnabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "12345", - "properties": { - "path": "/test", - "referrer": "Rudder", - "search": "abc", - "title": "Test Page", - "url": "www.rudderlabs.com" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "12345", - "properties": { - "path": "/test", - "referrer": "Rudder", - "search": "abc", - "title": "Test Page" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "userId": "12345", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "datacenter": "US", - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - } -] diff --git a/test/__tests__/data/customerio_output.json b/test/__tests__/data/customerio_output.json deleted file mode 100644 index 3a0b45ebb6..0000000000 --- a/test/__tests__/data/customerio_output.json +++ /dev/null @@ -1,1779 +0,0 @@ -[ - { - "message": "Event is a required field and should be a string" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "email": "updated_email@example.com", - "id": "updated-id-value" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/cio_1234", - "userId": "cio_1234", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT", - "statusCode": 200 - }, - { - "message": "apiKey not found in Configs" - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "_timestamp": 1571043797, - "anonymous_id": "123456", - "city": "NY", - "state": "CA", - "street": "", - "prop1": "val1", - "prop2": "val2", - "country": "USA", - "postalCode": 712136, - "email": "test@gmail.com", - "dot.name": "Arnab Pal" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/123456", - "userId": "123456", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT", - "statusCode": 200 - }, - { - "message": "userId or email is not present", - "statusCode": 400 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "_timestamp": 1571043797, - "anonymous_id": "123456", - "city": "NY", - "country": "USA", - "dot.name": "Arnab Pal", - "email": "test@gmail.com", - "postalCode": 712136, - "prop1": "val1", - "prop2": "val2", - "state": "CA", - "street": "" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/test@gmail.com", - "userId": "123456", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "page", - "data": { - "url": "www.rudderlabs.com", - "path": "/test", - "search": "abc", - "referrer": "Rudder", - "title": "Test Page" - }, - "timestamp": 1571051718, - "name": "ApplicationLoaded" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/events", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "event", - "data": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "user_time_spent": 50000 - }, - "timestamp": 1571051718, - "name": "test track event" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/events", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "event", - "data": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "user_time_spent": 50000 - }, - "timestamp": 1571051718, - "name": "test track event" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/test@rudderstack.com/events", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "event", - "anonymous_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "data": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "user_time_spent": 50000 - }, - "timestamp": 1571051718, - "name": "test track event" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/events", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "device": { - "review_body": "Some Review Body", - "rating": 2, - "review_id": "some_review_id", - "last_used": 1578564113, - "platform": "android", - "id": "abcxyz", - "product_id": "some_product_id_a" - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/devices", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": {}, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/devices/abcxyz", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "DELETE", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": {}, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/devices/somel", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "DELETE", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": {}, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/test@rudderstack.com/devices/somel", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "DELETE", - "statusCode": 200 - }, - { - "message": "userId/email or device_token not present", - "statusCode": 400 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "device": { - "id": "somel", - "last_used": 1571051718, - "platform": "mobile", - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "user_time_spent": 50000 - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/test@rudderstack.com/devices", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "anonymous_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "data": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "user_time_spent": 50000 - }, - "name": "Application Installed", - "timestamp": 1571051718, - "type": "event" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/events", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "device": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "last_used": 1571051718, - "user_time_spent": 50000, - "platform": "mobile", - "id": "somel" - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/devices", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "event", - "data": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "user_time_spent": 50000 - }, - "timestamp": 1571051718, - "name": "Application Installed" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/events", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "event", - "data": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "user_time_spent": 50000 - }, - "timestamp": 1571051718, - "name": "Application Opened" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/events", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "device": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "last_used": 1571051718, - "user_time_spent": 50000, - "platform": "mobile", - "id": "sample_device_token" - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/devices", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": {}, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/devices/sample_device_token", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "DELETE", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "_timestamp": 1571043797, - "anonymous_id": "123456", - "city": "NY", - "state": "CA", - "street": "", - "prop1": "val1", - "prop2": "val2", - "country": "USA", - "postalCode": 712136, - "email": "test@gmail.com" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/123456", - "userId": "123456", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "page", - "data": { - "url": "www.rudderlabs.com", - "path": "/test", - "search": "abc", - "referrer": "Rudder", - "title": "Test Page" - }, - "timestamp": 1571051718, - "name": "ApplicationLoaded" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/events", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "event", - "data": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "user_time_spent": 50000 - }, - "timestamp": 1571051718, - "name": "test track event" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/events", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "event", - "data": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "user_time_spent": 50000 - }, - "timestamp": 1571051718, - "name": "test track event" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/test@rudderstack.com/events", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "event", - "anonymous_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "data": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "user_time_spent": 50000 - }, - "timestamp": 1571051718, - "name": "test track event" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/events", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "device": { - "review_body": "Some Review Body", - "rating": 2, - "review_id": "some_review_id", - "last_used": 1578564113, - "platform": "android", - "id": "abcxyz", - "product_id": "some_product_id_a" - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/devices", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": {}, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/devices/abcxyz", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "DELETE", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": {}, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/devices/somel", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "DELETE", - "statusCode": 200 - }, - { - "message": "userId/email or device_token not present", - "statusCode": 400 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "device": { - "id": "somel", - "last_used": 1571051718, - "platform": "mobile", - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/test@rudderstack.com/devices", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "anonymous_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "data": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "name": "Application Installed", - "timestamp": 1571051718, - "type": "event" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/events", - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "device": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "last_used": 1571051718, - "user_time_spent": 50000, - "platform": "mobile", - "id": "somel" - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/devices", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "event", - "data": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "user_time_spent": 50000 - }, - "timestamp": 1571051718, - "name": "Application Installed" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/events", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "event", - "data": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "user_time_spent": 50000 - }, - "timestamp": 1571051718, - "name": "Application Opened" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/events", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "device": { - "user_actual_id": 12345, - "user_actual_role": "system_admin", - "last_used": 1571051718, - "user_time_spent": 50000, - "platform": "mobile", - "id": "sample_device_token" - } - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/devices", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "PUT", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": {}, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track-eu.customer.io/api/v1/customers/12345/devices/sample_device_token", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "DELETE", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v1/events", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50 - }, - "anonymous_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "name": "https://www.stoodi.com.br/exershgcios/upe/2019/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-s", - "type": "event", - "timestamp": 1571051718 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v1/customers/test@rudderstack.com/events", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50 - }, - "name": "https://www.stoodi.com.br/exershgcios/upe/2019/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-seculo-xvi/", - "type": "event", - "timestamp": 1571051718 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v1/events", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "anonymous_id": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "name": "Viewed https://www.stoodi.com.br/exercicios/upe/2016/questao/gregorio-de-matos-poeta-baiano-q Screen", - "type": "event", - "timestamp": 1571051718 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v1/customers/test@rudderstack.com/events", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "user_actual_role": "system_admin", - "user_actual_id": 12345, - "user_time_spent": 50000 - }, - "name": "Viewed https://www.stoodi.com.br/exercicios/upe/2016/questao/gregorio-de-matos-poeta-baiano-que-viveu-no-seculo-xvi/ Screen", - "type": "event", - "timestamp": 1571051718 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v1/customers/dummy-user-id-100/events", - "headers": { - "Authorization": "Basic YWJjOnh5eg==" - }, - "params": {}, - "body": { - "JSON": { - "data": {}, - "name": "Home: Viewed", - "type": "event", - "timestamp": 1632314412 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "dummy-user-id-100", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track-eu.customer.io/api/v1/customers/dummy-user-id-100", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "params": {}, - "body": { - "JSON": { - "city": "NY", - "country": "USA", - "postalCode": 712136, - "state": "CA", - "street": "", - "email": "test@gmail.com", - "_timestamp": 1571043797, - "anonymous_id": "dummy-100-anon" - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "dummy-user-id-100", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track.customer.io/api/v1/customers/xaviercharles@hotmail.com", - "headers": { - "Authorization": "Basic ZWVhZDA5MGFiOWUyZTM1MDA0ZGM6YTI5MmQ4NWFjMzZkZTE1ZmMyMTk=" - }, - "params": {}, - "body": { - "JSON": { - "last_name": "xavier", - "first_name": "charles", - "email": "xaviercharles@hotmail.com", - "_timestamp": 1635325796 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "xaviercharles@hotmail.com", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track.customer.io/api/v1/customers/xaviercharles", - "headers": { - "Authorization": "Basic ZWVhZDA5MGFiOWUyZTM1MDA0ZGM6YTI5MmQ4NWFjMzZkZTE1ZmMyMTk=" - }, - "params": {}, - "body": { - "JSON": { - "last_name": "xavier", - "first_name": "charles", - "id": "xaviercharles", - "_timestamp": 1635325796 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "xaviercharles", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", - "headers": { - "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" - }, - "params": {}, - "body": { - "JSON": { - "device": { - "from_background": false, - "id": "deviceToken", - "platform": "ios", - "last_used": 1641808826 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/events", - "headers": { - "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "from_background": false - }, - "name": "Application Opened", - "type": "event", - "timestamp": 1641827343 - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", - "headers": { - "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" - }, - "params": {}, - "body": { - "JSON": { - "device": { - "from_background": false, - "id": "deviceToken", - "platform": "ios", - "last_used": 1641808826 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", - "headers": { - "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" - }, - "params": {}, - "body": { - "JSON": { - "device": { - "from_background": false, - "id": "deviceToken", - "platform": "ios", - "last_used": 1641808826 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", - "headers": { - "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" - }, - "params": {}, - "body": { - "JSON": { - "device": { - "id": "deviceToken", - "platform": "ios", - "last_used": 1641808826 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", - "headers": { - "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" - }, - "params": {}, - "body": { - "JSON": { - "device": { - "from_background": false, - "id": "deviceToken", - "platform": "ios", - "last_used": 1641808826 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/events", - "headers": { - "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "from_background": false - }, - "name": "device_token_registered", - "type": "event", - "timestamp": 1641828016 - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", - "headers": { - "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" - }, - "params": {}, - "body": { - "JSON": { - "device": { - "from_background": false, - "id": "deviceToken", - "platform": "ios", - "last_used": 1641828138 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", - "headers": { - "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" - }, - "params": {}, - "body": { - "JSON": { - "device": { - "from_background": false, - "id": "deviceToken", - "platform": "ios", - "last_used": 1641808826 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", - "headers": { - "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" - }, - "params": {}, - "body": { - "JSON": { - "device": { - "id": "deviceToken", - "platform": "ios", - "last_used": 1641808826 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track.customer.io/api/v1/customers/e91e0378-63fe-11ec-82ac-0a028ee659c3/devices", - "headers": { - "Authorization": "Basic REVTVSBTQUk6REVTQVUgU0FJ" - }, - "params": {}, - "body": { - "JSON": { - "device": { - "from_background": false, - "id": "deviceToken", - "platform": "ios", - "last_used": 1641808826 - } - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "e91e0378-63fe-11ec-82ac-0a028ee659c3", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v2/batch", - "headers": { - "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "type": "object", - "action": "identify", - "attributes": { - "name": "rudderstack", - "email": "help@rudderstack.com", - "domainNames": "rudderstack.com" - }, - "identifiers": { - "object_id": "group@1", - "object_type_id": "1" - }, - "cio_relationships": [ - { - "identifiers": { - "id": "user@1" - } - } - ] - }, - "JSON_ARRAY": {} - }, - "files": {}, - "userId": "user@1", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v2/batch", - "headers": { - "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "type": "object", - "action": "delete", - "attributes": { - "name": "rudderstack", - "email": "help@rudderstack.com", - "domainNames": "rudderstack.com" - }, - "identifiers": { - "object_id": "group@1", - "object_type_id": "1" - }, - "cio_relationships": [ - { - "identifiers": { - "id": "user@1" - } - } - ] - }, - "JSON_ARRAY": {} - }, - "files": {}, - "userId": "user@1", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v2/batch", - "headers": { - "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "type": "object", - "action": "add_relationships", - "attributes": { - "name": "rudderstack", - "email": "help@rudderstack.com", - "domainNames": "rudderstack.com" - }, - "identifiers": { - "object_id": "group@1", - "object_type_id": "1" - }, - "cio_relationships": [ - { - "identifiers": { - "id": "user@1" - } - } - ] - }, - "JSON_ARRAY": {} - }, - "files": {}, - "userId": "user@1", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v2/batch", - "headers": { - "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "type": "object", - "action": "delete_relationships", - "attributes": { - "name": "rudderstack", - "email": "help@rudderstack.com", - "domainNames": "rudderstack.com" - }, - "identifiers": { - "object_id": "group@1", - "object_type_id": "1" - }, - "cio_relationships": [ - { - "identifiers": { - "id": "user@1" - } - } - ] - }, - "JSON_ARRAY": {} - }, - "files": {}, - "userId": "user@1", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v2/batch", - "headers": { - "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "type": "object", - "action": "identify", - "attributes": { - "city": "Frankfurt", - "name": "rudder test", - "state": "Hessen", - "isFake": true, - "address": "Solmsstraße 83", - "country": "DE", - "website": "http://www.rudderstack.com", - "industry": "Waste and recycling", - "postcode": "60486", - "whiteLabel": "rudderlabs", - "maxNbJobBoards": 2, - "organisationId": 306, - "pricingPackage": "packageExpert", - "dateProTrialEnd": "2022-08-31T00:00:00+00:00", - "isProTrialActive": true, - "datetimeRegistration": "2020-07-01T10:23:41+00:00", - "isPersonnelServiceProvider": false - }, - "identifiers": { - "object_id": "306", - "object_type_id": "1" - }, - "cio_relationships": [ - { - "identifiers": { - "id": "432" - } - } - ] - }, - "JSON_ARRAY": {} - }, - "files": {}, - "userId": 432, - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v2/batch", - "headers": { - "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "type": "object", - "action": "identify", - "attributes": { - "city": "Frankfurt", - "name": "rudder test", - "state": "Hessen", - "isFake": true, - "address": "Solmsstraße 83", - "country": "DE", - "website": "http://www.rudderstack.com", - "industry": "Waste and recycling", - "postcode": "60486", - "whiteLabel": "rudderlabs", - "maxNbJobBoards": 2, - "organisationId": 306, - "pricingPackage": "packageExpert", - "dateProTrialEnd": "2022-08-31T00:00:00+00:00", - "isProTrialActive": true, - "datetimeRegistration": "2020-07-01T10:23:41+00:00", - "isPersonnelServiceProvider": false - }, - "identifiers": { - "object_id": "306", - "object_type_id": "1" - }, - "cio_relationships": [ - { - "identifiers": { - "email": "abc@xyz.com" - } - } - ] - }, - "JSON_ARRAY": {} - }, - "files": {}, - "userId": "abc@xyz.com", - "statusCode": 200 - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track-eu.customer.io/api/v2/batch", - "headers": { - "Authorization": "Basic YzBlZmRiZDIwYjlmYmUyNGE3ZTI6ZWYzMmMzZjYwZmI5OGYzOWVmMzU=" - }, - "params": {}, - "body": { - "XML": {}, - "FORM": {}, - "JSON": { - "type": "object", - "action": "identify", - "attributes": { - "city": "Frankfurt", - "name": "rudder test", - "state": "Hessen", - "isFake": true, - "address": "Solmsstraße 83", - "country": "DE", - "website": "http://www.rudderstack.com", - "industry": "Waste and recycling", - "postcode": "60486", - "whiteLabel": "rudderlabs", - "maxNbJobBoards": 2, - "organisationId": 306, - "pricingPackage": "packageExpert", - "dateProTrialEnd": "2022-08-31T00:00:00+00:00", - "isProTrialActive": true, - "datetimeRegistration": "2020-07-01T10:23:41+00:00", - "isPersonnelServiceProvider": false - }, - "identifiers": { - "object_id": "306", - "object_type_id": "1" - }, - "cio_relationships": [ - { - "identifiers": { - "id": "432" - } - } - ] - }, - "JSON_ARRAY": {} - }, - "files": {}, - "userId": 432, - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "page", - "data": { - "url": "www.rudderlabs.com", - "path": "/test", - "search": "abc", - "referrer": "Rudder", - "title": "Test Page" - }, - "timestamp": 1571051718, - "name": "www.rudderlabs.com" - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/events", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "page", - "data": { - "path": "/test", - "search": "abc", - "referrer": "Rudder", - "title": "Test Page" - }, - "timestamp": 1571051718 - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/events", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - }, - { - "body": { - "XML": {}, - "JSON_ARRAY": {}, - "JSON": { - "type": "page", - "timestamp": 1571051718 - }, - "FORM": {} - }, - "files": {}, - "endpoint": "https://track.customer.io/api/v1/customers/12345/events", - "userId": "12345", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "version": "1", - "params": {}, - "type": "REST", - "method": "POST", - "statusCode": 200 - } -] diff --git a/test/__tests__/data/customerio_router_input.json b/test/__tests__/data/customerio_router_input.json deleted file mode 100644 index 68861a1fa0..0000000000 --- a/test/__tests__/data/customerio_router_input.json +++ /dev/null @@ -1,233 +0,0 @@ -[ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "anonymousId": "123456", - "email": "test@rudderstack.com", - "address": { - "city": "kolkata", - "country": "India", - "postalCode": 712136, - "state": "WB", - "street": "" - }, - "ip": "0.0.0.0", - "age": 26 - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "user_properties": { - "prop1": "val1", - "prop2": "val2" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-10-14T09:03:17.562Z", - "anonymousId": "123456", - "userId": "123456", - "integrations": { - "All": true - }, - "traits": { - "anonymousId": "anon-id", - "email": "test@gmail.com", - "dot.name": "Arnab Pal", - "address": { - "city": "NY", - "country": "USA", - "postalCode": 712136, - "state": "CA", - "street": "" - } - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "datacenterEU": false, - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com", - "anonymousId": "12345" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-10-14T11:15:18.299Z", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/test", - "referrer": "Rudder", - "search": "abc", - "title": "Test Page", - "url": "www.rudderlabs.com" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "datacenterEU": false, - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.0-beta.2" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.0-beta.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "groupId": "group@1", - "integrations": { - "All": true - }, - "traits": { - "domainNames": "rudderstack.com", - "email": "help@rudderstack.com", - "name": "rudderstack", - "action": "identify" - }, - "type": "group", - "userId": "user@1" - }, - "metadata": { - "jobId": 3 - }, - "destination": { - "Config": { - "datacenterEU": false, - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.0-beta.2" - }, - "ip": "0.0.0.0", - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.0-beta.2" - }, - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" - }, - "groupId": "group@1", - "integrations": { - "All": true - }, - "traits": { - "domainNames": "rudderstack.com", - "email": "help@rudderstack.com", - "name": "rudderstack", - "action": "delete" - }, - "type": "group", - "userId": "user@1" - }, - "metadata": { - "jobId": 4 - }, - "destination": { - "Config": { - "datacenterEU": false, - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - } -] diff --git a/test/__tests__/data/customerio_router_output.json b/test/__tests__/data/customerio_router_output.json deleted file mode 100644 index 7208e64cbd..0000000000 --- a/test/__tests__/data/customerio_router_output.json +++ /dev/null @@ -1,175 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "PUT", - "endpoint": "https://track.customer.io/api/v1/customers/123456", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "params": {}, - "body": { - "JSON": { - "anonymous_id": "123456", - "city": "NY", - "country": "USA", - "postalCode": 712136, - "state": "CA", - "street": "", - "email": "test@gmail.com", - "dot.name": "Arnab Pal", - "prop1": "val1", - "prop2": "val2", - "_timestamp": 1571043797 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "123456", - "statusCode": 200 - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "datacenterEU": false, - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v1/customers/12345/events", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=" - }, - "params": {}, - "body": { - "JSON": { - "data": { - "path": "/test", - "referrer": "Rudder", - "search": "abc", - "title": "Test Page", - "url": "www.rudderlabs.com" - }, - "name": "ApplicationLoaded", - "type": "page", - "timestamp": 1571051718 - }, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": {} - }, - "files": {}, - "userId": "12345", - "statusCode": 200 - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "datacenterEU": false, - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://track.customer.io/api/v2/batch", - "headers": { - "Authorization": "Basic NDZiZTU0NzY4ZTdkNDlhYjI2Mjg6ZHVtbXlBcGlLZXk=", - "Content-Type": "application/json" - }, - "params": {}, - "body": { - "FORM": {}, - "XML": {}, - "JSON": { - "batch": [ - { - "type": "object", - "action": "identify", - "attributes": { - "name": "rudderstack", - "email": "help@rudderstack.com", - "domainNames": "rudderstack.com" - }, - "identifiers": { - "object_id": "group@1", - "object_type_id": "1" - }, - "cio_relationships": [ - { - "identifiers": { - "id": "user@1" - } - } - ] - }, - { - "type": "object", - "action": "delete", - "attributes": { - "name": "rudderstack", - "email": "help@rudderstack.com", - "domainNames": "rudderstack.com" - }, - "identifiers": { - "object_id": "group@1", - "object_type_id": "1" - }, - "cio_relationships": [ - { - "identifiers": { - "id": "user@1" - } - } - ] - } - ] - }, - "JSON_ARRAY": {} - }, - "files": {} - }, - "metadata": [ - { - "jobId": 3 - }, - { - "jobId": 4 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "datacenterEU": false, - "siteID": "46be54768e7d49ab2628", - "apiKey": "dummyApiKey" - } - } - } -] diff --git a/test/__tests__/data/facebook_offline_conversions.json b/test/__tests__/data/facebook_offline_conversions.json deleted file mode 100644 index 2e205bc185..0000000000 --- a/test/__tests__/data/facebook_offline_conversions.json +++ /dev/null @@ -1,1393 +0,0 @@ -[ - { - "description": "No Message type", - "input": { - "message": { - "channel": "web", - "context": { - "traits": { - "age": 23, - "email": "adc@test.com", - "firstname": "Test", - "birthday": "2022-05-13T12:51:01.470Z" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "event": "Product Searched", - "originalTimestamp": "2020-09-22T14:42:44.724Z", - "timestamp": "2022-09-22T20:12:44.757+05:30", - "userId": "user@1" - }, - "destination": { - "Config": { - "accessToken": "ABC..." - } - }, - "metadata": { - "secret": { - "access_token": "ABC" - } - } - }, - "output": { - "error": "Message Type is not present. Aborting message." - } - }, - { - "description": "Unsupported Event type", - "input": { - "message": { - "channel": "web", - "context": { - "traits": { - "age": 23, - "email": "adc@test.com", - "firstname": "Test", - "birthday": "2022-05-13T12:51:01.470Z" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36" - }, - "event": "Product Searched", - "type": "identify", - "originalTimestamp": "2020-09-22T14:42:44.724Z", - "timestamp": "2022-09-22T20:12:44.757+05:30", - "userId": "user@1" - }, - "destination": { - "Config": { - "accessToken": "ABC..." - } - } - }, - "output": { - "error": "Message type identify not supported." - } - }, - { - "description": "Event is not mapped with standard event", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.2" - }, - "traits": { - "abc": "1234" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.2" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/tests/html/ecomm_test.html", - "referrer": "http://0.0.0.0:1112/tests/html/", - "search": "", - "title": "Fb Offline Conversion Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - } - }, - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "originalTimestamp": "2022-09-21T12:05:19.394Z", - "userId": "user@1", - "event": "product searched", - "properties": { - "order_id": "5241735", - "value": 31.98, - "revenue": 31.98, - "shipping": 4, - "coupon": "APPARELSALE", - "currency": "GBP", - "products": [ - { - "id": "product-bacon-jam", - "category": "Merch", - "brand": "" - }, - { - "id": "product-t-shirt", - "category": "Merch", - "brand": "Levis" - }, - { - "id": "offer-t-shirt", - "category": "Merch", - "brand": "Levis" - } - ] - } - }, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Viewed" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - }, - { - "from": "AddToWishlist", - "to": "506289934669334" - } - ] - } - } - }, - "output": { - "error": "Please Map Your Standard Events With Event Set Ids" - } - }, - { - "description": "Standard event is not mapped with event set id", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.2" - }, - "traits": { - "abc": "1234" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.2" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/tests/html/ecomm_test.html", - "referrer": "http://0.0.0.0:1112/tests/html/", - "search": "", - "title": "Fb Offline Conversion Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - } - }, - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "originalTimestamp": "2022-09-21T12:05:19.394Z", - "userId": "user@1", - "event": "Button Clicked", - "properties": { - "order_id": "5241735", - "value": 31.98, - "revenue": 31.98, - "shipping": 4, - "coupon": "APPARELSALE", - "currency": "GBP", - "products": [ - { - "id": "product-bacon-jam", - "category": "Merch", - "brand": "" - }, - { - "id": "product-t-shirt", - "category": "Merch", - "brand": "Levis" - }, - { - "id": "offer-t-shirt", - "category": "Merch", - "brand": "Levis" - } - ] - } - }, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Viewed" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - } - ] - } - } - }, - "output": { - "error": "Please Map Your Standard Events With Event Set Ids" - } - }, - { - "description": "Track Call With 1:1 Mapping", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.2" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.2" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/tests/html/ecomm_test.html", - "referrer": "http://0.0.0.0:1112/tests/html/", - "search": "", - "title": "Fb Offline Conversion Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - } - }, - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "originalTimestamp": "2022-09-21T12:05:19.394Z", - "userId": "user@1", - "event": "Product Viewed", - "properties": { - "order_id": "5241735", - "value": 31.98, - "revenue": 31.98, - "shipping": 4, - "coupon": "APPARELSALE", - "currency": "GBP", - "products": [ - { - "id": "product-bacon-jam", - "category": "Merch", - "brand": "" - }, - { - "id": "product-t-shirt", - "category": "Merch", - "brand": "Levis" - }, - { - "id": "offer-t-shirt", - "category": "Merch", - "brand": "Levis" - } - ] - } - }, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Viewed" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - } - ], - "isHashRequired": true - } - } - }, - "output": [ - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"extern_id\":\"user@1\",\"email\":[\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\"],\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\"},\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"order_id\":\"5241735\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Product Viewed\",\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"email\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"5241735\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"ViewContent\",\"content_type\":\"product\"}]", - "upload_tag": "rudderstack" - } - ] - }, - { - "description": "Track Call With 1:M Mapping", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.2" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.2" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/tests/html/ecomm_test.html", - "referrer": "http://0.0.0.0:1112/tests/html/", - "search": "", - "title": "Fb Offline Conversion Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - } - }, - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "originalTimestamp": "2022-09-21T12:05:19.394Z", - "userId": "user@1", - "event": "Product Searched", - "properties": { - "order_id": "5241735", - "value": 31.98, - "revenue": 31.98, - "shipping": 4, - "coupon": "APPARELSALE", - "currency": "GBP", - "products": [ - { - "id": "product-bacon-jam", - "category": "Merch", - "brand": "" - }, - { - "id": "product-t-shirt", - "category": "Merch", - "brand": "Levis" - }, - { - "id": "offer-t-shirt", - "category": "Merch", - "brand": "Levis" - } - ] - } - }, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Viewed" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - } - ], - "isHashRequired": true - } - } - }, - "output": [ - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"extern_id\":\"user@1\",\"email\":[\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\"],\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\"},\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"order_id\":\"5241735\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Product Searched\",\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"email\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"5241735\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"Search\",\"content_type\":\"product\"}]", - "upload_tag": "rudderstack" - }, - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"extern_id\":\"user@1\",\"email\":[\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\"],\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\"},\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"order_id\":\"5241735\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Product Searched\",\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"email\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"5241735\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"Search\",\"content_type\":\"product\"}]", - "upload_tag": "rudderstack" - } - ] - }, - { - "description": "Track Call With Multiplexing", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.2" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.2" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/tests/html/ecomm_test.html", - "referrer": "http://0.0.0.0:1112/tests/html/", - "search": "", - "title": "Fb Offline Conversion Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - } - }, - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "originalTimestamp": "2022-09-21T12:05:19.394Z", - "userId": "user@1", - "event": "Product Searched", - "properties": { - "order_id": "5241735", - "value": 31.98, - "revenue": 31.98, - "shipping": 4, - "coupon": "APPARELSALE", - "currency": "GBP", - "products": [ - { - "id": "product-bacon-jam", - "category": "Merch", - "brand": "" - }, - { - "id": "product-t-shirt", - "category": "Merch", - "brand": "Levis" - }, - { - "id": "offer-t-shirt", - "category": "Merch", - "brand": "Levis" - } - ] - } - }, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Searched" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - } - ], - "isHashRequired": true - } - } - }, - "output": [ - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"extern_id\":\"user@1\",\"email\":[\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\"],\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\"},\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"order_id\":\"5241735\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Product Searched\",\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"email\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"5241735\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"ViewContent\",\"content_type\":\"product\"}]", - "upload_tag": "rudderstack" - }, - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"extern_id\":\"user@1\",\"email\":[\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\"],\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\"},\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"order_id\":\"5241735\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Product Searched\",\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"email\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"5241735\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"ViewContent\",\"content_type\":\"product\"}]", - "upload_tag": "rudderstack" - }, - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"extern_id\":\"user@1\",\"email\":[\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\"],\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\"},\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"order_id\":\"5241735\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Product Searched\",\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"email\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"5241735\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"ViewContent\",\"content_type\":\"product\"}]", - "upload_tag": "rudderstack" - } - ] - }, - { - "description": "Track Call With Different Upload Tag And Multiplexing", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.2" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.2" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/tests/html/ecomm_test.html", - "referrer": "http://0.0.0.0:1112/tests/html/", - "search": "", - "title": "Fb Offline Conversion Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - } - }, - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "originalTimestamp": "2022-09-21T12:05:19.394Z", - "userId": "user@1", - "event": "Product Searched", - "properties": { - "upload_tag": "test campaign", - "order_id": "5241735", - "value": 31.98, - "revenue": 31.98, - "shipping": 4, - "coupon": "APPARELSALE", - "currency": "GBP", - "products": [ - { - "id": "product-bacon-jam", - "category": "Merch", - "brand": "" - }, - { - "id": "product-t-shirt", - "category": "Merch", - "brand": "Levis" - }, - { - "id": "offer-t-shirt", - "category": "Merch", - "brand": "Levis" - } - ] - } - }, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Searched" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - } - ], - "isHashRequired": true - } - } - }, - "output": [ - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"extern_id\":\"user@1\",\"email\":[\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\"],\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\"},\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"order_id\":\"5241735\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Product Searched\",\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"email\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"5241735\",\"upload_tag\":\"test campaign\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"ViewContent\",\"content_type\":\"product\"}]", - "upload_tag": "test campaign" - }, - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"extern_id\":\"user@1\",\"email\":[\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\"],\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\"},\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"order_id\":\"5241735\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Product Searched\",\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"email\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"5241735\",\"upload_tag\":\"test campaign\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"ViewContent\",\"content_type\":\"product\"}]", - "upload_tag": "test campaign" - }, - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"extern_id\":\"user@1\",\"email\":[\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\"],\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\"},\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"order_id\":\"5241735\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Product Searched\",\"event_time\":1663761919,\"currency\":\"GBP\",\"value\":31.98,\"email\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"5241735\",\"upload_tag\":\"test campaign\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"ViewContent\",\"content_type\":\"product\"}]", - "upload_tag": "test campaign" - } - ] - }, - { - "description": "Track Call With All Possible Traits", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.2" - }, - "traits": { - "email": "test@rudderstack.com", - "birthday": "2005-01-01T23:28:56.782Z", - "firstName": "test", - "name": "test rudderlabs", - "address": { - "city": "kalkata", - "state": "west bangal", - "country": "india", - "zip": "123456" - }, - "phone": "9886775586", - "gender": "male" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.2" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/tests/html/ecomm_test.html", - "referrer": "http://0.0.0.0:1112/tests/html/", - "search": "", - "title": "Fb Offline Conversion Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - }, - "device": { - "advertisingId": "apple@123" - } - }, - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "originalTimestamp": "2022-09-21T12:05:19.394Z", - "userId": "user@1", - "event": "Cart Checkout", - "properties": { - "upload_tag": "test campaign", - "order_id": "485893487985894998", - "value": 100, - "revenue": 31.98, - "shipping": 4, - "coupon": "APPARELSALE", - "currency": "IND", - "products": [ - { - "id": "product-bacon-jam", - "category": "Merch", - "brand": "" - }, - { - "id": "product-t-shirt", - "category": "Merch", - "brand": "Levis" - }, - { - "id": "offer-t-shirt", - "category": "Merch", - "brand": "Levis" - } - ] - } - }, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Searched" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - } - ], - "isHashRequired": true - } - } - }, - "output": [ - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"doby\":\"f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6\",\"dobm\":\"f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6\",\"dobd\":\"f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6\",\"extern_id\":\"user@1\",\"email\":[\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\"],\"phone\":[\"74a39482392f83119041d571d5dace439d315faea8214fe8e815c00261b80615\"],\"gen\":\"0d248e82c62c9386878327d491c762a002152d42ab2c391a31c44d9f62675ddf\",\"fn\":\"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\"ct\":\"375aba919c30870659093b7ddcf6045ff7a8624dd4dba49ced8981bd4d0666e0\",\"zip\":[\"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92\"],\"madid\":\"c20fa16907343eef642d10f0bdb81bf629e6aaf6c906f26eabda079ca9e5ab67\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"ln\":\"dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251\"},\"event_time\":1663761919,\"currency\":\"IND\",\"value\":100,\"order_id\":\"485893487985894998\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Cart Checkout\",\"event_time\":1663761919,\"currency\":\"IND\",\"value\":100,\"email\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"phone\":\"74a39482392f83119041d571d5dace439d315faea8214fe8e815c00261b80615\",\"gen\":\"0d248e82c62c9386878327d491c762a002152d42ab2c391a31c44d9f62675ddf\",\"fn\":\"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\"ct\":\"375aba919c30870659093b7ddcf6045ff7a8624dd4dba49ced8981bd4d0666e0\",\"zip\":\"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92\",\"madid\":\"c20fa16907343eef642d10f0bdb81bf629e6aaf6c906f26eabda079ca9e5ab67\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"485893487985894998\",\"upload_tag\":\"test campaign\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"ln\":\"dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"AddToCart\",\"content_type\":\"product\"}]", - "upload_tag": "test campaign" - } - ] - }, - { - "description": "Track Call with hashing is disabled", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.2" - }, - "traits": { - "email": "test@rudderstack.com", - "birthday": "2005-01-01T23:28:56.782Z", - "firstName": "test", - "name": "test rudderlabs", - "address": { - "city": "kalkata", - "state": "west bangal", - "country": "india", - "zip": "123456" - }, - "phone": "9886775586", - "gender": "male" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.2" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/tests/html/ecomm_test.html", - "referrer": "http://0.0.0.0:1112/tests/html/", - "search": "", - "title": "Fb Offline Conversion Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - }, - "device": { - "advertisingId": "apple@123" - } - }, - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "originalTimestamp": "2022-09-21T12:05:19.394Z", - "userId": "user@1", - "event": "Cart Checkout", - "properties": { - "upload_tag": "test campaign", - "order_id": "485893487985894998", - "value": 100, - "revenue": 31.98, - "shipping": 4, - "coupon": "APPARELSALE", - "currency": "IND", - "products": [ - { - "id": "product-bacon-jam", - "category": "Merch", - "brand": "" - }, - { - "id": "product-t-shirt", - "category": "Merch", - "brand": "Levis" - }, - { - "id": "offer-t-shirt", - "category": "Merch", - "brand": "Levis" - } - ] - } - }, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Searched" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - } - ], - "isHashRequired": false - } - } - }, - "output": [ - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"doby\":\"f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6\",\"dobm\":\"f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6\",\"dobd\":\"f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6\",\"extern_id\":\"user@1\",\"email\":[\"test@rudderstack.com\"],\"phone\":[\"9886775586\"],\"gen\":\"male\",\"fn\":\"test\",\"ct\":\"kalkata\",\"zip\":[\"123456\"],\"madid\":\"apple@123\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"ln\":\"rudderlabs\"},\"event_time\":1663761919,\"currency\":\"IND\",\"value\":100,\"order_id\":\"485893487985894998\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Cart Checkout\",\"event_time\":1663761919,\"currency\":\"IND\",\"value\":100,\"email\":\"test@rudderstack.com\",\"phone\":\"9886775586\",\"gen\":\"male\",\"fn\":\"test\",\"ct\":\"kalkata\",\"zip\":\"123456\",\"madid\":\"apple@123\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"485893487985894998\",\"upload_tag\":\"test campaign\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"ln\":\"rudderlabs\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"AddToCart\",\"content_type\":\"product\"}]", - "upload_tag": "test campaign" - } - ] - }, - { - "description": "Track Call with custom content type", - "input": { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.2" - }, - "traits": { - "email": "test@rudderstack.com", - "birthday": "2005-01-01T23:28:56.782Z", - "firstName": "test", - "name": "test rudderlabs", - "address": { - "city": "kalkata", - "state": "west bangal", - "country": "india", - "zip": "123456" - }, - "phone": "9886775586", - "gender": "male" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.2" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/tests/html/ecomm_test.html", - "referrer": "http://0.0.0.0:1112/tests/html/", - "search": "", - "title": "Fb Offline Conversion Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - }, - "device": { - "advertisingId": "apple@123" - } - }, - "integrations": { - "FacebookOfflineConversions": { - "contentType": "e-commerce" - } - }, - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "originalTimestamp": "2022-09-21T12:05:19.394Z", - "userId": "user@1", - "event": "Cart Checkout", - "properties": { - "upload_tag": "test campaign", - "order_id": "485893487985894998", - "value": 100, - "revenue": 31.98, - "shipping": 4, - "coupon": "APPARELSALE", - "currency": "IND", - "products": [ - { - "id": "product-bacon-jam", - "category": "Merch", - "brand": "" - }, - { - "id": "product-t-shirt", - "category": "Merch", - "brand": "Levis" - }, - { - "id": "offer-t-shirt", - "category": "Merch", - "brand": "Levis" - } - ] - } - }, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Searched" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - } - ], - "categoryToContent": [ - { - "from": "", - "to": "" - } - ], - "isHashRequired": true - } - } - }, - "output": [ - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"doby\":\"f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6\",\"dobm\":\"f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6\",\"dobd\":\"f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6\",\"extern_id\":\"user@1\",\"email\":[\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\"],\"phone\":[\"74a39482392f83119041d571d5dace439d315faea8214fe8e815c00261b80615\"],\"gen\":\"0d248e82c62c9386878327d491c762a002152d42ab2c391a31c44d9f62675ddf\",\"fn\":\"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\"ct\":\"375aba919c30870659093b7ddcf6045ff7a8624dd4dba49ced8981bd4d0666e0\",\"zip\":[\"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92\"],\"madid\":\"c20fa16907343eef642d10f0bdb81bf629e6aaf6c906f26eabda079ca9e5ab67\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"ln\":\"dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251\"},\"event_time\":1663761919,\"currency\":\"IND\",\"value\":100,\"order_id\":\"485893487985894998\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Cart Checkout\",\"event_time\":1663761919,\"currency\":\"IND\",\"value\":100,\"email\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"phone\":\"74a39482392f83119041d571d5dace439d315faea8214fe8e815c00261b80615\",\"gen\":\"0d248e82c62c9386878327d491c762a002152d42ab2c391a31c44d9f62675ddf\",\"fn\":\"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\"ct\":\"375aba919c30870659093b7ddcf6045ff7a8624dd4dba49ced8981bd4d0666e0\",\"zip\":\"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92\",\"madid\":\"c20fa16907343eef642d10f0bdb81bf629e6aaf6c906f26eabda079ca9e5ab67\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"485893487985894998\",\"upload_tag\":\"test campaign\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"ln\":\"dcf000c2386fb76d22cefc0d118a8511bb75999019cd373df52044bccd1bd251\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"AddToCart\",\"content_type\":\"e-commerce\"}]", - "upload_tag": "test campaign" - } - ] - } -] diff --git a/test/__tests__/data/facebook_offline_conversions_router.json b/test/__tests__/data/facebook_offline_conversions_router.json deleted file mode 100644 index e3cbd17951..0000000000 --- a/test/__tests__/data/facebook_offline_conversions_router.json +++ /dev/null @@ -1,664 +0,0 @@ -[ - { - "description": "Router Test Case 1", - "input": [ - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.2" - }, - "traits": { - "abc": "1234" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.2" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/tests/html/ecomm_test.html", - "referrer": "http://0.0.0.0:1112/tests/html/", - "search": "", - "title": "Fb Offline Conversion Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - } - }, - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "originalTimestamp": "2022-09-21T12:05:19.394Z", - "userId": "user@1", - "event": "product searched", - "properties": { - "order_id": "5241735", - "value": 31.98, - "revenue": 31.98, - "shipping": 4, - "coupon": "APPARELSALE", - "currency": "GBP", - "products": [ - { - "id": "product-bacon-jam", - "category": "Merch", - "brand": "" - }, - { - "id": "product-t-shirt", - "category": "Merch", - "brand": "Levis" - }, - { - "id": "offer-t-shirt", - "category": "Merch", - "brand": "Levis" - } - ] - } - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Viewed" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - }, - { - "from": "AddToWishlist", - "to": "506289934669334" - } - ], - "isHashRequired": true - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.2" - }, - "traits": { - "abc": "1234" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.2" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/tests/html/ecomm_test.html", - "referrer": "http://0.0.0.0:1112/tests/html/", - "search": "", - "title": "Fb Offline Conversion Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - } - }, - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "originalTimestamp": "2022-09-21T12:05:19.394Z", - "userId": "user@1", - "event": "Button Clicked", - "properties": { - "order_id": "5241735", - "value": 31.98, - "revenue": 31.98, - "shipping": 4, - "coupon": "APPARELSALE", - "currency": "GBP", - "products": [ - { - "id": "product-bacon-jam", - "category": "Merch", - "brand": "" - }, - { - "id": "product-t-shirt", - "category": "Merch", - "brand": "Levis" - }, - { - "id": "offer-t-shirt", - "category": "Merch", - "brand": "Levis" - } - ] - } - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Viewed" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - } - ], - "isHashRequired": true - } - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.1.2" - }, - "traits": { - "email": "test@rudderstack.com", - "birthday": "2005-01-01T23:28:56.782Z", - "firstName": "test", - "lastName": "rudderstack", - "initial": { - "firstName": "rudderlabs" - }, - "address": { - "city": "kalkata", - "state": "west bangal", - "country": "india", - "zip": "123456" - }, - "phone": "9886775586", - "gender": "male" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.1.2" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", - "locale": "en-GB", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "path": "/tests/html/ecomm_test.html", - "referrer": "http://0.0.0.0:1112/tests/html/", - "search": "", - "title": "Fb Offline Conversion Ecommerce Test", - "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html" - }, - "device": { - "advertisingId": "apple@123" - } - }, - "type": "track", - "messageId": "9116b734-7e6b-4497-ab51-c16744d4487e", - "originalTimestamp": "2022-09-21T12:05:19.394Z", - "userId": "user@1", - "event": "Cart Checkout", - "properties": { - "upload_tag": "test campaign", - "order_id": "485893487985894998", - "value": 100, - "revenue": 31.98, - "shipping": 4, - "coupon": "APPARELSALE", - "currency": "IND", - "products": [ - { - "id": "product-bacon-jam", - "category": "Merch", - "brand": "" - }, - { - "id": "product-t-shirt", - "category": "Merch", - "brand": "Levis" - }, - { - "id": "offer-t-shirt", - "category": "Merch", - "brand": "Levis" - } - ] - } - }, - "metadata": { - "jobId": 3 - }, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Searched" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - } - ], - "isHashRequired": true - } - } - } - ], - "output": [ - { - "error": "Please Map Your Standard Events With Event Set Ids", - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration" - }, - "statusCode": 400, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Viewed" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - }, - { - "from": "AddToWishlist", - "to": "506289934669334" - } - ], - "isHashRequired": true - } - } - }, - { - "error": "Please Map Your Standard Events With Event Set Ids", - "metadata": [ - { - "jobId": 2 - } - ], - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration" - }, - "batched": false, - "statusCode": 400, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Viewed" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - } - ], - "isHashRequired": true - } - } - }, - { - "metadata": [ - { - "jobId": 3 - } - ], - "data": [ - { - "access_token": "ABC...", - "data": "[{\"match_keys\":{\"doby\":\"f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6\",\"dobm\":\"f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6\",\"dobd\":\"f388bc7cd953b951ffdf8e06275d94946dc52f03ed96536497fbe534469d38d6\",\"extern_id\":\"user@1\",\"email\":[\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\"],\"phone\":[\"74a39482392f83119041d571d5dace439d315faea8214fe8e815c00261b80615\"],\"gen\":\"0d248e82c62c9386878327d491c762a002152d42ab2c391a31c44d9f62675ddf\",\"ln\":\"7fb35d4777487797615cfa7c57724a47ba99152485600ccdb98e3871a6d05b21\",\"fn\":\"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\"ct\":\"375aba919c30870659093b7ddcf6045ff7a8624dd4dba49ced8981bd4d0666e0\",\"zip\":[\"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92\"],\"madid\":\"c20fa16907343eef642d10f0bdb81bf629e6aaf6c906f26eabda079ca9e5ab67\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\"},\"event_time\":1663761919,\"currency\":\"IND\",\"value\":100,\"order_id\":\"485893487985894998\",\"contents\":[{\"id\":\"product-bacon-jam\",\"quantity\":1,\"brand\":\"\",\"category\":\"Merch\"},{\"id\":\"product-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"},{\"id\":\"offer-t-shirt\",\"quantity\":1,\"brand\":\"Levis\",\"category\":\"Merch\"}],\"custom_data\":{\"extern_id\":\"user@1\",\"event_name\":\"Cart Checkout\",\"event_time\":1663761919,\"currency\":\"IND\",\"value\":100,\"email\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"phone\":\"74a39482392f83119041d571d5dace439d315faea8214fe8e815c00261b80615\",\"gen\":\"0d248e82c62c9386878327d491c762a002152d42ab2c391a31c44d9f62675ddf\",\"ln\":\"7fb35d4777487797615cfa7c57724a47ba99152485600ccdb98e3871a6d05b21\",\"fn\":\"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\"ct\":\"375aba919c30870659093b7ddcf6045ff7a8624dd4dba49ced8981bd4d0666e0\",\"zip\":\"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92\",\"madid\":\"c20fa16907343eef642d10f0bdb81bf629e6aaf6c906f26eabda079ca9e5ab67\",\"contents\":[{\"id\":\"product-bacon-jam\",\"category\":\"Merch\",\"brand\":\"\"},{\"id\":\"product-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"},{\"id\":\"offer-t-shirt\",\"category\":\"Merch\",\"brand\":\"Levis\"}],\"order_id\":\"485893487985894998\",\"upload_tag\":\"test campaign\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36\",\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"shipping\":4,\"coupon\":\"APPARELSALE\"},\"event_source_url\":\"http://0.0.0.0:1112/tests/html/ecomm_test.html\",\"event_name\":\"AddToCart\",\"content_type\":\"product\"}]", - "upload_tag": "test campaign" - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "accessToken": "ABC...", - "valueFieldIdentifier": "properties.price", - "eventsToStandard": [ - { - "from": "Product Searched", - "to": "Search" - }, - { - "to": "ViewContent", - "from": "Product Searched" - }, - { - "to": "AddToCart", - "from": "Cart Checkout" - }, - { - "to": "AddPaymentInfo", - "from": "Card Details Added" - }, - { - "to": "Lead", - "from": "Order Completed" - }, - { - "to": "CompleteRegistration", - "from": "Signup" - }, - { - "to": "AddToWishlist", - "from": "Button Clicked" - } - ], - "eventsToIds": [ - { - "from": "Search", - "to": "582603376981640" - }, - { - "from": "Search", - "to": "506289934669334" - }, - { - "from": "ViewContent", - "to": "1166826033904512" - }, - { - "from": "AddToCart", - "to": "1148872185708962" - }, - { - "from": "CompleteRegistration", - "to": "597443908839411" - }, - { - "from": "Lead", - "to": "1024592094903800" - } - ], - "isHashRequired": true - } - } - } - ] - } -] diff --git a/test/__tests__/data/facebook_pixel_input.json b/test/__tests__/data/facebook_pixel_input.json deleted file mode 100644 index 9804ad45c8..0000000000 --- a/test/__tests__/data/facebook_pixel_input.json +++ /dev/null @@ -1,4092 +0,0 @@ -[ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "channel": "mobile", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": " aBc@gmail.com ", - "address": { - "zip": 1234 - }, - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "removeExternalId": true, - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": " aBc@gmail.com ", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "group" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "traits": { - "name": "Test" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "properties": { - "plan": "standard plan", - "name": "rudder test" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "traits": { - "name": "Rudder Test", - "email": "abc@gmail.com", - "firstname": "Rudder", - "lastname": "Test", - "phone": 9000000000, - "gender": "female" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "properties": { - "plan": "standard plan", - "name": "rudder test" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "traits": { - "name": "Rudder Test", - "email": "abc@gmail.com", - "phone": 9000000000, - "address": { - "postalCode": 1234 - }, - "gender": "female" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "properties": { - "plan": "standard plan", - "name": "rudder test" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0, - "email": "abc@gmail.com" - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0, - "email": "abc@gmail.com" - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0, - "email": "abc@gmail.com", - "phone": 9000000000 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "phone", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0, - "email": "abc@gmail.com", - "phone": 9000000000 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "phone", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/abc", - "referrer": "xyz", - "search": "def", - "title": "ghi", - "url": "jkl" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "phone", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/abc", - "referrer": "xyz", - "search": "def", - "title": "ghi", - "url": "jkl" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "phone", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product list viewed", - "properties": { - "phone": 9000000000, - "email": "abc@gmail.com", - "category": "cat 1", - "list_id": "1234", - "filters": [ - { - "type": "department", - "value": "beauty" - }, - { - "type": "price", - "value": "under" - } - ], - "sorts": [ - { - "type": "price", - "value": "desc" - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "phone", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product list viewed", - "properties": { - "phone": 9000000000, - "email": "abc@gmail.com", - "category": "cat 1", - "list_id": "1234", - "filters": [ - { - "type": "department", - "value": "beauty" - }, - { - "type": "price", - "value": "under" - } - ], - "sorts": [ - { - "type": "price", - "value": "desc" - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product list viewed", - "properties": { - "email": "abc@gmail.com", - "quantity": 2, - "category": "cat 1", - "list_id": "1234", - "contentName": "nutrition", - "value": 18.9, - "filters": [ - { - "type": "department", - "value": "beauty" - }, - { - "type": "price", - "value": "under" - } - ], - "sorts": [ - { - "type": "price", - "value": "desc" - } - ], - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "productDimension": "My Product Dimension", - "productMetric": "My Product Metric", - "position": 10 - }, - { - "product_id": "507f1f77bcf86cdef799439011", - "productDimension": "My Product Dimension1", - "productMetric": "My Product Metric1", - "position": -10 - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "my product list", - "properties": { - "email": "abc@gmail.com", - "quantity": 2, - "category": "cat 1", - "list_id": "1234", - "filters": [ - { - "type": "department", - "value": "beauty" - }, - { - "type": "price", - "value": "under" - } - ], - "sorts": [ - { - "type": "price", - "value": "desc" - } - ], - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "productDimension": "My Product Dimension", - "productMetric": "My Product Metric", - "position": 10 - }, - { - "product_id": "507f1f77bcf86cdef799439011", - "productDimension": "My Product Dimension1", - "productMetric": "My Product Metric1", - "position": -10 - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "removeExternalId": false, - "eventsToEvents": [ - { - "from": "My product list", - "to": "ViewContent" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "list_id" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product viewed", - "properties": { - "currency": "CAD", - "quantity": 1, - "price": 24.75, - "name": "my product 1", - "category": "clothing", - "sku": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "removeExternalId": true, - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product added", - "properties": { - "currency": "CAD", - "quantity": 1, - "value": 24.75, - "category": "cat 1", - "id": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "removeExternalId": false, - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.value", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order completed", - "properties": { - "order_id": "rudderstackorder1", - "total": 99.99, - "revenue": 12.24, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "contentName": "all about nutrition", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "checkout started", - "properties": { - "currency": "CAD", - "category": "clothing", - "contentName": "abc", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 1, - "price": 24.75, - "name": "my product 2", - "sku": "p-299" - } - ], - "step": 1, - "paymentMethod": "Visa", - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "contentName" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "dataProcessingOptions": [["LDU"], 1, 1000], - "fbc": "fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890", - "fbp": "fb.1.1554763741205.234567890", - "fb_login_id": "fb_id", - "lead_id": "lead_id", - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUSage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "dataProcessingOptions": [["LDU"], 1, 1000], - "fbc": "fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890", - "fbp": "fb.1.1554763741205.234567890", - "fb_login_id": "fb_id", - "lead_id": "lead_id", - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUSage": false, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "products searched", - "properties": { - "product_id": "p-298", - "quantity": 2, - "price": 18.9, - "category": "health", - "value": 18.9, - "query": "HDMI cable" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "products searched", - "properties": { - "query": "HDMI cable" - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "testDestination": true, - "testEventCode": "TEST1001", - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "page", - "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "properties": { - "path": "/abc", - "referrer": "xyz", - "search": "def", - "title": "ghi", - "url": "jkl" - }, - "integrations": { - "All": true - }, - "name": "ApplicationLoaded", - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "standardPageCall": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "phone", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "url" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "email" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "track page", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "track page", - "to": "PageView" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "additional_bet_index" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "my product list", - "properties": { - "email": "abc@gmail.com", - "quantity": 2, - "category": "cat 1", - "list_id": "1234", - "filters": [ - { - "type": "department", - "value": "beauty" - }, - { - "type": "price", - "value": "under" - } - ], - "sorts": [ - { - "type": "price", - "value": "desc" - } - ], - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "productDimension": "My Product Dimension", - "productMetric": "My Product Metric", - "position": 10 - }, - { - "product_id": "507f1f77bcf86cdef799439011", - "productDimension": "My Product Dimension1", - "productMetric": "My Product Metric1", - "position": -10 - } - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "My product list", - "to": "Schedule" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "list_id" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product added", - "properties": { - "currency": "CAD", - "quantity": 1, - "value": "35.753", - "category": "cat 1", - "id": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.value", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product added", - "properties": { - "currency": "CAD", - "quantity": 1, - "value": "35.7A3", - "category": "cat 1", - "id": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.value", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product added", - "properties": { - "currency": "CAD", - "quantity": 1, - "value": "ABC", - "category": "cat 1", - "id": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.value", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order completed", - "properties": { - "category": ["clothing", "fishing"], - "order_id": "rudderstackorder1", - "total": 99.99, - "revenue": 12.24, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order completed", - "properties": { - "category": 100, - "order_id": "rudderstackorder1", - "total": 99.99, - "revenue": 12.24, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order completed", - "properties": { - "category": { - "category1": "1" - }, - "order_id": "rudderstackorder1", - "total": 99.99, - "revenue": 12.24, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 3, - "price": 24.75, - "name": "other product", - "sku": "p-299" - } - ] - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "spin_result", - "to": "Schedule" - }, - { - "to": "Schedule" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-08-24T15:46:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "spin_result", - "to": "Schedule" - }, - { - "to": "Schedule" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "originalTimestamp": "2019-04-16T15:50:51.693229+05:30", - "type": "track" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "validToken", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "products searched", - "properties": { - "query": { - "key1": "HDMI cable" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "products searched", - "properties": { - "query": 50 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "url": "https://theminimstory.com/collections/summer-of-pearls?utm_source=facebook&utm_medium=paidsocial&utm_campaign=carousel&utm_content=ad1-jul&fbclid=IwAR2SsDcjzd_TLZN-e93kxOeGBYO4pQ3AiyeXSheHW5emDeLw8uTvo6lTMPI" - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "checkout started", - "properties": { - "currency": "CAD", - "category": "clothing", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 1, - "price": 24.75, - "name": "my product 2", - "sku": "p-299" - } - ], - "step": 1, - "paymentMethod": "Visa", - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "url": "https://theminimstory.com/collections/summer-of-pearls?utm_source=facebook&utm_medium=paidsocial&utm_campaign=carousel&utm_content=ad1-jul&fbclid=IwAR2SsDcjzd_TLZN-e93kxOeGBYO4pQ3AiyeXSheHW5emDeLw8uTvo6lTMPI" - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": { - "name": "checkout started" - }, - "properties": { - "currency": "CAD", - "category": "clothing", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 1, - "price": 24.75, - "name": "my product 2", - "sku": "p-299" - } - ], - "step": 1, - "paymentMethod": "Visa", - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - }, - "page": { - "url": "url in wrong format" - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "checkout started", - "properties": { - "currency": "CAD", - "category": "clothing", - "products": [ - { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - }, - { - "quantity": 1, - "price": 24.75, - "name": "my product 2", - "sku": "p-299" - } - ], - "step": 1, - "paymentMethod": "Visa", - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product viewed", - "properties": { - "currency": "CAD", - "quantity": 1, - "price": 24.75, - "name": "my product 1", - "category": "clothing", - "sku": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true, - "Facebook_Pixel": { - "contentType": "sending dedicated content type for this particular payload" - } - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "removeExternalId": true, - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product viewed", - "properties": { - "currency": "CAD", - "quantity": 1, - "price": 24.75, - "value": 18.9, - "name": "my product 1", - "category": "clothing", - "sku": "p-298", - "testDimension": true, - "testMetric": true, - "position": 4.5 - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "removeExternalId": true, - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.value", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "traits": { - "email": "test@rudderstack.com" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "order completed", - "properties": { - "order_id": "rudderstackorder1", - "total": 99.99, - "revenue": 12.24, - "shipping": 13.99, - "tax": 20.99, - "currency": "INR", - "contentName": "all about nutrition", - "products": { - "quantity": 1, - "price": 24.75, - "name": "my product", - "sku": "p-298" - } - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "categoryToContent": [ - { - "from": "clothing", - "to": "product" - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "product list viewed", - "properties": { - "email": "abc@gmail.com", - "quantity": 2, - "category": "cat 1", - "list_id": "1234", - "contentName": "nutrition", - "value": 18.9, - "products": [ - { - "product_id": "507f1f77bcf86cd799439011", - "productDimension": "My Product Dimension", - "productMetric": "My Product Metric", - "position": 10 - }, - [ - { - "product_id": "507f1f77bcf86cdef799439011", - "productDimension": "My Product Dimension1", - "productMetric": "My Product Metric1", - "position": -10 - } - ] - ], - "testDimension": true, - "testMetric": true - }, - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "custom", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "pixelId": "dummyPixelId", - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "type": "track", - "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "12345", - "event": "custom", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T11:15:53.296Z" - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": true - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "metadata": { - "jobId": 12 - }, - "destination": { - "secretConfig": {}, - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "valueFieldIdentifier": "properties.price", - "advancedMapping": false, - "whitelistPiiProperties": [], - "limitedDataUSage": false, - "accessToken": "dummyAccessToken", - "testDestination": false, - "testEventCode": "", - "standardPageCall": false, - "blacklistedEvents": [], - "whitelistedEvents": [], - "eventFilteringOption": "disable", - "removeExternalId": false, - "useUpdatedMapping": false, - "oneTrustCookieCategories": [], - "useNativeSDK": false, - "eventDelivery": false, - "eventDeliveryTS": 1686748039135 - }, - "liveEventsConfig": { - "eventDelivery": false, - "eventDeliveryTS": 1686748039135 - }, - "id": "destId1", - "workspaceId": "wsp2", - "transformations": [], - "isConnectionEnabled": true, - "isProcessorEnabled": true, - "name": "san-fb_pixel", - "enabled": true, - "deleted": false, - "createdAt": "2023-06-06T13:36:08.579Z", - "updatedAt": "2023-06-14T13:07:19.136Z", - "revisionId": "revId2", - "secretVersion": 3 - }, - "message": { - "type": "page", - "sentAt": "2019-09-01T15:46:51.000Z", - "userId": "user@19", - "channel": "web", - "context": { - "os": { - "name": "", - "version": "" - }, - "app": { - "name": "RudderLabs JavaScript SDK", - "version": "dev-snapshot", - "namespace": "com.rudderlabs.javascript" - }, - "page": { - "url": "http://127.0.0.1:8888/", - "path": "/", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:8888/", - "referrer": "http://127.0.0.1:8888/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:8888", - "initial_referring_domain": "" - }, - "locale": "en-GB", - "screen": { - "width": 1728, - "height": 1117, - "density": 2, - "innerWidth": 547, - "innerHeight": 915 - }, - "traits": { - "name": false, - "source": "rudderstack" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "dev-snapshot" - }, - "campaign": {}, - "sessionId": 1687769234506, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" - }, - "rudderId": "6bbfd003-c074-4ee9-8674-c132ded9ff04", - "timestamp": "2019-09-01T15:46:51.000Z", - "properties": { - "url": "http://127.0.0.1:8888/", - "path": "/", - "title": "Document", - "search": "", - "tab_url": "http://127.0.0.1:8888/", - "referrer": "http://127.0.0.1:8888/", - "initial_referrer": "$direct", - "referring_domain": "127.0.0.1:8888", - "initial_referring_domain": "" - }, - "receivedAt": "2019-09-01T15:46:51.000Z", - "request_ip": "49.206.54.243", - "anonymousId": "700ab220-faad-4cdf-8484-63e4c6bce6fe", - "integrations": { - "All": true - }, - "originalTimestamp": "2019-09-01T15:46:51.000Z" - } - } -] diff --git a/test/__tests__/data/facebook_pixel_output.json b/test/__tests__/data/facebook_pixel_output.json deleted file mode 100644 index 3d36fd079e..0000000000 --- a/test/__tests__/data/facebook_pixel_output.json +++ /dev/null @@ -1,772 +0,0 @@ -[ - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"zp\":\"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4\"},\"event_name\":\"spin_result\",\"event_time\":1567333011,\"action_source\":\"app\",\"custom_data\":{\"additional_bet_index\":0,\"value\":400}}" - ] - } - }, - "files": {} - }, - { - "error": "Message type group not supported", - "statusCode": 400, - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "error": "For identify events, \"Advanced Mapping\" configuration must be enabled on the RudderStack dashboard", - "statusCode": 400, - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92\",\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"ph\":\"593a6d58f34eb5c3de4f47e38d1faaa7d389fafe332a85400b1e54498391c579\",\"ge\":\"252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111\",\"ln\":\"532eaabd9574880dbf76b9b8cc00832c20a6ec113d682299550d7a6e0f345e25\",\"fn\":\"2c2ccf28d806f6f9a34b67aa874d2113b7ac1444f1a4092541b8b75b84771747\",\"client_ip_address\":\"0.0.0.0\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"identify\",\"event_time\":1567333011,\"event_id\":\"84e26acc-56a5-4835-8233-591137fca468\",\"action_source\":\"website\"}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92\",\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"ph\":\"593a6d58f34eb5c3de4f47e38d1faaa7d389fafe332a85400b1e54498391c579\",\"ge\":\"252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111\",\"zp\":\"03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4\",\"client_ip_address\":\"0.0.0.0\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\",\"fn\":\"2c2ccf28d806f6f9a34b67aa874d2113b7ac1444f1a4092541b8b75b84771747\",\"ln\":\"532eaabd9574880dbf76b9b8cc00832c20a6ec113d682299550d7a6e0f345e25\"},\"event_name\":\"identify\",\"event_time\":1567333011,\"event_id\":\"84e26acc-56a5-4835-8233-591137fca468\",\"action_source\":\"website\"}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a\",\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\"},\"event_name\":\"spin_result\",\"event_time\":1567333011,\"action_source\":\"other\",\"custom_data\":{\"additional_bet_index\":0,\"value\":400}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a\",\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\"},\"event_name\":\"spin_result\",\"event_time\":1567333011,\"action_source\":\"other\",\"custom_data\":{\"additional_bet_index\":0,\"email\":\"abc@gmail.com\",\"value\":400}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a\",\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\"},\"event_name\":\"spin_result\",\"event_time\":1567333011,\"action_source\":\"other\",\"custom_data\":{\"additional_bet_index\":0,\"email\":\"abc@gmail.com\",\"value\":400}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a\",\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\"},\"event_name\":\"spin_result\",\"event_time\":1567333011,\"action_source\":\"other\",\"custom_data\":{\"additional_bet_index\":0,\"email\":\"abc@gmail.com\",\"phone\":\"593a6d58f34eb5c3de4f47e38d1faaa7d389fafe332a85400b1e54498391c579\",\"value\":400}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"client_ip_address\":\"0.0.0.0\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"Viewed page ApplicationLoaded\",\"event_time\":1567333011,\"event_source_url\":\"jkl\",\"event_id\":\"5e10d13a-bf9a-44bf-b884-43a9e591ea71\",\"action_source\":\"website\",\"custom_data\":{\"path\":\"/abc\",\"referrer\":\"xyz\",\"search\":\"def\",\"title\":\"ghi\",\"url\":\"jkl\"}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"client_ip_address\":\"0.0.0.0\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"Viewed a page\",\"event_time\":1567333011,\"event_source_url\":\"jkl\",\"event_id\":\"5e10d13a-bf9a-44bf-b884-43a9e591ea71\",\"action_source\":\"website\",\"custom_data\":{\"path\":\"/abc\",\"referrer\":\"xyz\",\"search\":\"def\",\"title\":\"ghi\",\"url\":\"jkl\"}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"ViewContent\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"phone\":\"593a6d58f34eb5c3de4f47e38d1faaa7d389fafe332a85400b1e54498391c579\",\"email\":\"abc@gmail.com\",\"category\":\"cat 1\",\"list_id\":\"1234\",\"filters[0].type\":\"department\",\"filters[0].value\":\"beauty\",\"filters[1].type\":\"price\",\"filters[1].value\":\"under\",\"sorts[0].type\":\"price\",\"sorts[0].value\":\"desc\",\"testDimension\":true,\"testMetric\":true,\"content_ids\":[\"cat 1\"],\"content_type\":\"product_group\",\"contents\":[{\"id\":\"cat 1\",\"quantity\":1}],\"content_category\":\"cat 1\",\"value\":0,\"currency\":\"USD\"}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"ViewContent\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"category\":\"cat 1\",\"list_id\":\"1234\",\"filters[0].type\":\"department\",\"filters[0].value\":\"beauty\",\"filters[1].type\":\"price\",\"filters[1].value\":\"under\",\"sorts[0].type\":\"price\",\"sorts[0].value\":\"desc\",\"testDimension\":true,\"testMetric\":true,\"content_ids\":[\"cat 1\"],\"content_type\":\"product_group\",\"contents\":[{\"id\":\"cat 1\",\"quantity\":1}],\"content_category\":\"cat 1\",\"value\":0,\"currency\":\"USD\"}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"ViewContent\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"quantity\":2,\"category\":\"cat 1\",\"list_id\":\"1234\",\"contentName\":\"nutrition\",\"value\":18.9,\"filters[0].type\":\"department\",\"filters[0].value\":\"beauty\",\"filters[1].type\":\"price\",\"filters[1].value\":\"under\",\"sorts[0].type\":\"price\",\"sorts[0].value\":\"desc\",\"products[0].product_id\":\"507f1f77bcf86cd799439011\",\"products[0].productDimension\":\"My Product Dimension\",\"products[0].productMetric\":\"My Product Metric\",\"products[0].position\":10,\"products[1].product_id\":\"507f1f77bcf86cdef799439011\",\"products[1].productDimension\":\"My Product Dimension1\",\"products[1].productMetric\":\"My Product Metric1\",\"products[1].position\":-10,\"testDimension\":true,\"testMetric\":true,\"content_ids\":[\"507f1f77bcf86cd799439011\",\"507f1f77bcf86cdef799439011\"],\"content_type\":\"product\",\"contents\":[{\"id\":\"507f1f77bcf86cd799439011\",\"quantity\":2},{\"id\":\"507f1f77bcf86cdef799439011\",\"quantity\":2}],\"content_category\":\"cat 1\",\"content_name\":\"nutrition\",\"currency\":\"USD\"}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"ViewContent\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"quantity\":2,\"category\":\"cat 1\",\"list_id\":\"1234\",\"filters[0].type\":\"department\",\"filters[0].value\":\"beauty\",\"filters[1].type\":\"price\",\"filters[1].value\":\"under\",\"sorts[0].type\":\"price\",\"sorts[0].value\":\"desc\",\"products[0].product_id\":\"507f1f77bcf86cd799439011\",\"products[0].productDimension\":\"My Product Dimension\",\"products[0].productMetric\":\"My Product Metric\",\"products[0].position\":10,\"products[1].product_id\":\"507f1f77bcf86cdef799439011\",\"products[1].productDimension\":\"My Product Dimension1\",\"products[1].productMetric\":\"My Product Metric1\",\"products[1].position\":-10,\"testDimension\":true,\"testMetric\":true,\"content_ids\":[\"507f1f77bcf86cd799439011\",\"507f1f77bcf86cdef799439011\"],\"content_type\":\"product\",\"contents\":[{\"id\":\"507f1f77bcf86cd799439011\",\"quantity\":2},{\"id\":\"507f1f77bcf86cdef799439011\",\"quantity\":2}],\"content_category\":\"cat 1\",\"value\":0,\"currency\":\"USD\"}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"ViewContent\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"currency\":\"CAD\",\"quantity\":1,\"price\":24.75,\"name\":\"my product 1\",\"category\":\"clothing\",\"sku\":\"p-298\",\"testDimension\":true,\"testMetric\":true,\"position\":4.5,\"content_ids\":[\"p-298\"],\"content_type\":\"product\",\"content_name\":\"my product 1\",\"content_category\":\"clothing\",\"value\":24.75,\"contents\":[{\"id\":\"p-298\",\"quantity\":1,\"item_price\":24.75}]}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"AddToCart\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"currency\":\"CAD\",\"quantity\":1,\"value\":24.75,\"category\":\"cat 1\",\"id\":\"p-298\",\"testDimension\":true,\"testMetric\":true,\"position\":4.5,\"content_ids\":[\"p-298\"],\"content_type\":\"product\",\"content_name\":\"\",\"content_category\":\"cat 1\",\"contents\":[{\"id\":\"p-298\",\"quantity\":1}]}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"em\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"Purchase\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"order_id\":\"rudderstackorder1\",\"total\":99.99,\"revenue\":12.24,\"shipping\":13.99,\"tax\":20.99,\"currency\":\"INR\",\"contentName\":\"all about nutrition\",\"products[0].quantity\":1,\"products[0].price\":24.75,\"products[0].name\":\"my product\",\"products[0].sku\":\"p-298\",\"products[1].quantity\":3,\"products[1].price\":24.75,\"products[1].name\":\"other product\",\"products[1].sku\":\"p-299\",\"content_ids\":[\"p-298\",\"p-299\"],\"content_type\":\"product\",\"value\":12.24,\"contents\":[{\"id\":\"p-298\",\"quantity\":1,\"item_price\":24.75},{\"id\":\"p-299\",\"quantity\":3,\"item_price\":24.75}],\"num_items\":2,\"content_name\":\"all about nutrition\"}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"em\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"InitiateCheckout\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"currency\":\"CAD\",\"category\":\"clothing\",\"contentName\":\"abc\",\"products[0].quantity\":1,\"products[0].price\":24.75,\"products[0].name\":\"my product\",\"products[0].sku\":\"p-298\",\"products[1].quantity\":1,\"products[1].price\":24.75,\"products[1].name\":\"my product 2\",\"products[1].sku\":\"p-299\",\"step\":1,\"paymentMethod\":\"Visa\",\"testDimension\":true,\"testMetric\":true,\"content_category\":\"clothing\",\"content_ids\":[\"p-298\",\"p-299\"],\"content_type\":\"product\",\"value\":0,\"contents\":[{\"id\":\"p-298\",\"quantity\":1,\"item_price\":24.75},{\"id\":\"p-299\",\"quantity\":1,\"item_price\":24.75}],\"num_items\":2}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a\",\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"fbc\":\"fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890\",\"fbp\":\"fb.1.1554763741205.234567890\",\"lead_id\":\"lead_id\",\"fb_login_id\":\"fb_id\"},\"event_name\":\"spin_result\",\"event_time\":1567333011,\"action_source\":\"other\",\"data_processing_options\":[\"LDU\"],\"data_processing_options_country\":1,\"data_processing_options_state\":1000,\"custom_data\":{\"additional_bet_index\":0,\"value\":400}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a\",\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"fbc\":\"fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890\",\"fbp\":\"fb.1.1554763741205.234567890\",\"lead_id\":\"lead_id\",\"fb_login_id\":\"fb_id\"},\"event_name\":\"spin_result\",\"event_time\":1567333011,\"action_source\":\"other\",\"custom_data\":{\"additional_bet_index\":0,\"value\":400}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"em\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"Search\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"product_id\":\"p-298\",\"quantity\":2,\"price\":18.9,\"category\":\"health\",\"value\":18.9,\"query\":\"HDMI cable\",\"content_ids\":[\"p-298\"],\"content_category\":\"health\",\"contents\":[{\"id\":\"p-298\",\"quantity\":2,\"item_price\":18.9}],\"search_string\":\"HDMI cable\",\"currency\":\"USD\"}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"em\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"Search\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"query\":\"HDMI cable\",\"content_ids\":[],\"content_category\":\"\",\"value\":0,\"contents\":[],\"search_string\":\"HDMI cable\",\"currency\":\"USD\"}}" - ], - "test_event_code": "TEST1001" - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"client_ip_address\":\"0.0.0.0\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"PageView\",\"event_time\":1567333011,\"event_source_url\":\"jkl\",\"event_id\":\"5e10d13a-bf9a-44bf-b884-43a9e591ea71\",\"action_source\":\"website\",\"custom_data\":{\"path\":\"/abc\",\"referrer\":\"xyz\",\"search\":\"def\",\"title\":\"ghi\",\"url\":\"jkl\"}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a\",\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\"},\"event_name\":\"PageView\",\"event_time\":1567333011,\"action_source\":\"other\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"Schedule\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"quantity\":2,\"category\":\"cat 1\",\"list_id\":\"1234\",\"filters[0].type\":\"department\",\"filters[0].value\":\"beauty\",\"filters[1].type\":\"price\",\"filters[1].value\":\"under\",\"sorts[0].type\":\"price\",\"sorts[0].value\":\"desc\",\"products[0].product_id\":\"507f1f77bcf86cd799439011\",\"products[0].productDimension\":\"My Product Dimension\",\"products[0].productMetric\":\"My Product Metric\",\"products[0].position\":10,\"products[1].product_id\":\"507f1f77bcf86cdef799439011\",\"products[1].productDimension\":\"My Product Dimension1\",\"products[1].productMetric\":\"My Product Metric1\",\"products[1].position\":-10,\"testDimension\":true,\"testMetric\":true}}" - ] - } - }, - "files": {} - }, - { - "statusCode": 400, - "error": "'event' is required", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"AddToCart\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"currency\":\"CAD\",\"quantity\":1,\"value\":35.75,\"category\":\"cat 1\",\"id\":\"p-298\",\"testDimension\":true,\"testMetric\":true,\"position\":4.5,\"content_ids\":[\"p-298\"],\"content_type\":\"product\",\"content_name\":\"\",\"content_category\":\"cat 1\",\"contents\":[{\"id\":\"p-298\",\"quantity\":1}]}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"AddToCart\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"currency\":\"CAD\",\"quantity\":1,\"value\":35.7,\"category\":\"cat 1\",\"id\":\"p-298\",\"testDimension\":true,\"testMetric\":true,\"position\":4.5,\"content_ids\":[\"p-298\"],\"content_type\":\"product\",\"content_name\":\"\",\"content_category\":\"cat 1\",\"contents\":[{\"id\":\"p-298\",\"quantity\":1}]}}" - ] - } - }, - "files": {} - }, - { - "statusCode": 400, - "error": "Revenue could not be converted to number", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"em\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"Purchase\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"category[0]\":\"clothing\",\"category[1]\":\"fishing\",\"order_id\":\"rudderstackorder1\",\"total\":99.99,\"revenue\":12.24,\"shipping\":13.99,\"tax\":20.99,\"currency\":\"INR\",\"products[0].quantity\":1,\"products[0].price\":24.75,\"products[0].name\":\"my product\",\"products[0].sku\":\"p-298\",\"products[1].quantity\":3,\"products[1].price\":24.75,\"products[1].name\":\"other product\",\"products[1].sku\":\"p-299\",\"content_category\":\"clothing,fishing\",\"content_ids\":[\"p-298\",\"p-299\"],\"content_type\":\"product\",\"value\":12.24,\"contents\":[{\"id\":\"p-298\",\"quantity\":1,\"item_price\":24.75},{\"id\":\"p-299\",\"quantity\":3,\"item_price\":24.75}],\"num_items\":2}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"em\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"Purchase\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"category\":100,\"order_id\":\"rudderstackorder1\",\"total\":99.99,\"revenue\":12.24,\"shipping\":13.99,\"tax\":20.99,\"currency\":\"INR\",\"products[0].quantity\":1,\"products[0].price\":24.75,\"products[0].name\":\"my product\",\"products[0].sku\":\"p-298\",\"products[1].quantity\":3,\"products[1].price\":24.75,\"products[1].name\":\"other product\",\"products[1].sku\":\"p-299\",\"content_category\":\"100\",\"content_ids\":[\"p-298\",\"p-299\"],\"content_type\":\"product\",\"value\":12.24,\"contents\":[{\"id\":\"p-298\",\"quantity\":1,\"item_price\":24.75},{\"id\":\"p-299\",\"quantity\":3,\"item_price\":24.75}],\"num_items\":2}}" - ] - } - }, - "files": {} - }, - { - "statusCode": 400, - "error": "'properties.category' must be either be a string or an array", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"6dc8118ec743f5f3b758939714193f547f4a674c68757fa80d7c9564dc093b0a\",\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\"},\"event_name\":\"Schedule\",\"event_time\":1567333011,\"action_source\":\"other\",\"custom_data\":{\"revenue\":400,\"additional_bet_index\":0}}" - ] - } - }, - "files": {} - }, - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "statusCode": 400, - "error": "Events must be sent within seven days of their occurrence or up to one minute in the future.", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "statusCode": 400, - "error": "'query' should be in string format only", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"em\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"Search\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"query\":50,\"content_ids\":[],\"content_category\":\"\",\"value\":0,\"contents\":[],\"search_string\":50,\"currency\":\"USD\"}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"em\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\",\"fbc\":\"fb.1.1567333011693.IwAR2SsDcjzd_TLZN-e93kxOeGBYO4pQ3AiyeXSheHW5emDeLw8uTvo6lTMPI\"},\"event_name\":\"InitiateCheckout\",\"event_time\":1567333011,\"event_source_url\":\"https://theminimstory.com/collections/summer-of-pearls?utm_source=facebook&utm_medium=paidsocial&utm_campaign=carousel&utm_content=ad1-jul&fbclid=IwAR2SsDcjzd_TLZN-e93kxOeGBYO4pQ3AiyeXSheHW5emDeLw8uTvo6lTMPI\",\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"currency\":\"CAD\",\"category\":\"clothing\",\"products[0].quantity\":1,\"products[0].price\":24.75,\"products[0].name\":\"my product\",\"products[0].sku\":\"p-298\",\"products[1].quantity\":1,\"products[1].price\":24.75,\"products[1].name\":\"my product 2\",\"products[1].sku\":\"p-299\",\"step\":1,\"paymentMethod\":\"Visa\",\"testDimension\":true,\"testMetric\":true,\"content_category\":\"clothing\",\"content_ids\":[\"p-298\",\"p-299\"],\"content_type\":\"product\",\"value\":0,\"contents\":[{\"id\":\"p-298\",\"quantity\":1,\"item_price\":24.75},{\"id\":\"p-299\",\"quantity\":1,\"item_price\":24.75}],\"num_items\":2}}" - ] - } - }, - "files": {} - }, - { - "statusCode": 400, - "error": "event name should be string", - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\",\"em\":\"1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"InitiateCheckout\",\"event_time\":1567333011,\"event_source_url\":\"url in wrong format\",\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"currency\":\"CAD\",\"category\":\"clothing\",\"products[0].quantity\":1,\"products[0].price\":24.75,\"products[0].name\":\"my product\",\"products[0].sku\":\"p-298\",\"products[1].quantity\":1,\"products[1].price\":24.75,\"products[1].name\":\"my product 2\",\"products[1].sku\":\"p-299\",\"step\":1,\"paymentMethod\":\"Visa\",\"testDimension\":true,\"testMetric\":true,\"content_category\":\"clothing\",\"content_ids\":[\"p-298\",\"p-299\"],\"content_type\":\"product\",\"value\":0,\"contents\":[{\"id\":\"p-298\",\"quantity\":1,\"item_price\":24.75},{\"id\":\"p-299\",\"quantity\":1,\"item_price\":24.75}],\"num_items\":2}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"ViewContent\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"currency\":\"CAD\",\"quantity\":1,\"price\":24.75,\"name\":\"my product 1\",\"category\":\"clothing\",\"sku\":\"p-298\",\"testDimension\":true,\"testMetric\":true,\"position\":4.5,\"content_ids\":[\"p-298\"],\"content_type\":\"sending dedicated content type for this particular payload\",\"content_name\":\"my product 1\",\"content_category\":\"clothing\",\"value\":24.75,\"contents\":[{\"id\":\"p-298\",\"quantity\":1,\"item_price\":24.75}]}}" - ] - } - }, - "files": {} - }, - { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"ViewContent\",\"event_time\":1567333011,\"event_id\":\"ec5481b6-a926-4d2e-b293-0b3a77c4d3be\",\"action_source\":\"website\",\"custom_data\":{\"currency\":\"CAD\",\"quantity\":1,\"price\":24.75,\"value\":18.9,\"name\":\"my product 1\",\"category\":\"clothing\",\"sku\":\"p-298\",\"testDimension\":true,\"testMetric\":true,\"position\":4.5,\"content_ids\":[\"p-298\"],\"content_type\":\"product\",\"content_name\":\"my product 1\",\"content_category\":\"clothing\",\"contents\":[{\"id\":\"p-298\",\"quantity\":1,\"item_price\":24.75}]}}" - ] - } - }, - "files": {} - }, - { - "error": "'properties.products' is not sent as an Array", - "statusCode": 400, - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "error": "'properties.products[1]' is not an object", - "statusCode": 400, - "statTags": { - "errorCategory": "dataValidation", - "errorType": "instrumentation" - } - }, - { - "error": "Access token not found. Aborting", - "statusCode": 400, - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration" - } - }, - { - "error": "Pixel Id not found. Aborting", - "statusCode": 400, - "statTags": { - "errorCategory": "dataValidation", - "errorType": "configuration" - } - }, - { - "body": { - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"72fd46c9ecb386f6747664a3e1d524294a3d7a2c8ae4aeb22b1e578b75093635\",\"client_ip_address\":\"49.206.54.243\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36\"},\"event_name\":\"PageView\",\"event_time\":1567352811,\"event_source_url\":\"http://127.0.0.1:8888/\",\"action_source\":\"website\",\"custom_data\":{\"url\":\"http://127.0.0.1:8888/\",\"path\":\"/\",\"title\":\"Document\",\"search\":\"\",\"tab_url\":\"http://127.0.0.1:8888/\",\"referrer\":\"http://127.0.0.1:8888/\",\"initial_referrer\":\"$direct\",\"referring_domain\":\"127.0.0.1:8888\",\"initial_referring_domain\":\"\"}}" - ] - }, - "JSON": {}, - "JSON_ARRAY": {}, - "XML": {} - }, - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=dummyAccessToken", - "files": {}, - "headers": {}, - "method": "POST", - "params": {}, - "type": "REST", - "version": "1" - } -] diff --git a/test/__tests__/data/facebook_pixel_router_input.json b/test/__tests__/data/facebook_pixel_router_input.json deleted file mode 100644 index 76af88e447..0000000000 --- a/test/__tests__/data/facebook_pixel_router_input.json +++ /dev/null @@ -1,164 +0,0 @@ -[ - { - "message": { - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1", - "destination_props": { - "Fb": { - "app_id": "RudderFbApp" - } - }, - "context": { - "device": { - "id": "df16bffa-5c3d-4fbb-9bce-3bab098129a7R", - "manufacturer": "Xiaomi", - "model": "Redmi 6", - "name": "xiaomi" - }, - "network": { - "carrier": "Banglalink" - }, - "os": { - "name": "android", - "version": "8.1.0" - }, - "screen": { - "height": "100", - "density": 50 - }, - "traits": { - "email": "abc@gmail.com", - "anonymousId": "c82cbdff-e5be-4009-ac78-cdeea09ab4b1" - } - }, - "event": "spin_result", - "integrations": { - "All": true - }, - "message_id": "a80f82be-9bdc-4a9f-b2a5-15621ee41df8", - "properties": { - "revenue": 400, - "additional_bet_index": 0 - }, - "timestamp": "2019-09-01T15:46:51.693229+05:30", - "type": "track" - }, - "metadata": { - "jobId": 1 - }, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "removeExternalId": true, - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "message": { - "channel": "web", - "context": { - "traits": { - "name": "Rudder Test", - "email": "abc@gmail.com", - "firstname": "Test", - "lastname": "Test", - "phone": 9000000000, - "gender": "female" - }, - "app": { - "build": "1.0.0", - "name": "RudderLabs JavaScript SDK", - "namespace": "com.rudderlabs.javascript", - "version": "1.0.0" - }, - "library": { - "name": "RudderLabs JavaScript SDK", - "version": "1.0.0" - }, - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36", - "locale": "en-US", - "ip": "0.0.0.0", - "os": { - "name": "", - "version": "" - }, - "screen": { - "density": 2 - } - }, - "properties": { - "plan": "standard plan", - "name": "rudder test" - }, - "type": "identify", - "messageId": "84e26acc-56a5-4835-8233-591137fca468", - "originalTimestamp": "2019-09-01T15:46:51.693229+05:30", - "anonymousId": "00000000000000000000000000", - "userId": "123456", - "integrations": { - "All": true - }, - "sentAt": "2019-10-14T09:03:22.563Z" - }, - "metadata": { - "jobId": 2 - }, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } -] diff --git a/test/__tests__/data/facebook_pixel_router_output.json b/test/__tests__/data/facebook_pixel_router_output.json deleted file mode 100644 index d407cd521a..0000000000 --- a/test/__tests__/data/facebook_pixel_router_output.json +++ /dev/null @@ -1,122 +0,0 @@ -[ - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\"},\"event_name\":\"spin_result\",\"event_time\":1567333011,\"action_source\":\"other\",\"custom_data\":{\"additional_bet_index\":0,\"value\":400}}" - ] - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 1 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "limitedDataUsage": true, - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "removeExternalId": true, - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": false, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - }, - { - "batchedRequest": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://graph.facebook.com/v17.0/dummyPixelId/events?access_token=09876", - "headers": {}, - "params": {}, - "body": { - "JSON": {}, - "XML": {}, - "JSON_ARRAY": {}, - "FORM": { - "data": [ - "{\"user_data\":{\"external_id\":\"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92\",\"em\":\"48ddb93f0b30c475423fe177832912c5bcdce3cc72872f8051627967ef278e08\",\"ph\":\"593a6d58f34eb5c3de4f47e38d1faaa7d389fafe332a85400b1e54498391c579\",\"ge\":\"252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111\",\"ln\":\"532eaabd9574880dbf76b9b8cc00832c20a6ec113d682299550d7a6e0f345e25\",\"fn\":\"2c2ccf28d806f6f9a34b67aa874d2113b7ac1444f1a4092541b8b75b84771747\",\"client_ip_address\":\"0.0.0.0\",\"client_user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\"},\"event_name\":\"identify\",\"event_time\":1567333011,\"event_id\":\"84e26acc-56a5-4835-8233-591137fca468\",\"action_source\":\"website\"}" - ] - } - }, - "files": {} - }, - "metadata": [ - { - "jobId": 2 - } - ], - "batched": false, - "statusCode": 200, - "destination": { - "Config": { - "blacklistPiiProperties": [ - { - "blacklistPiiProperties": "", - "blacklistPiiHash": false - } - ], - "accessToken": "09876", - "pixelId": "dummyPixelId", - "eventsToEvents": [ - { - "from": "", - "to": "" - } - ], - "eventCustomProperties": [ - { - "eventCustomProperties": "" - } - ], - "valueFieldIdentifier": "", - "advancedMapping": true, - "whitelistPiiProperties": [ - { - "whitelistPiiProperties": "" - } - ] - }, - "Enabled": true - } - } -] diff --git a/test/__tests__/facebook_offline_conversions.test.js b/test/__tests__/facebook_offline_conversions.test.js deleted file mode 100644 index aafecc9f96..0000000000 --- a/test/__tests__/facebook_offline_conversions.test.js +++ /dev/null @@ -1,85 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const integration = "facebook_offline_conversions"; -const name = "facebook_offline_conversions"; -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); - -const testDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}.json`) -); -const testData = JSON.parse(testDataFile); - -// Router Test files -const routerTestDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router.json`) -); -const routerTestData = JSON.parse(routerTestDataFile); - -describe(`${name} Tests`, () => { - describe("Processor", () => { - testData.forEach((dataPoint, index) => { - it(`${index}. ${integration} - ${dataPoint.description}`, async () => { - let output = []; - let expected; - try { - const payload = transformer.process(dataPoint.input); - payload.forEach(eachPayload => { - const queryParams = eachPayload.endpoint.split("?")[1]; - const queryPramsArray = new URLSearchParams(queryParams); - const response = {}; - for (let pair of queryPramsArray.entries()) { - response[pair[0]] = pair[1]; - } - output.push(response); - }); - expected = dataPoint.output; - } catch (error) { - output = error.message; - expected = dataPoint.output.error; - } - expect(output).toEqual(expected); - }); - }); - }); - - describe("Router Tests", () => { - routerTestData.forEach(async dataPoint => { - it("Payload", async () => { - const batchedResponse = await transformer.processRouterDest( - dataPoint.input - ); - const output = []; - batchedResponse.forEach(response => { - const { statusCode } = response; - if (statusCode === 200) { - const data = []; - const { - batchedRequest, - destination, - batched, - metadata, - statusCode - } = response; - batchedRequest.forEach(request => { - const { endpoint } = request; - const queryParams = endpoint.split("?")[1]; - const queryPramsArray = new URLSearchParams(queryParams); - const batchResponse = {}; - for (let pair of queryPramsArray.entries()) { - batchResponse[pair[0]] = pair[1]; - } - data.push(batchResponse); - }); - output.push({ destination, batched, metadata, statusCode, data }); - } else { - output.push(response); - } - }); - expect(output).toEqual(dataPoint.output); - }); - }); - }); -}); diff --git a/test/__tests__/fbpixel.test.js b/test/__tests__/fbpixel.test.js deleted file mode 100644 index 6d593ddd1b..0000000000 --- a/test/__tests__/fbpixel.test.js +++ /dev/null @@ -1,53 +0,0 @@ -const integration = "facebook_pixel"; -const name = "Fbpixel"; - -const fs = require("fs"); -const path = require("path"); -const version = "v0"; - -const transformer = require(`../../src/${version}/destinations/${integration}/transform`); -const inputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_input.json`) -); -const outputDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_output.json`) -); -const inputData = JSON.parse(inputDataFile); -const expectedData = JSON.parse(outputDataFile); - -// Router Test Data -const inputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_input.json`) -); -const outputRouterDataFile = fs.readFileSync( - path.resolve(__dirname, `./data/${integration}_router_output.json`) -); -const inputRouterData = JSON.parse(inputRouterDataFile); -const expectedRouterData = JSON.parse(outputRouterDataFile); - -Date.now = jest.fn(() => new Date("2019-09-01T15:46:51.000Z")); //2019-09-01T15:46:51.693229+05:30 - -describe(`${name} Tests`, () => { - describe("Processor Tests", () => { - inputData.forEach((input, index) => { - it(`${name} - payload: ${index}`, async () => { - try { - const output = await transformer.process(input); - expect(output).toEqual(expectedData[index]); - } catch (error) { - expect(error.message).toEqual(expectedData[index].error); - if (error.statTags) { - expect(error.statTags).toMatchObject(expectedData[index].statTags); - } - } - }); - }); - }); - - describe("Router Tests", () => { - it("Payload", async () => { - const routerOutput = await transformer.processRouterDest(inputRouterData); - expect(routerOutput).toEqual(expectedRouterData); - }); - }); -}); From adc726ec28734fef12f1fd4648a128d151d92524 Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:37:16 +0530 Subject: [PATCH 8/9] refactor: revert formattings --- src/v0/destinations/clevertap/transform.js | 2 +- src/v0/util/index.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/v0/destinations/clevertap/transform.js b/src/v0/destinations/clevertap/transform.js index 5c1e28c086..7bbc4dc59c 100644 --- a/src/v0/destinations/clevertap/transform.js +++ b/src/v0/destinations/clevertap/transform.js @@ -419,7 +419,7 @@ const processRouterDest = (inputs, reqMetadata) => { batchedEvents.forEach((batch) => { const batchedRequest = generateClevertapBatchedPayload(batch.events, batch.destination); batchResponseList.push( - getSuccessRespEvents(batchedRequest, batch.metadata, batch.destination), + getSuccessRespEvents(batchedRequest, batch.metadata, batch.destination) ); }); } diff --git a/src/v0/util/index.js b/src/v0/util/index.js index a8f56ddbf3..7ed0d1a877 100644 --- a/src/v0/util/index.js +++ b/src/v0/util/index.js @@ -372,7 +372,7 @@ const hashToSha256 = (value) => sha256(value); // Check what type of gender and convert to f or m const getFbGenderVal = (gender) => { - if (typeof gender !== 'string') { + if (typeof (gender) !== 'string') { return null; } if ( @@ -2050,11 +2050,11 @@ const getAuthErrCategoryFromStCode = (status) => { return ''; }; -const validateEventType = (event) => { - if (!event || typeof event !== 'string') { - throw new InstrumentationError('Event is a required field and should be a string'); +const validateEventType = event => { + if(!event || typeof event !== "string") { + throw new InstrumentationError("Event is a required field and should be a string"); } -}; +} // ======================================================================== // EXPORTS // ======================================================================== From 0698d525243e942a8f843a225827c34592b410f5 Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:38:56 +0530 Subject: [PATCH 9/9] refactor: revert formattingsx2 --- src/v0/util/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v0/util/index.js b/src/v0/util/index.js index 7ed0d1a877..f534f1acca 100644 --- a/src/v0/util/index.js +++ b/src/v0/util/index.js @@ -2051,7 +2051,7 @@ const getAuthErrCategoryFromStCode = (status) => { }; const validateEventType = event => { - if(!event || typeof event !== "string") { + if(!event || typeof event !== "string"){ throw new InstrumentationError("Event is a required field and should be a string"); } }